Important
- For the pre-sale question, please feel free to contact us via live chat on Landofcoder.com ( From Monday to Friday 8:30 am - 5:30 pm GMT+7 ) or leave an offline message, we will give you a response asap.
- For technical questions, please submit a ticket below (recommended option) or send us an email via [email protected]. Our dev will support you within 24 hours since the submitted time (DO NOT support free extensions)
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?
Hello Eirik,
Have a nice day!
You just need to change only the file to resolve the issue.