1

I need to know where catalog and cart prices are called to display so that I can calculate discounts via php and call the same function to display on screen. The prices in question are those of the print below. Searching I found the file Amount.php which is in "\ vendor \ magento \ framework \ Pricing \ Render" where I have the getDisplayValue () function But changing only changes the prices of products without variations, About the cart I have not yet found where the value is called and where the sum of the values ​​is made.

enter image description here

enter image description here

Magento 2.3.3 Win 10 Xampp

4
  • you have this running on XAMP on windows without issue?
    – Barry
    Dec 9 '19 at 12:02
  • Yes, no problem. Dec 9 '19 at 12:09
  • I'm envious, I just tried again and the web wizard just hung and via cli I got installed but cannot login and the default luma home is not right. Anyhoo... if you solved it with your answer you can mark as answered for others to see. Plus it's not enforced so much on this "stackoverflow" instance but it's nice to have some detail in the answer instead of link only, links can fail over time.
    – Barry
    Dec 12 '19 at 16:47
  • Thanks for the reply, I will try to improve on that. Dec 12 '19 at 16:56
0

Solved using the following tutorial https://www.mageplaza.com/devdocs/how-to-change-product-price-with-plugin-magento-2.htmlt

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.