shawntbanks
Programmer
hope that someone can help me. I have a shopping cart that is stored in arrays and structers. I have to send to the transaction provider a item string with the details of what was ordered. here is the code, can someone please help
this is the string that the transaction provider needs me to send
<input type="hidden" name="orderstring" value="1~Listing~#session.auth1.Grand_subtotal#~1~Y~||2~GST~#session.auth1.GST#~1~N~||3~Listing~#session.auth1.PST#~1~N~||">
This is the structer that I would like to take the information from
<CFSET strTempItem = StructNew()>
<cfset strtempitem.Orderid = "#Todays_Date##Todays_time#">
<cfset strtempitem.submitID = #form.submitID#>
<cfset strtempitem.categoryid = #form.select_Ad_Subcategory#>
<cfset strtempitem.subcategoryid = #form.selectLocal#>
<cfset strtempitem.subcategory = #form.sub#>
<cfset strtempitem.location = #form.location#>
<cfset strtempitem.itemname = #form.Itemname#>
<cfset strtempitem.Short_Description = #form.Short_Description#>
<cfset strtempitem.long_description = #form.long_description#>
<cfset strtempitem.itemprice = #form.itemprice#>
<cfset strtempitem.featured = #form.featured#>
<cfset strtempitem.begindate = #form.begindate#>
<cfset strtempitem.Enddate = (#form.begindate# + #form.Enddate#)>
<CFSET strTempItem.picture1 = "">
<CFSET strTempItem.picture2 = "">
<CFSET strTempItem.picture3 = "">
<CFSET strTempItem.picture4 = "">
I would imagine that I probably need some kind of javascript.
this is the string that the transaction provider needs me to send
<input type="hidden" name="orderstring" value="1~Listing~#session.auth1.Grand_subtotal#~1~Y~||2~GST~#session.auth1.GST#~1~N~||3~Listing~#session.auth1.PST#~1~N~||">
This is the structer that I would like to take the information from
<CFSET strTempItem = StructNew()>
<cfset strtempitem.Orderid = "#Todays_Date##Todays_time#">
<cfset strtempitem.submitID = #form.submitID#>
<cfset strtempitem.categoryid = #form.select_Ad_Subcategory#>
<cfset strtempitem.subcategoryid = #form.selectLocal#>
<cfset strtempitem.subcategory = #form.sub#>
<cfset strtempitem.location = #form.location#>
<cfset strtempitem.itemname = #form.Itemname#>
<cfset strtempitem.Short_Description = #form.Short_Description#>
<cfset strtempitem.long_description = #form.long_description#>
<cfset strtempitem.itemprice = #form.itemprice#>
<cfset strtempitem.featured = #form.featured#>
<cfset strtempitem.begindate = #form.begindate#>
<cfset strtempitem.Enddate = (#form.begindate# + #form.Enddate#)>
<CFSET strTempItem.picture1 = "">
<CFSET strTempItem.picture2 = "">
<CFSET strTempItem.picture3 = "">
<CFSET strTempItem.picture4 = "">
I would imagine that I probably need some kind of javascript.