Calculate and display variation price on Single Product page
-
Hi, I want to calculate and display the variation price based on the input quantity on the Single Product page. Currently the variation’s regular price is displayed between the ‘clear selections’ button and the input text box with this code: <div class=”woocommerce-variation-price”>{{{ data.variation.price_html }}}</div>, which can be found in the file ‘variation.php’ under Woocommerce plugin.
The functions that I need for the Single Product page is actually used in the ‘Cart’ page, where the jQuery function ‘.trigger()’ is used to detect changes in the quantity input box and afterwhich it automatically calculates and displays the item’s subtotal. This jQuery function can be found in the file ‘class-xa-dynamic-pricing-plugin-public.php’. How can I do the same for the Single Product page?
Thanks in advance.
The page I need help with: [log in to see the link]
- The topic ‘Calculate and display variation price on Single Product page’ is closed to new replies.