Add to cart without variation id
-
Hello,
I have made a simple plugin what makes step by step selection for a user to choose a product he wants. It uses 4 steps, of which 3 are attributes selections. Now the issue I have come across is that direct link requires variation_id.
Generated link for product:
/cart/?add-to-cart=3772&attribute_pa_izmers=20&attribute_pa_forma=kaste&attribute_pa_krasas=spilgtasIn order for the following link to work, I need also pass variation_id. However, I cannot find a way to acquire it without manually passing every single variation_id combination. Is there a hook I can use to acquire variation id based on attributes I pass? Or add the product to cart without passing variation id?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Add to cart without variation id’ is closed to new replies.