I haven't gone the mysql way, I'm trying to write my own cart with Appery's mongodb database, but still working on the front-end. Let me know how you get on with opencart, if you decide to go that way.
Terry
I haven't gone the mysql way, I'm trying to write my own cart with Appery's mongodb database, but still working on the front-end. Let me know how you get on with opencart, if you decide to go that way.
Terry
I have been working on a shopping cart for awhile. I am able to do it for one user at the moment. I'm updating my database to support multiple users but don't have it working yet.
My cheat sheet:
var total = localStorage.getItem('token');
localStorage.setItem('token', total);
alert (total);
Input boxes - val()
Label boxes - text()
Appery('amountInput').text(num);
Here are the list of tutorials that I have used (start from the bottom and work your way to the top of the list):
invoking services from javascript -
http://devcenter.appery.io/documentat...
sum list items -
https://getsatisfaction.com/apperyio/...
mappings -
http://devcenter.appery.io/documentat...
Query database with local storage variable -
https://getsatisfaction.com/apperyio/...
Database sorting -
http://devcenter.appery.io/documentat...
Updating the database (remember to set storage variable):
http://devcenter.appery.io/tutorials/...
database:
http://devcenter.appery.io/tutorials/...
images:
http://devcenter.appery.io/documentat...
Javascript for image mapping -
return testDB_settings.photo_url + testDB_settings.database_id + '/' + value;
todo list app (add, delete, list database):
http://devcenter.appery.io/tutorials/...
Default value for image database -
https://api.appery.io/rest/1/db/files/
Clickable list app -
http://devcenter.appery.io/tutorials/...
Here's a tutorial on creating a musicshop cart:
http://devcenter.appery.io/building-a...
A nice video on Models and storage -
http://blog.appery.io/2014/10/video-n...
Hi Alva,
Thanks for your sharing.
pre
var total = localStorage.getItem('token');
localStorage.setItem('token', total);
alert (total);
/pre
This code does nothing.
Please specify what do you try to implement.
Regards.
It's just my cheat sheet for the code to get and set local storage. I use a lot of local storage for saving items like the total in my shopping cart. You have to use that code with something. It doesn't do anything on its own.
Hello Alva,
Thank you for the update.
Could I simply use the total variable in the music shop tutorial to pass to stripe charge service as amount ?
Did u get any where with this by any chance?
Yep