Skip to main content

Posts

Showing posts from March, 2018

How to add TextBox to display product price inside woocommerce single product page?

Adding TextBox to display product price inside woocommerce single product page -  Step -1 :  Write the following code inside your functions.php file -  add_action( 'woocommerce_after_add_to_cart_quantity', 'woocommerce_total_product_price', 31 ); function woocommerce_total_product_price() {       ?>      <input type="hidden" class="product-currency" value=<?php echo get_woocommerce_currency_symbol()?> />     <input type="text" id="product_total_price" readonly="readonly">     <input type="hidden" id="calculate_product_total_price" >     <?php } Step - 2 :  Create a js file as "test.js" and write the following code inside "test.js" file - jQuery(function($) {     /* Clearing product price textbox and hidden price textbox when clear link is clicked */   $('.reset_variations').on('click