Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

save cart values to mysql database #298

Open
jimisha opened this issue Jul 31, 2017 · 1 comment
Open

save cart values to mysql database #298

jimisha opened this issue Jul 31, 2017 · 1 comment

Comments

@jimisha
Copy link

jimisha commented Jul 31, 2017

Hi,
I'm using minicart in my ecommerce site but i cant store the cart values to my database.. can i store my cart values to mysql database? and also i want to display my cart on checkout page .. Please help...

 Thanks
@jitender-gr
Copy link

jitender-gr commented Jan 22, 2018

if you want to save cart value in database or want to show cart on checkout page then you need to use jquery + ajax.
Like

var items = paypal.minicart.cart.items();
for (var i = 0; i < items.length; i++) {
var amount = items[i].get("amount") - items[i].get("discount_amount");
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants