0

With WooCommerce when you change the attribute options to select a variant, the Price and Stock amounts are updated via Ajax.

I am currently using a shortcode on the single-product page where one of the attributes to the shortcode is product_id but when you update the variants, it does not update the product_id on the shortcode.

How would I allow for the shortcode to update the product_id when changing variants?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.