• Hi,

    Thank you for this awesome plugin!
    I have an issue with the calculated price on the product page. As you mentionned, it might be an issue with me theme “Di Restaurant”.
    The price, set to 0 by default won’t update when I select the option.

    I’ve tried to change main.js with no succes.

    I’d really appreciate if you could help me out on this issue.

    Thanks!

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

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

    (@pektsekye)

    Hello,

    Try to replace the line:

    
    jQuery('#pofw_product_options').pofwProductOptions(config);
    

    with:

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

    in the file:

    
    wp-content/plugins/product_options_for_woocommerce/view/frontend/templates/product/options.php
    

    Stanislav

    Thread Starter percefane

    (@percefane)

    Hi Stanislav,

    It totally works!

    Thanks lot for your quick answer

    Hello,

    Same path here… I am using OceanWP as the theme and have changed the main.js and the second change to the options.php as indicated. Neither change seems to update the cart to the correct total. The shop page shows an updated value correctly however when the item is added to the cart it does not post the updated value.

    AJAX is enabled and default shop pages are used. I tried the Storefront theme and it did not update correctly either. Browser console does not show errors associated with this plugin.

    Help troubleshoot?

    Brian

    Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    Try to replace line 101:

    
    $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

    Hi Stanislav,

    I used the options on another product (simple product) and it worked with the previous revisions. Then I realized I had defined the product as “variable” and that was the one I was testing…

    In short, it’s working! (without this last revision you suggested).

    Thank you!

    Brian

    Hello,

    Its other problem when the Variable Product is on sale,
    Price is dont update od product page, in cart is ok.

    simple:
    https://www.gromwolsztyn.pl/produkt/koszulka-meczowa-jako-porto-senior/

    Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    Try to apply the “Update variable product price” modification:
    https://hottons.com/po_modifications

    Stanislav

    Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    Can you contact me by email [email protected] and temporarily disable the autoptimize plugin so each .js file is loaded separately?

    Stanislav

    pro-tip; you can disable Autoptimize on a per-request basis by adding ?ao_noptimize=1 to the URL.

    if the problem is not there at that point, some autoptimize (re-)configuration might be needed to fix this. there are troubleshooting tips and info on how to exclude in the AO FAQ.

    hope this helps debugging,
    frank (ao dev)

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