Jump to content

Read reduced price of a product using Web Service


nissnac

Recommended Posts

Hello,

 

How is it possible to read the reduced price of a product using web service?

  • Using this "/api/products/1" returns me the regular price in the price data (according to the source code it should send the reduced price!)
  • Using this "/api/products/1?price[my_price][use_reduction]=1" also returns me the regular price in my_price data..

Any solution ?

 

Thank you in advance for the help ! I spent several hours on this :(

 

I'm using Prestashop 1.5.4.1

  • Like 1
Link to comment
Share on other sites

Here are more details :

 

The reduced price is calculated by adding a specific price (from tab Price> Specific Price)

41700_Capture_dc_cran_2013_06_19_22.37.00.png

 

Here is how the product price looks like in front office:

94595_Capture_dc_cran_2013_06_19_22.41.48.png

 

Yet both the web service requests mentioned in my first post returns:

 

"/api/products/1"

<price>

<!--[CDATA[ 149 ]]-->

</price>

 

"/api/products/1?price[my_price][use_reduction]=1"

<my_price>

<!--[CDATA[ 149 ]]-->

</my_price>

 

I hope I was clear enough :)

Thank you for your help!

Edited by nissnac (see edit history)
Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...
  • 2 years later...
  • 9 months later...

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...