I'm trying to get the price of a product whenever this product has options with a different price.
For example:
productName: Beer (price $2.50) option choosed: Heineken (-$1) second option choosed: Big glass (+$2.50)
Result of the product price: $4.00
I totaly have no clue how i can do the math in the current script i'm using. I avoid this issue to the last part of my project,hoping i find out how i should do it. But i must admit that sometimes a line is draw and "REALY" need help.
so: HELP! (how poorly).
I have a jsfiddle availeble with all code needed to play with. http://jsfiddle.net/whitehat/DSYZu/ Ofcourse i would be pleased with a direct solution. On the other hand, i not expect it is given,if that is the case .... please put me in the right direction.
It looks like it is working. But the quantityfield isnt updated whenever add a new item of the same.
I tried so many variations of the posseble events jqm is comming with. That it totaly lost me. I also tried to remove the second page from the dom, and let it rebuild when called again. But it give me the same results. I also tried several methode to delete the cache of the #cart page,but also that didnt do the trick
i alert some id's to check if posted my form correctly.
For a single form this works perfect. But when have multiple forms on a page it also grabs the id's i check in the alert from the other forms.
I don't want to use the regular way to submit a form: submit() . (ofcourse i'm open to a alternative to use the submit() function. I just dont want my url getting changed.I'm also not familiar with this function :( )
I'm trying to create a submit form to pass data to another page. The problem i'm facing is that the content is dynamicly generated out of a database. The content of the form holds a selectmenu,this could be from 1 to multiple selectmenu's per item. At the moment it only allert me for the last label name in the lists Following code i use:
Hello @all, since a few months i work on a shoppingcart script. With it i use webdb .It is ment to run on andriod, but also runs in google's chrome browser(obivious).
In the months i worked on it , i followed the devellopment of jqm, and i kept trust in it.
Unfortunaly i cant find my way in it for using it as it is ment to be used, and this i find realy disturbing.
I tried realy hard to understand of how i should use JQM so that i can get the script i work on operational. I'm not a professional coder, i just spend all my freetime in it,couse it is a passionate hobby of me to play with code (php/javascript/mysql).
As for my problem now (what i assume results in solve,create another) i have a page that loads some categories in a listview,from that page i can navigate to a list of product, so far works good.If i click on a product in the list ,i call the database to load the products-attributes/options.This works well,until i browse back to the categorie-list and try to visit the productpage and click the product again.From there the attributes arent showing up anymore.
I will post a link to my partialy working script here: osc2nuke.com and will attach the source file to this post aswell. I realy would like to see some reactions abouth the script i try to make ,and ofcourse some code to improove it.