Important

Okay
  Public Ticket #1577141
Magento 2 UPSELL product list showing same price as of Product
Closed

Comments

  • Eirik started the conversation

    I found that my store was showing the same price for all upsells as the product itself. 
    So if the product was $1300.00, the upsell product was $1300.00. 

    After researching and finding an article at: 
    https://magento.stackexchange.com/questions/217427/magento-2-upsell-product-list-showing-same-price-as-of-product 

    I did a search for the string: "priceBoxes" on the server in the app folder. 

    The page that showed was:
    app/code/Lof/HidePrice/view/frontend/templates/product/view/form.phtml

    So I changed line 125 from: 
    var priceBoxes = $('[data-role=priceBox]');
    to: 
    var priceBoxes = $('.product-info-price [data-role=priceBox]');

    It appears this is working now. 
    Is there any other code I should change that might affect the site?  

  •  1,319
    Land of replied

    Hello Eirik,

    Have a nice day!

    You just need to change only the file to resolve the issue. 

  •   Land of replied privately