• venerobelgium

    (@venerobelgium)


    Hi there,

    Me again, The price won’t update on the product page. I tried replacing the code with

    jQuery(document).ready(function(){
    jQuery(‘#pofw_product_options’).pofwProductOptions(config);
    });

    as you said in another topic but it doesn’t seem to be working. I also disables Autoptimize plugin to check if something bugs out because of that but that doesn’t seem to work either.

    Thank you!

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    Try to add the code:

    
          if (this.priceDiv.length == 0){   
            this.priceDiv = this.isOnSale ? $('#product-'+ this.productId +' ins .woocommerce-Price-amount') : $('#product-'+ this.productId +' .woocommerce-Price-amount');      
          }
    

    before the line:

    
          if (this.currencyPosition == 'left' || this.currencyPosition == 'left_space'){
    

    in the file:
    wp-content/plugins/product-options-for-woocommerce/view/frontend/web/product/main.js

    Stanislav

    MANISH

    (@bluekris)

    I have same issue I have tried above code but still not working. On cart and checkout page price is not updating

    • This reply was modified 5 years ago by MANISH.
    Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    Try to replace the line:

    
         $productId = $citem["variation_id"] == 0 ? $citem["product_id"] : $citem["variation_id"];
    

    with:

    
         $productId = $citem["product_id"];
    

    in the file:
    wp-content/plugins/product-options-for-woocommerce/Model/Observer.php

    Stanislav

    MANISH

    (@bluekris)

    @pektsekye I have tried above code but still not working

    Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    Maybe there is a plugin that conflicts.

    Try to disable other plugins

    Stanislav

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Price won’t update on product page’ is closed to new replies.