Originally Posted by
bobmatt4u
Hello,
I am using Zencart 1.3.8a and using globill as payment gateway.
Right now its working perfectly i can send user details and order number to globill. what i also wanna send clients order details like Item Name, quantity, Price , Shipping Price and Total Price.
globil is using this : -
$process_button_string = zen_draw_hidden_field('MEWid', MODULE_PAYMENT_GLOBILL_ID) .
zen_draw_hidden_field('email', $order->customer['email_address']) .
zen_draw_hidden_field('firstname', $order->billing['firstname']) .
zen_draw_hidden_field('lastname', $order->billing['lastname']) .
zen_draw_hidden_field('Cid', $cartId) .
zen_draw_hidden_field('streetaddress', $order->billing['street_address']) .
zen_draw_hidden_field('post_zip', $order->billing['postcode']) .
zen_draw_hidden_field('city', $order->billing['city']) .
zen_draw_hidden_field('state_region', $order->billing['state']) .
zen_draw_hidden_field('phonecountry', '0') .
zen_draw_hidden_field('phonearea', '0') .
zen_draw_hidden_field('phonenumber', $order->customer['telephone']) .
zen_draw_hidden_field('countrycode', $order->billing['country']['iso_code_2']).
zen_draw_hidden_field('amount', $order->info['total']) ;
return $process_button_string;
I want to add that While loop to get order item details from cart, session or DB and Draw Hidden Feild..
zen_draw_hidden_field('itemname', $itemname->info['itemname']) ;
zen_draw_hidden_field('quanitity', $quanitity->info['quanitity']) ;
zen_draw_hidden_field('Shipping -charges', $shipcharge->info['ship charge']) ;
How can i do this how can i run while loop to get the no of items client added in cart.
Thanks
Bookmarks