Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #25838

    Hi,

    I use Enfold theme with woocommerce, everything is updated. I have problem with woocommerce shortcode Product by SKU/ID.

    When I try to use woocommerce shortcode Product by SKU/ID, always the same product is shown, instead of the product matching to the product SKU/ID.

    I did it like follows:

    I put the shortcode Product by SKU/ID on the product page, this first time it worked. But in all other following cases, when I tried to put this shortcode with another Poduct ID on another product page, always that product was shown, which I inserted first.

    Please help me!

    Thanks

    #128369

    Hi,

    SKU for each product must be unique. You can use the shortcode “Products by SKU/ID” to show multiple products.

    [products ids="2380, 2359" skus="635, 635-A"]

    Regards,

    Ismael

    #128370

    Hi Ismael,

    I think you missunderstood me.

    I dont want to put multiple products on one page. I would like to show single products on different pages with the help of shortcode Product by SKU/ID.

    When I put these code lines on different pages (on every page only one), on all of these pages the same product appears, and none of them is, which I tried to put there.

    [product id=””ISBN 963 7483 12 8″”] Ortelius

    [product id=””ISBN 978 963 9746 74 5″”] Schedel

    [product id=””ISBN 963 7483 20 9″”] Székely Chronica

    Thanks:

    Agnes

    #128371

    The isbn number of a product is not a valid id – please read: http://docs.woothemes.com/document/woocommerce-shortcodes/

    The shortcode won’t work with eg

    [product id=""ISBN 963 7483 12 8""]

    If you want to use the id parameter you must use the “post id” of the product. This article will show you how to find the post id of an entry: http://codex.wordpress.org/FAQ_Working_with_WordPress#How_do_I_determine_a_Post.2C_Page.2C_Category.2C_Tag.2C_Link.2C_Link_Category.2C_or_User_ID.3F

    #128372

    Hi,

    thanks, problem is solved, both version of code work:

    1.

    [product id=”2237″]

    or

    2.

    [product sku=”ISBN 963 7483 12 8″]

    The matter was, I wrote the SKU in the place of the ID.

    Thanks again, Best Regards.

    Agnes

    #128373

    Glad its working for you now :)

    Let us know if you have any other questions or issues.

    Regards,

    Devin

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘woocommerce shortcode Product by SKU/ID’ is closed to new replies.