I have listed out the categories on 1st page, subcategories on 2nd page and products on 3rd page. Now I have added the products to the cart. If we need to view the items in the cart, we can declare a global array[] and will add the data's to that array[]. But here if I have added the 3 items means the final item which was added recently that item only showing in the cart list items page. But I want to display the added 3 items. Can you please check my code and find out my issue.
Ti.App.data = []; data=[ {title:productlist_product}, {price:productlist_product_price}, {quantity:selectedqty}, ]; var myObjectString = JSON.stringify(data);
so please check my code and give me solution. what's wrong in my code.