You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
Hi, i'm new to this but learning fast ( i hope).
I'm trying to pass the item/product that a customer has in the cart through to the secure forms on the payment screen. Currently data like 'transaction amount' 'shipping charge' 'card holders name' 'address' etc are passed over.
But i would like to be able to pass abit more like info about the order like 'product name' 'quantity' 'price' etc.
Is this possible? sorry if this has come up else where in the forum, i hunted high and low but couldn't find anyinfo.
thanks in advance.
(sorry i'm using 5.1, but have posted this in the wrong place)
Chris
Offline
Chris,
Once the user has entered the buyer workflow, the product info is stored in the cart, not in any form vars. Just out of curiousity, what are you planning on using the product vars for?
Offline
I'm trying to get the line items, descriptions, price and quantity etc over to be displayed on the secure forms as well as the default stuff. currently the code looks like this
<INPUT TYPE="HIDDEN" NAME="transactionamount" VALUE="(CGIVAR)tracking_total(/CGIVAR)">
<INPUT TYPE="HIDDEN" NAME="shippingcharge" VALUE="(CGIVAR)tracking_shippingtotal(/CGIVAR)">
<INPUT TYPE="HIDDEN" NAME="transactiontax" VALUE="(CGIVAR)tracking_countrytax(/CGIVAR)">
<INPUT TYPE="HIDDEN" NAME="cardholdersname" VALUE="(CGIVAR)tracking_firstname(/CGIVAR) (CGIVAR)tracking_lastname(/CGIVAR)">
<INPUT TYPE="HIDDEN" NAME="address" VALUE="(CGIVAR)tracking_addressone(/CGIVAR) (CGIVAR)tracking_addresstwo(/CGIVAR)">
<INPUT TYPE="HIDDEN" NAME="postcode" VALUE="(CGIVAR)tracking_zip(/CGIVAR)">
<INPUT TYPE="HIDDEN" NAME="telephone" VALUE="(CGIVAR)tracking_phone(/CGIVAR)">
<INPUT TYPE="HIDDEN" NAME="cardholdersemail" VALUE="(CGIVAR)tracking_email(/CGIVAR)">
and i would like to get the cart list over aswell.
I'm using secure-hosting for my payments gateway.
thanks
Chris
Offline
I have moded my 'ste_gw_secure_host.txt' file to contain this code
(CGIGET TYPE="ELEMENT" VALUE="ste_strhd_payinfo")<BR>
Please click the 'Submit' button to be transfered to our secure payments server.<BR><BR>
<BR><BR><BR>
<FORM METHOD="POST" ACTION="https://www.secure-server-hosting.com/secutran/secuitems.php">
<!-- Client Ref No:- -->
<input type="hidden" name="shreference" value="SH******">
<!-- Client Check Code: -->
<input type="hidden" name="checkcode" value="******">
<!-- ### -->
<INPUT TYPE="HIDDEN" NAME="ccporderno" VALUE="(CGIVAR)tracking_id(/CGIVAR)">
<input type="hidden" name="filename" value="SH******/sslform.htm">
<INPUT TYPE="HIDDEN" NAME="itemcode" VALUE="(CGIVAR)tracking_(/CGIVAR)">
<INPUT TYPE="HIDDEN" NAME="itemdesc" VALUE="(CGIVAR)cart_prodname(/CGIVAR)">
<INPUT TYPE="HIDDEN" NAME="itemquan" VALUE="(CGIVAR)cart_prodquantity(/CGIVAR)">
<INPUT TYPE="HIDDEN" NAME="itempric" VALUE="(CGIVAR)cart_amtprod(/CGIVAR)">
<INPUT TYPE="HIDDEN" NAME="itemtotal" VALUE="(CGIVAR)tracking_subtotal(/CGIVAR)">
<INPUT TYPE="HIDDEN" NAME="transactionamount" VALUE="(CGIVAR)tracking_total(/CGIVAR)">
<INPUT TYPE="HIDDEN" NAME="shippingcharge" VALUE="(CGIVAR)tracking_shippingtotal(/CGIVAR)">
<INPUT TYPE="HIDDEN" NAME="transactiontax" VALUE="(CGIVAR)tracking_countrytax(/CGIVAR)">
<INPUT TYPE="HIDDEN" NAME="cardholdersname" VALUE="(CGIVAR)tracking_firstname(/CGIVAR) (CGIVAR)tracking_lastname(/CGIVAR)">
<INPUT TYPE="HIDDEN" NAME="address" VALUE="(CGIVAR)tracking_addressone(/CGIVAR) (CGIVAR)tracking_addresstwo(/CGIVAR)">
<INPUT TYPE="HIDDEN" NAME="postcode" VALUE="(CGIVAR)tracking_zip(/CGIVAR)">
<INPUT TYPE="HIDDEN" NAME="telephone" VALUE="(CGIVAR)tracking_phone(/CGIVAR)">
<INPUT TYPE="HIDDEN" NAME="cardholdersemail" VALUE="(CGIVAR)tracking_email(/CGIVAR)">
<CENTER>
<INPUT TYPE="IMAGE" SRC="(CGIVAR)images_path(/CGIVAR)/button/submit_submit.gif" WIDTH="(CGIVAR)site_button_image_width(/CGIVAR)" HEIGHT="(CGIVAR)site_button_image_height(/CGIVAR)" BORDER="0" VALUE="submit"> <A HREF="(CGIVAR)common_url(/CGIVAR)&pg=cancel"><IMG SRC="(CGIVAR)images_path(/CGIVAR)/button/submit_cancel.gif" WIDTH="(CGIVAR)site_button_image_width(/CGIVAR)" HEIGHT="(CGIVAR)site_button_image_height(/CGIVAR)" BORDER="0"></A>
</FORM>
But it still doesn't pull in the required line items from the cart.
any body got any ideas or have experienced this.
Additionally i'm not sure what variable to call to get teh 'itemcode' which i think is refered to as 'product number'.
Cheers
Chris
Offline
That data is not available at that point to your form. Instead use this:
<INPUT TYPE="HIDDEN" NAME="itemcode" VALUE="(CGIVAR)tracking_id(/CGIVAR)"> <INPUT TYPE="HIDDEN" NAME="itemdesc" VALUE="Online Order"> <INPUT TYPE="HIDDEN" NAME="itemquan" VALUE="1"> <INPUT TYPE="HIDDEN" NAME="itempric" VALUE="(CGIVAR)tracking_total(/CGIVAR)"> <INPUT TYPE="HIDDEN" NAME="itemtotal" VALUE="(CGIVAR)tracking_total(/CGIVAR)"> <INPUT TYPE="HIDDEN" NAME="transactionamount" VALUE="(CGIVAR)tracking_total(/CGIVAR)">
Offline