I have a webshop up and running, but not totally the way I want it to be. Right now, my database contains the following:
- ID
- Title
- Description
- Price
But I don't want the price to come out of my database, as I calculate the price in a .js file to be able to change the format, material and way of laser-teching our product. I have tried to change the way the price is fetched before it goes into my cart (which is based on a SESSION).
The price is calculated in a .js file, and then outputted to a div as well as a field that is constructed the following:
<input type='hidden' name='price' id='price' />
Since there is a lot of code involved, I have uploaded my project to GitHub. The link is:
My question is: What can I do to make the price in my cart the same as the dynamicaly calculated price at the product page?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire