Variable Product Shortcodes
Basic products have shortcodes, why not Variable products?
Variable products already count as products and have their own IDs.
Add these shortcode options.
[product variableid="1234"] or
[product id="99" varid="1234"]or
Display a variable product with the unique id or sku, as you would a basic product.
Display multiple variable products with the unique id or sku, as you would a basic product.
[addtocart id="99" variableid="1234" ]
The add to cart shortcode could be altered to include variable products
Variable products (if talking about the parent product) are supported by shortcodes. That includes [products], [product], and [add_to_cart].
Specific variations within a variable product are supported (by ID or SKU) using [add_to_cart] which allows you to add a specific variation to the cart using the ID you specify.
This needs to happen.
Dustin, did you ever manage to achieve this?
I would like a short code where the variable product is preselected in the dropdown menu and the price is displayed for just the selected variable product (not the price range) but the user could easily change the drop down menu and see the new price.
This would be very useful!
i Like this idea. I'm currently trying to make this shortcode