Jump to content

Updating price in product page with javascript


lightdown

Recommended Posts

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

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

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

  • 1 year later...

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...