• angela.marie.giaco

    (@angelamariegiacogmailcom)


    Is there a way to update the price when an option is selected that adds value? I attached the link to the product.

    So if someone selects a $4.50 upgrade, can that be added to the $59.99 total?

    Also, is there a way for the +$4.50 to also appear in the cart next to the add on description? The cart displays the correct amount, so that is not the issue. I just want the customer to be able to see the upgrade cost in the cart too.

    Thanks!

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

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

    (@pektsekye)

    Hello,

    Try to add this code:

    
          if (this.priceDiv.length == 0){
            this.priceDiv = $('.product .woocommerce-Price-amount bdi').eq(0);                       
          }
    

    after this code:

    
          var bdi = this.priceDiv.find('bdi');
          if (bdi.length){
            this.priceDiv = bdi;         
          }
    

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

    Then refresh your browser cache.

    >is there a way for the +$4.50 to also appear in the cart

    Contact me by email [email protected] I will send the modified file to you.

    Stanislav

    Thread Starter angela.marie.giaco

    (@angelamariegiacogmailcom)

    Thank you for the quick reply!! I just sent you an email. ??

    Also, I updated the code and the price change didn’t work.

    aarondurber

    (@aarondurber)

    hi i am having the same issue.

    the pice on my product page chages when an option price is added but the price is not reflected in the cart or checkout.

    please advise too, thanks

    Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    For Variable product 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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Update Price on Product Page & Include Price Upgrade in Cart Description’ is closed to new replies.