как в это
var dataString = 'name='+ name + '&email=' + email + '&phone=' + phone;
__________________________________________________ _____________
добавить это:
function emailCheckout(form){
var me=simpleCart;counter=1;
form.appendChild(me.createHiddenElement("currency",me.currency));
for(var current in me.items){
var item=me.items[current];
form.appendChild(me.createHiddenElement("name_"+counter,item.name));
form.appendChild(me.createHiddenElement("quantity_"+counter,item.qty));
form.appendChild(me.createHiddenElement("price_"+counter,item.price));
var descriptionString="";
for(var field in item){if(typeof(item[field])!="function"&&field!="id"&&field!="qty"&&field!="price"){
descriptionString=descriptionString+", "+field+": "+item[field]}}descriptionString=descriptionString.substring(1);
form.appendChild(me.createHiddenElement("item_description_"+counter,descriptionString));
counter++}
}
__________________________________________________ ______________
чтоб сработало это:
$.ajax({
type: "POST",
url: "checkout.php",
data: dataString,
__________________________________________________ ______________
И по завершении произошла очистка форм