Jump to content


Photo

Item description on summary page missing


  • This topic is locked This topic is locked
No replies to this topic

#1 china99boy

china99boy

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 04 July 2013 - 05:27 AM

Hi all--

I am not sure where I went wrong. I can't seem to get the item description to populate on the Summary Page. It is currently asking the user to "Enter a description" Can anyone point me in the right direction?

Thanks

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>

<script type="text/javascript">
<!-- Update Price Change
function UpdateForm (object1) {             // process change selects
var i,item_amt,object,position,val;
  item_amt = object1.amount.value;          // default amount
  for (i=0; i<object1.length; i++) {        // check options
    object = object1.elements[i];           
    if (object.type == "select-one" &&
        object.name == "cng") {             // must be named cng
      position = object.selectedIndex;      // option selected
      val = object.options[position].value; // selected value
      position  = val.indexOf ("$");        // set new price
      if (position >= 0) item_amt = val.substring (position + 1)*1.0; 
    }
  }
  object1.amount.value = item_amt;
  if (object1.item_total) object1.item_total.value = "$" + item_amt;
}
//-->
</script>

</head>

<body>

 <form action="https://www.paypal.com/cgi-bin/webscr" method="post" 
	onsubmit="this.target='paypal';UpdateForm(this);">

 <input type="hidden" name="cmd" value="_xclick">
     
        <!--- Enter your PayPal Business Email Account here -->
        <input name="business" type="hidden" value="test@gmail.com" />
        <input type="hidden" name="amount" value="200.00">

	<table>
	
	 <select name="cng" onchange="UpdateForm(this.form);"> 
 	<option value="Inside, front, or back cover">Inside, front, or back cover $200.00 USD</option>
	 <option value="Full Page $150.00">Color: Full Page $150.00</option>
	 <option value="½ Page $75.00">Color: ½ Page $75.00</option>
 	 <option value="¼ Page $35.00">Color: ¼ Page $35.00</option>
 	 <option value="Business Card $20.00">Color: Business Card $20.00</option>
 	<option value="Full Page $150.00">B&W: Full Page $100.00</option>
 	<option value="½ Page $75.00">B&W: ½ Page $50.00</option>
	  <option value="¼ Page $35.00">B&W: ¼ Page $25.00</option>
	  <option value="Business Card $20.00">B&W: Business Card $15.00</option>
 
</select>

</table>
<input type="hidden" name="currency_code" value="USD">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>

</body>
</html>





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users