mrka
04-24-2006, 08:19 AM
Hi,
I have a probleme since few day and didn't succes to finish my shopping cart cause i got some trouble to write good function.
I have a datagrid where item are stored (name, price, quantity)
i need to get all the data of datagrid outpouting in textarea, so i can send the list of item by mail during checkout porcess.
Actually i didn't succes to write function cause i'am bad coder
it's look like
function getallitems() {
myoutput= panier_dg.dataProvider;
for (var i = 0; i<(myoutput.length); i++) {
var currentItem = myoutput.getCurrentItem();
var subtotal = currentItem.itemtotal;
var quantity = currentItem.quantity;
var unitprice = currentItem.itemprice;
var name = currentItem.productname;
trace (myoutput);
trace(myoutput.quantity[i]);
}}
Of course not running.
I need to get it quick, i'am ready to pay people that can help me to finish this little part of code (i can send fla of course)
If you can help me i will be very thanksfull
Best regards
Stephane
I have a probleme since few day and didn't succes to finish my shopping cart cause i got some trouble to write good function.
I have a datagrid where item are stored (name, price, quantity)
i need to get all the data of datagrid outpouting in textarea, so i can send the list of item by mail during checkout porcess.
Actually i didn't succes to write function cause i'am bad coder
it's look like
function getallitems() {
myoutput= panier_dg.dataProvider;
for (var i = 0; i<(myoutput.length); i++) {
var currentItem = myoutput.getCurrentItem();
var subtotal = currentItem.itemtotal;
var quantity = currentItem.quantity;
var unitprice = currentItem.itemprice;
var name = currentItem.productname;
trace (myoutput);
trace(myoutput.quantity[i]);
}}
Of course not running.
I need to get it quick, i'am ready to pay people that can help me to finish this little part of code (i can send fla of course)
If you can help me i will be very thanksfull
Best regards
Stephane