• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: How do I pass PayPal items? With Shipping?

How do I pass PayPal items? With Shipping? 10 years 11 months ago #27759

I have my form working for submitting a complete order to PayPal but the issue is I can't get PayPal to show each item. It shows as 1 item with the total for all items and only one description being the $item_name.

I know of developer.paypal.com/webapps/developer/d...ndard_htmlvariables/ that gives all the variables but I have no idea how to implement them.

I'd also like to show the amount for shipping on the PayPal purchase page.

Can anyone help with this please?

Here is what I have so far. I have 6 items I am selling with the ability to purchase multiples of each item.

Javascript code section
<script type="text/javascript">
function enableQuantity(prod,quantity)
{
if(document.getElementById(prod).checked)
document.getElementById(quantity).disabled = false;

else
document.getElementById(quantity).disabled = true;
calculateTotal();

}

function calculateTotal()
{
var products = new Array("Product10","Product20","Product30","Product40","Product50","Product60");
var i=0;
var total = 0;
for(i;i<products.length;i++)
if(document.getElementById(products).checked)
{

//alert(document.getElementById("QuantityProd"+(i+1)).value);
total = total + parseFloat(document.getElementById(products).value) * parseFloat(document.getElementById('QuantityProd'+(i+1)).value);
}
document.getElementById('Total').value = total;
}

window.addEvent('domready', function() {
enableQuantity('Product10','QuantityProd1');
enableQuantity('Product20','QuantityProd2');
enableQuantity('Product30','QuantityProd3');
enableQuantity('Product40','QuantityProd4');
enableQuantity('Product50','QuantityProd5');
enableQuantity('Product60','QuantityProd6');
});
</script>

Script called after form has been processed section

if($_POST != '0')
{
$business = 'intentionally This e-mail address is being protected from spambots. You need JavaScript enabled to view it ';
$item_name = 'Product';
$currency_code = 'USD';
$amount = $_POST;
$return = 'www.intentionally hidden.com/index.php?option=com_content&...icle&id=51&Itemid=54';
header('Location: www.paypal.com/cgi-bin/webscr?cmd=_xclic...t.'&return='.$return); exit();
}
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!