• Resolved dalingzaf

    (@dalingzaf)


    After updating from 3.7.2 to 3.8.3 I found that variable prices did not update when selecting different product attributes on the single-product page. The “From” price always displayed.

    This is likely to be a JS issue in file add-to-cart-variation.js line 162 – 163 where the new variable $priceElement does not replace the correct html.

    Replacing these lines with the 3.7.2 version fixed the issue. Can you please check my reasoning and implement a fix/solution.

    Replaced these lines:

    
    $priceElement.html( variation.price_html ).addClass( 'variation_modified' );
    $priceElement.find( '.price' ).contents().unwrap();
    

    with these:

    
    $wrapper.find( wc_gzd_add_to_cart_variation_params.price_selector + ':not(.price-unit):visible:first' ).html( variation.price_html ).addClass( 'variation_modified' );
    $wrapper.find( wc_gzd_add_to_cart_variation_params.price_selector + ':not(.price-unit):visible:first' ).find( '.price' ).contents().unwrap();
    

    *Disclaimer: Other plugins installed includes “Variation Swatches for WooCommerce”

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Variation Price Not Updating Bug’ is closed to new replies.