Jump to content

Change the price of a product when adding to the cart by code


gusman126

Recommended Posts

Hi, I'm doing a module that when reading a CSV, do the following

  • Create a cart
  • Add customer data
  • Add the address data
  • Add transport data
  • Add the CSV products one by one to the cart

 

Now here my question

How can I add a specific price to the product added to the cart?

I have been looking for the forum and online and the only way is adding a specific price for that product, I DO NOT WANT IT, I do not want to add a specific price, because that way the price will be added to the system and stay with that price to sell in the store and this I do not want

Is there any way to add a product by code and indicate the price of this product?

Link to comment
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...