• So the app is working great. Thanks. However I have a few questions:

    1. How do I get and display the product price?
    2. How do I get and display the product description?
    3. How do I link the product to Etsy instead of the WordPress product page (which by the way throws a 404).

    Thank you ??

    Leanne

Viewing 3 replies - 1 through 3 (of 3 total)
  • Michael Beckwith

    (@tw2113)

    The BenchPresser

    Looking things over since it’s been a little while since I peaked at the code.

    The product price is stored as post meta for the product. Description I do believe is going to be in the post editor textarea, so handled by something like the_content(). The product link itself is stored as post meta as well, but we also have a quick shortcode that can be used to link to it as well, shown below.

    [product_link id=569 title=”This is a great new product” external=true]

    The ID would be the post ID for the product, within WordPress, and the external part would tell it to link to the etsy.com version.

    Not the most fleshed out options, admittedly, and utilizing may need to have some coding ability at the moment, but at least thats where I’m seeing these parts found.

    Regarding the 404, you may just need to flush your permalink rules which can be done by simply visiting the Settings > Permalinks page, and that’s it.

    Thread Starter pixelboutiqueuk

    (@pixelboutiqueuk)

    I don’t need shortcode as this is a loop, so how do I add the external part without the shortcode? Also, the_permalink() is still linking to woocommerce, not Etsy, and the post price isn’t showing either (from the post meta).

    Please advise.

    Thanks

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    If you’re viewing the current product itself, instead of some other page displaying the product, then you’re going to need to go into the theme code and fetch the meta data yourself and display however which way you choose.

    This is going to be based on the post type that the plugin creates in your website. The external links to the etsy product page themselves will need to be linked to manually somehow.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Product link, price and description’ is closed to new replies.