lightdown Posted April 21, 2015 Share Posted April 21, 2015 Hello, I'm trying to develop a module to calculate the product price from a product tables, and my problem is How can I update the product price in real time? I know how to update the price in our_price_display span, but, when I click in add to cart, the product is added to the cart with the original price. Any idea ? Thanks Link to comment Share on other sites More sharing options...
jgamio Posted April 21, 2015 Share Posted April 21, 2015 You have a long way to get that. Is not difficult but is not that simple like just change the price you need to check the Cart class and learn how these work, after that you are going to add hack to keep your selection for the whole process Link to comment Share on other sites More sharing options...
lightdown Posted April 22, 2015 Author Share Posted April 22, 2015 And that is the point: "keep your selection for the whole process". Is there any documentation about that? Where is stored all the information about the product? In Cookie or other global var? I have develop some modules and in the BO all seem to be is more easy (access to cookie, global vars, product object, etc), but in front office...how can i do that? Thanks Link to comment Share on other sites More sharing options...
jgamio Posted April 22, 2015 Share Posted April 22, 2015 You need to work with the overriding of the cart, and use the cart tables for keep info you can get the cart id using the cookies and look on the cart_product table 1 Link to comment Share on other sites More sharing options...
lightdown Posted April 26, 2015 Author Share Posted April 26, 2015 I think you are right. I'll try that solution. Thanks! Link to comment Share on other sites More sharing options...
icedfox Posted May 26, 2016 Share Posted May 26, 2016 I think you are right. I'll try that solution. Thanks! Did you succeed? Please teach me how! I have exactly same problem. Thank you. 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