Programmatically change variation
-
Ciao ragazzi! Prima di tutto complimenti, i vostri prodotti sono fenomenali. (Ora continuo in inglese in caso dovesse essere utile ad altri).
I would really need a help from you on a feature I’m working on. So basically, I have an addon of type labels and in the description I have placed a shortcode (for which I had to edit a line on one of your plugin files). The shortcode is needed for the customer to select their nearest store by entering their postcode.
Image here: https://imgur.com/a/Xv8nQzD
Now, what I am trying to do is to change the variation value to the name of the store selected. Because once the user add the product to the cart, the variation is the title of the field (in this case ‘Test’) and it stays like that on the checkout page and emails.
Image here: https://imgur.com/a/xdSzZyB
It would be really helpful if you could give me a hint on which file should I insert my custom code in order to change the variation value programmatically.
Thanks.
- The topic ‘Programmatically change variation’ is closed to new replies.