wojodesign / simplecart-js

A simple javascript shopping cart that easily integrates with your current website.
simplecartjs.org
1.79k stars 492 forks source link

Email Checkout problems and answers #78

Closed emvbase closed 12 years ago

emvbase commented 13 years ago

Hi. I've downloaded SimpleCart with the email checkout option (https://github.com/thewojogroup/simplecart-js/tree/email) configure index.html with my email and email.php with the same email. When I'm testing online and checkout i get a box SUCESS! but i don't receive any message with the order... This is the first problem.

The second problem is: Where or How I can put some customer fields for contact like name, phone, email address... Could anyone help me to solve this?

makuc commented 13 years ago

I have managed to get the second thing done. About the first thing I don't know yet, because I still did not upoad it to net to completly try it out.

Edit: I will post link to download it soon ...

dvdotsenko commented 13 years ago

Contents of emailCheckout function:

me.emailCheckout = function() {
    return;
};

What this means is that there is no code there. You need to write it, i guess with something like:

makuc commented 13 years ago

well if you download simpleCart.js from email section, everything is in. But if you don't, this are the lines:

me.emailCheckout = function() { var div = me.updateCartView( document.createElement("div") ); div = "

" + div.innerHTML + "
"; $.post("email.php" , {div:div} , function(data) { alert( data ); }); };

Or link to full js:

https://github.com/thewojogroup/simplecart-js/blob/email/simpleCart.js