Add to cart urls for variation products
-
Hi, I used to use a URL to add a specific product variation to the cart. for example;
https://www.example.co.uk/basket/?attribute_pa_one=foo&attribute_pa_two=bar&add-to-cart=1845
This URL was built by selections on a custom form.
For some reason now this also requires a variation_id adding to the query string.
I just do not understand because by defining the variation_id you are selecting the attributes. For example, each combination of attributes is a specific ID.
Is there some jquery to request the ID from a combination of attributes?
OR can we remove the requirement of the variation_id if you already have all the attributes in the query string?
Like I say, this used to work fine! But now, for a reason unbeknown to me it has changed.
- The topic ‘Add to cart urls for variation products’ is closed to new replies.