Something strange in my checkout.html page

Get help with nopcart formatting or style related issues.

Moderators: Koibito, Stefko, Randy

Something strange in my checkout.html page

Postby sandrat » Wed Apr 20, 2011 2:51 am

Hi!
Finally I have my shipping cost passing to PayPal in the right way but... (always is a "but"), there is something strange in my checkout page. It shows the first item, the shipping selector, amounts, etc, but the second item is shown down the cart itself.

I mean:
______________________________________________
\ this is the cart content \
\ with shipping cost etc. \
______________________________________________

and here appear other items with the remained data

And here the button to go to PayPal

Oh, my God, It is hard to explain. :roll: Ok, may be this way: no matter how many items I order, there is only always 1 on the shopping cart at the checkout.html and the other items appear down the cart. But in the management.html items show up perfect.

I got in my checkout.html:

<INPUT type="hidden" value="_cart" name="cmd">
<INPUT type="hidden" value="1" name="upload">
<input type="hidden" name="first_name">
<input type="hidden" name="last_name">
<input type="hidden" name="address1">
<input type="hidden" name="address2">
<input type="hidden" name="city">
<input type="hidden" name="state">
<input type="hidden" name="zip">
<input type="hidden" name="email">
<INPUT type="hidden" value="email@bussiness.com" name="business">
<INPUT type="hidden" name="currency_code" value = "EUR">
<INPUT type="hidden" value="http://www.myweb.com/thankyou.html" name="return">

In my pp at the checkout funtion I have:
______________________________________________________________________________________
strFooter = "";
}
if ( PaymentProcessor == 'pp' ) {
//Process hidden values for PayPal.
strOutput += "<input type=hidden name=\"item_number_" + strFooter + "\" value=\"" + fields[0] + "\">";
strOutput += "<input type=hidden name=\"quantity_" + strFooter + "\" value=\"" + fields[1] + "\">";
strOutput += "<input type=hidden name=\"amount_" + strFooter + "\" value=\"" + fields[2] + "\">";
strOutput += "<input type=hidden name=\"item_name_" + strFooter + "\" value=\"" + fields[3] + "\">";
//strOutput += "<input type=hidden name=\"shipping_" + strFooter + "\" value=\"" + fields[4] + "\">";
strOutput += "<input type=hidden name=\"on0_" + strFooter + "\" value=\"" + fields[5] + "\">";
strOutput += "<input type=hidden name=\"handling_cart\" value=\"" +moneyFormat(fShipping)+"\">";
strOutput += "<input type=hidden name=\"no_shipping\" value=\"2\" />";
if (i == iNumberOrdered) {
strOutput += "<input type=hidden name=\"shipping_" + strFooter + "\" value=\"" + fShipping + "\">";
____________________________________________________________________________________

Would somebody please, help me with this?
Thank youuuuuuuuuu!
Sandra :oops:
sandrat
WebMaster
 
Posts: 28
Joined: Thu Sep 17, 2009 3:33 pm

Re: Something strange in my checkout.html page

Postby sandrat » Wed Apr 20, 2011 2:18 pm

I found out the answer:

the line

strOutput += "<input type=hidden name=\"handling_cart\" value=\"" +moneyFormat(fShipping)+"\">";

shouldn´t be there but a few lines down.

Crazy, uh?
Thanks.
sandrat
WebMaster
 
Posts: 28
Joined: Thu Sep 17, 2009 3:33 pm


Return to Help: Formatting and Style

Who is online

Users browsing this forum: No registered users and 1 guest

cron