Page 2 of 2

shopping carts

Posted: Thu Jun 26, 2014 8:23 pm
by Terry Gilliver

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


shopping carts

Posted: Thu Dec 11, 2014 3:35 am
by Alva

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


shopping carts

Posted: Thu Dec 11, 2014 5:10 am
by Alva

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


shopping carts

Posted: Thu Dec 11, 2014 5:24 am
by Yurii Orishchuk

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.


shopping carts

Posted: Fri Dec 12, 2014 8:13 am
by Alva

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.


shopping carts

Posted: Fri Dec 12, 2014 11:13 am
by Evgene Karachevtsev

Hello Alva,

Thank you for the update.


shopping carts

Posted: Sun Oct 18, 2015 4:41 am
by Robert Ramsden

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


shopping carts

Posted: Sun Oct 18, 2015 4:42 am
by Robert Ramsden

Did u get any where with this by any chance?


shopping carts

Posted: Sat Oct 24, 2015 12:56 am
by Alva

Yep