Just like the title says I want to change the price of the item before it hits the cart. A customer configures an item before purchasing and different combinations equal different prices. As a result I need to change the price of that specific (red shirt) not all red shirts! Which should be related to quote item I believe.
I have a variable constantly updating that represents the new price while they are configuring their item. Is there a way to pass this variable if it's stored in an ID and update the price for that quote item to the value of that ID before adding to the cart?
Let me know if there is anything I can clarify!
Similar to this:
https://stackoverflow.com/questions/30048776/how-to-change-the-price-before-adding-to-cart-in-magento
But I want to use the variable I have and set the price to that!
Best Answer
Create observer and implement below code:
Xml File etc/config.xml
Php File : Model/Observer.php