Terry Gilliver
Posts: 0
Joined: Fri Apr 18, 2014 8:45 pm

shopping carts

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

Alva
Posts: 0
Joined: Mon Dec 08, 2014 6:58 pm

shopping carts

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/...

Alva
Posts: 0
Joined: Mon Dec 08, 2014 6:58 pm

shopping carts

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...

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

shopping carts

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.

Alva
Posts: 0
Joined: Mon Dec 08, 2014 6:58 pm

shopping carts

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.

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

shopping carts

Hello Alva,

Thank you for the update.

Robert Ramsden
Posts: 0
Joined: Mon Oct 12, 2015 2:07 am

shopping carts

Could I simply use the total variable in the music shop tutorial to pass to stripe charge service as amount ?

Robert Ramsden
Posts: 0
Joined: Mon Oct 12, 2015 2:07 am

shopping carts

Did u get any where with this by any chance?

Alva
Posts: 0
Joined: Mon Dec 08, 2014 6:58 pm

shopping carts

Yep

Return to “Issues”