I’ve had this problem where when I click on the specific item(flower in a plastic bottle) it will show an alert, and when confirmed, it is supposed to show 1 in the Qty column in the row of the flower in plastic bottle row and instead it shows true and it is supposed to show 5 in the Price total column(same row as the flower in plastic bottle row) but instead it shows 0. But then when I click on the + button(for the flower in plastic bottle, it suddenly shows the correct thing. The other items work fine.
Please help me out guys!
Here is an image of the screen:
Here is the code:
Then, unfortunately, here comes another error.
So basically, when I get to the next screen, and I click the buy button, it will turn the app variables to null(cos i want all the app variables to be set to 0 so when the user wants to go on the shopping screen, it will reset everything.). But then, when I go back on the shopping screen, it shows the same values as before.
Then when I click on the + or the - button, it suddenly shows NaN in the price total. But when I click on the item, it shows the same thing as the other error above for the qty column but shows NaN in the Price column.
Here is an image:
Here is an image of the other screen(works pretty much fine):
Here is the code of the other screen(the screen that i showed you right above this image:
So please help me out guys for both of these errors! And quickly please cause my homework is due NEXT WEEK !
I may have not explained clearly so if you guys have any questions please go ahead and ask(but quickly please. ).
Thanks friends. <3