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

correction prix

parent 9562ff6a
jQuery(document).ready(function() {
jQuery(document).on('click', ".format-list", function() {
var format = jQuery(this).find('.format-desc').text();
......@@ -25,15 +25,17 @@ jQuery(document).ready(function() {
});
jQuery('li.format-list:first-child input').attr('checked', true);
jQuery(document).on('change', '.color-list input,.format-list input ', function() {
var varID = jQuery('input[name="variation_id"]').val();
// alert(varID);
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();
jQuery('.price .crete').text(price);
jQuery('.price .crete').text(price +" ht");
jQuery('.pq').text(pq);
}
......@@ -115,7 +117,7 @@ jQuery(document).ready(function() {
*/
});
jQuery(window).on('load',function() {
jQuery('.filter-bloc ').each(function() {
......@@ -147,4 +149,4 @@ jQuery(document).ready(function() {
jQuery.urlParam = function(name) {
var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href);
return results[1] || 0;
}
\ No newline at end of file
}
......@@ -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>
</div>
<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="font-small">
<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