product shortcode problems
-
Am using a shortcode to display five products that are hidden from regular inventory:
[products limit=”5″ columns=”5″ ids=”5097,5095,5084,5085,5083″ visibility=”hidden”]
Everything renders fine, except that the add to cart links are outputting as “buy now” links where the product is added to the cart rather than clicking through to the product page, which is the default behavior for the whole site:
Meaning the links are: /hand-picked-for-you/?add-to-cart=5084
Rather than a link to the product page: /product/copal-oil/
Only one of the products works properly, the difference being that it has a variation. In this case, the link generated goes to the product page as intended.
Unfortunately I can’t share the page as its a special offer that my client wants hidden from regular view.
The topic ‘product shortcode problems’ is closed to new replies.