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
    Commented Dec 9, 2019 at 12:02
  • Yes, no problem. Commented Dec 9, 2019 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
    Commented Dec 12, 2019 at 16:47
  • Thanks for the reply, I will try to improve on that. Commented Dec 12, 2019 at 16:56

1 Answer 1

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 and acknowledge you have read our privacy policy.

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