Commit 4b13b11c authored by Nahla Shiri's avatar Nahla Shiri

correction prix

parent 9562ff6a
...@@ -30,10 +30,12 @@ jQuery(document).ready(function() { ...@@ -30,10 +30,12 @@ jQuery(document).ready(function() {
jQuery(document).on('change', '.color-list input,.format-list input ', function() { jQuery(document).on('change', '.color-list input,.format-list input ', function() {
var varID = jQuery('input[name="variation_id"]').val(); var varID = jQuery('input[name="variation_id"]').val();
// alert(varID);
if (varID != 0) { if (varID != 0) {
var price = jQuery('.woocommerce-variation-price .woocommerce-Price-amount').text(); var price = jQuery('.woocommerce-Price-amount').text();
// alert(price);
var pq = jQuery('.woocommerce-variation-description').text(); var pq = jQuery('.woocommerce-variation-description').text();
jQuery('.price .crete').text(price); jQuery('.price .crete').text(price +" ht");
jQuery('.pq').text(pq); jQuery('.pq').text(pq);
} }
......
...@@ -282,7 +282,8 @@ do_action('woocommerce_before_add_to_cart_form'); ...@@ -282,7 +282,8 @@ do_action('woocommerce_before_add_to_cart_form');
<p class="pq"><?php echo nap_variable_meta($current_variationID, 'variation_description'); ?></p> <p class="pq"><?php echo nap_variable_meta($current_variationID, 'variation_description'); ?></p>
</div> </div>
<div class="price"> <div class="price">
<span class="crete"><?php echo nap_variable_meta($current_variationID, 'price'); ?> € ht</span>
<span class="crete"><?php echo nap_variable_meta($current_variationID, 'price'); ?>€ ht</span>
<div class="notice">( prix public conseillé )</div> <div class="notice">( prix public conseillé )</div>
<div class="font-small"> <div class="font-small">
<div class="product_meta"> <div class="product_meta">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment