Jump to content

How to get prices on Prestashop 1.7


Recommended Posts

Hello,

I'm trying to get all the prices variances from all the products of my store. I need the sale price, the price with and without discount, the sight price and mainly the highest price.

I tryed use the functions getPriceStatic and the getPricesDrop, but don't worked like I wanted. 

Do you guys know how can I get all that prices?

Thanks a lot!

Share this post


Link to post
Share on other sites
  • 2 months later...

Hello, 

Inside Product class(classes/product.php)

You can search ‘getprice’ and you will find the functions used to get prices in different situations.

example:getProductAttributeprice, getPricesDrop, getPriceStatic, etc..

Best regards

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More