Jump to content

Prestashop Webservice - Create product with tax included in price


Puma1140
 Share

Recommended Posts

Greetings,

Is there a way to create a product with price tax included?

Until now, I pass in the POST request the price without the tax and the ID of the tax rules group. Can I declare if the price includes the tax so that I can pass the final price?

Following is a section of my code:

// Prices
if (!empty($product->price))
	$resources->price = (float)$product->price;

if (!empty($product->id_tax_rules_group))
	$resources->id_tax_rules_group = (int)$product->id_tax_rules_group;

Thank you in advance.

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
 Share

×
×
  • Create New...

Important Information

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