Preview price using JavaScript?
-
I am currently using the plugin “WooCommerce Currency Converter”, but would like to move to this Switcher plugin since it has the ability to set payment currency, which the Converter does not.
I have a configurator with which I preview the price of a product (which is not yet created) based on dynamic user inputs. With the Converter plugin enabled, I change, using JavaScript, the value of the price data attribute, which is always in the payment currency (which is fixed). After that, if I trigger ‘wc_fragments_refreshed’ then the displayed price in the chosen currency is refreshed.
With the Converter plugin disabled (since it would conflict with Switcher) can I achieve a similar effect with Switcher? Since Switcher does not set a price data attribute, and neither is the payment currency fixed)
- The topic ‘Preview price using JavaScript?’ is closed to new replies.