I got an email back from the support and they said I’d have to do it myself.
No idea what I’m doing. But here’s the link for the added function that used to work.
http://www.consofas.com/blog/wordpress/wp-e-commerce-add_to_cart-shortcode-with-quantity-box/
The main problem with it is that when you use it, it takes away the variety options for your product. Does anyone know how to fix this to work again?
Thanks!
Hi dogwentfishing!
Yeah, the code for the “shortcode” for add_to_cart – add_to_cart_shortcode() – is about 6 years old and doesn’t even use the Shortcode API. Eek!
So – the function that is used for that is called wpsc_add_to_cart_button(). That function will return the variations, but no quantity.
That function has a couple actions called wpsc_add_to_cart_button_form_begin and wpsc_add_to_cart_button_form_end. Those would be super useful, if they passed the product ID. You could modify those actions to add the product ID to them, like I’ve just done here, and then add the following code to a plugin or functions.php file you have.
https://gist.github.com/JustinSainton/d426c20f8407fd96cb03
Hope that helps!