gusman126 Posted October 12, 2018 Share Posted October 12, 2018 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 More sharing options...
Rhobur Posted October 13, 2018 Share Posted October 13, 2018 Not sure if I understand correctly your question, but you could initialize a product object $new_product = new Product($your_product_id) and change its price property. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now