klemonnier
Forum Replies Created
Viewing 8 replies - 1 through 8 (of 8 total)
-
This one work too
$(document).ready(function () { var originePrice = $(".summary p.price").html(); $(".summary .variations_form .woocommerce-variation-add-to-cart input").change(function () { setTimeout(function() { if( $(".summary .variations_form select").val() == '') { $(".summary p.price").html(originePrice); $(".summary .stock.variation").slideUp(500, function() { $(this).remove(); }); } else if ( $(".summary .variations_form .woocommerce-Price-amount").length ) { var variationPrice = $(".summary .variations_form .woocommerce-Price-amount").text(); $(".summary p.price").text(variationPrice); $(".summary .stock.variation").slideUp(500, function() { $(this).remove(); }); setTimeout(function() { $(".summary .variations_form .woocommerce-variation-availability .stock").insertAfter( ".summary p.price" ).addClass('variation').hide().slideDown(500); }, 500); } }, 200); }); });
How to change the price range by the variation price in woocommerce product pages:
$(document).ready(function () { var originePrice = $(".summary p.price").html(); setInterval(function() { if( $(".summary .variations_form select").val() == '') { $(".summary p.price").html(originePrice); } else if ( $(".summary .variations_form .woocommerce-Price-amount").length ) { var variationPrice = $(".summary .variations_form .woocommerce-Price-amount").text(); $(".summary p.price").text(variationPrice); } }, 100); });
I just upload my website on my server to show you but on my server the problem desappear. I think it s a problem with my local installation, sorry man
Forum: Plugins
In reply to: [WooCommerce] Add fields to woocommerce registration form : follow upLook this link, better.
/** * Add new register fields for WooCommerce registration. * * @return string Register fields HTML. */ function wooc_extra_register_fields() { ?> <p class="form-row form-row-first"> <label for="reg_billing_first_name"><?php _e( 'First name', 'woocommerce' ); ?> <span class="required">*</span></label> <input type="text" class="input-text" name="billing_first_name" id="reg_billing_first_name" value="<?php if ( ! empty( $_POST['billing_first_name'] ) ) esc_attr_e( $_POST['billing_first_name'] ); ?>" /> </p> <p class="form-row form-row-last"> <label for="reg_billing_last_name"><?php _e( 'Last name', 'woocommerce' ); ?> <span class="required">*</span></label> <input type="text" class="input-text" name="billing_last_name" id="reg_billing_last_name" value="<?php if ( ! empty( $_POST['billing_last_name'] ) ) esc_attr_e( $_POST['billing_last_name'] ); ?>" /> </p> <div class="clear"></div> <p class="form-row form-row-wide"> <label for="reg_billing_phone"><?php _e( 'Phone', 'woocommerce' ); ?> <span class="required">*</span></label> <input type="text" class="input-text" name="billing_phone" id="reg_billing_phone" value="<?php if ( ! empty( $_POST['billing_phone'] ) ) esc_attr_e( $_POST['billing_phone'] ); ?>" /> </p> <?php } add_action( 'woocommerce_register_form_start', 'wooc_extra_register_fields' );
Forum: Plugins
In reply to: [WooCommerce] WooCommerce Order Notes not TranslatedI have a conflict with WPML STRING because my default language in the WPML STRING is spanish, if I change to English, it s work, so the problem is with WMPL
Forum: Plugins
In reply to: [WooCommerce] Translation ProblemeI hope you will release the woocommerce 2.2.3 soon. Good job. Good plugin. Thanks
Forum: Plugins
In reply to: [WooCommerce] Remove Page Number from BreadcrumbThank you for this CSS, it works well. i think I tried to make it complicated.
I tried to custom the functions.php.Forum: Plugins
In reply to: [WooCommerce] Remove Page Number from BreadcrumbThank You, can you look this website of test : https://test.explosion-digital.com/tienda/page/2/
Viewing 8 replies - 1 through 8 (of 8 total)