Answer the question
In order to leave comments, you need to log in
Change the price of the product depending on the selected options?
For woocommerce, I installed the Fields Factory plugin (to add radiobutton, checkbox and set their prices). In the plugin (Fields Factory) you can set a price for each of the radio buttons, but within the same group, but I need to make a pricing rule depending on the choice of items in both groups of radio buttons. There are two implementation ideas:
1) on the site, call the JS function on the click / change event, collect the necessary data and send it from ajax, but where it’s not very clear from what I read on the Internet, as I understand it, in functions.php, where in turn add a function / action in it to make the necessary calculations and update the price of the product already
2) Instead of updating the price of the product, update the price of the "switch", i.e. with the Fields Factory plugin itself. What would be more logical, but the documentation is poor for this plugin and I'm in php oak oak.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question