close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

eCart not passing Discount to PayPal

Thread began 12/14/2011 7:53 am by Nathon Jones Web Design | Last modified 10/16/2013 11:36 am by Nathon Jones Web Design | 3088 views | 14 replies

Nathon Jones Web Design

not passing to PayPal

Hi Jason,

That's not passing anything to PayPal. Here's my form...

<form action="" method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="upload" value="1">
<input type="hidden" name="business" value="ouremail@paypal.comk">
<%BFcart_Index = BFcart.DisplayIndex - 2%>
while (NOT WA_eCart_EOF(BFcart))
<%BFcart_Index = BFcart_Index + 1%>
<% 'WA eCart Validation
if ((WA_eCart_FormatNumber(WA_eCart_DisplayInfo(BFcart, "Price") - ((WA_eCart_DisplayInfo(BFcart, "Price")/WA_eCart_TotalColumn(BFcart, "TotalPrice")) * WA_eCart_GetDiscounts(BFcart)), false, 2) > 0)) then
<input type="hidden" name="item_name_<%=BFcart_Index+1%>" value="<%=WA_eCart_DisplayInfo(BFcart, "Name")%>">
<input type="hidden" name="item_number_<%=BFcart_Index+1%>" value="<%=WA_eCart_DisplayInfo(BFcart, "BFitemcode")%>/<%=WA_eCart_DisplayInfo(BFcart, "SKUcode")%>">
<input type="hidden" name="on0_<%=BFcart_Index+1%>" value="<%=WA_eCart_DisplayInfo(BFcart, "Personalise1TITLE")%>">
<input type="hidden" name="os0_<%=BFcart_Index+1%>" value="<%=WA_eCart_DisplayInfo(BFcart, "Personalise1")%>">

<%IF WA_eCart_DisplayInfo(BFcart, "Personalise2") <> "" Then%>
<input type="hidden" name="on1_<%=BFcart_Index+1%>" value="<%=WA_eCart_DisplayInfo(BFcart, "Personalise2TITLE")%>">
<input type="hidden" name="os1_<%=BFcart_Index+1%>" value="<%=WA_eCart_DisplayInfo(BFcart, "Personalise2")%>">
<%End IF%>

<%IF WA_eCart_DisplayInfo(BFcart, "Personalise3") <> "" Then%>
<input type="hidden" name="on2_<%=BFcart_Index+1%>" value="<%=WA_eCart_DisplayInfo(BFcart, "Personalise3TITLE")%>">
<input type="hidden" name="os2_<%=BFcart_Index+1%>" value="<%=WA_eCart_DisplayInfo(BFcart, "Personalise3")%>">
<%End IF%>

<%IF WA_eCart_DisplayInfo(BFcart, "Personalise4") <> "" Then%>
<input type="hidden" name="on3_<%=BFcart_Index+1%>" value="<%=WA_eCart_DisplayInfo(BFcart, "Personalise4TITLE")%>">
<input type="hidden" name="os3_<%=BFcart_Index+1%>" value="<%=WA_eCart_DisplayInfo(BFcart, "Personalise4")%>">
<%End IF%>

<%IF WA_eCart_DisplayInfo(BFcart, "Personalise5") <> "" Then%>
<input type="hidden" name="on4_<%=BFcart_Index+1%>" value="<%=WA_eCart_DisplayInfo(BFcart, "Personalise5TITLE")%>">
<input type="hidden" name="os4_<%=BFcart_Index+1%>" value="<%=WA_eCart_DisplayInfo(BFcart, "Personalise5")%>">
<%End IF%>

<%IF WA_eCart_DisplayInfo(BFcart, "Personalise6") <> "" Then%>
<input type="hidden" name="on5_<%=BFcart_Index+1%>" value="<%=WA_eCart_DisplayInfo(BFcart, "Personalise6TITLE")%>">
<input type="hidden" name="os5_<%=BFcart_Index+1%>" value="<%=WA_eCart_DisplayInfo(BFcart, "Personalise6")%>">
<%End IF%>

<%IF WA_eCart_DisplayInfo(BFcart, "AddGiftWrap") = 1 Then%>
<input type="hidden" name="on6_<%=BFcart_Index+1%>" value="Gift Wrap">
<input type="hidden" name="os6_<%=BFcart_Index+1%>" value="Yes">
<%End IF%>

<%IF WA_eCart_DisplayInfo(BFcart, "MessageGiftWrap") <> "" Then%>
<input type="hidden" name="on7_<%=BFcart_Index+1%>" value="Gift Wrap Message">
<input type="hidden" name="os7_<%=BFcart_Index+1%>" value="<%=WA_eCart_DisplayInfo(BFcart, "MessageGiftWrap")%>">
<%End IF%>

<input type="hidden" name="amount_<%=BFcart_Index+1%>" value="<%=WA_eCart_DisplayInfo(BFcart, "Price")%>">
<input type="hidden" name="quantity_<%=BFcart_Index+1%>" value="<%=WA_eCart_DisplayInfo(BFcart, "Quantity")%>">
<% 'WA eCart Validation
BFcart_Index = BFcart_Index - 1
end if
set BFcart = WA_eCart_MoveNext(BFcart)
set BFcart = WA_eCart_MoveFirst(BFcart)
<input type="hidden" name="shipping_1" value="<%=WA_eCart_GetShipping(BFcart)%>">
<input type="hidden" name="shipping2_1" value="0">
<input type="hidden" name="discount_amount_cart" value="<%=WA_eCart_GetDiscounts(BFcart)%>">
<input type="hidden" name="custom" id="custom" value="<%=WA_eCart_GetCharges(BFcart)%>" />
<input type="hidden" name="currency_code" value="GBP">

Have PayPal dropped the custom option do you think?
Thanks again.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...