Jump to content

Specific price parameters not working on api


Recommended Posts

Hi guys,


I'am wondering why "Specific price parameters" describe in the docs: https://devdocs.prestashop.com/1.7/webservice/tutorials/advanced-use/specific-price/#example not working anymore.

When I try to add price[my_price][use_tax]=1 parameter for example, I getting and error message: Trying to get property 'id_customer' of non-object on CheckVatTaxManager.php, line 41

It was working like a charm month ago but now it's broken. Same for sale_price parameter.

Query url example: /api/products?filter[id]=[1,2,3]&display=full&price[my_price][use_tax]=1

Should we use other methods to get taxed and sale price now ?

Prestashop version: v1.7.6.1

Thank you for your helps.

Edited by jlnlent (see edit history)

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