Tagged: WooCommerce shortcode
July 6, 2013 at 6:50 pm #25838
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!
ThanksJuly 7, 2013 at 3:50 am #128369
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"]
IsmaelJuly 8, 2013 at 7:46 am #128370
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
AgnesJuly 8, 2013 at 9:41 am #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.3FJuly 9, 2013 at 12:31 pm #128372
thanks, problem is solved, both version of code work:
[product sku="ISBN 963 7483 12 8"]
The matter was, I wrote the SKU in the place of the ID.
Thanks again, Best Regards.
AgnesJuly 10, 2013 at 3:12 am #128373
The topic ‘woocommerce shortcode Product by SKU/ID’ is closed to new replies.