Woocommerce: how to create a custom add-to-cart link for a variation with attribute instead of variation ID?
So I have a product with ID 25529. And its two variation based on attribute “color”: “black”(25530) and “white”(25531).
The above add to cart URLs both work. But I’d like to construct the URL by attribute, such as
I read some articles but still am not very sure if that is possible or not.
01 year 2022-01-12T17:34:34-05:00 2022-01-12T17:34:34-05:00 0 Answers 0 views 0
Leave an answer