• 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: Paypal Integration et multiple products

Paypal Integration et multiple products 11 years 2 months ago #26556

  • Patate2
  • Patate2's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
Hello,

I use Rsform! Pro to create a small shopping cart like that :
www.rsjoomla.com/blog/view/55-3-ways-to-...d-paypal-part-3.html

It works perfectly but I don't find how to return the name of items.

I use this script as explain in the tutorial :
if($_POST['form']['Total'] != '0')
{
$business = 'me@mybusiness.com';
$item_name = 'Products';
$currency_code = 'USD';
$amount = $_POST['form']['Total'];
$return = 'http://your_site.com';
header('Location: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business='.$business.'&item_name='.$item_name.'&currency_code='.$currency_code.'&amount='.$amount.'&return='.$return); exit();
}

This script return "Products" or whatever in the product name in Paypal. But, as I have multiple products, I would like each name of each product choosen by the customer appear in Paypal.
How can I do ?

Thank you very much for your answer.
The administrator has disabled public write access.

Paypal Integration et multiple products 11 years 2 months ago #26560

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.

Paypal Integration et multiple products 11 years 2 months ago #26561

  • Patate2
  • Patate2's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
Thank you but how can I do to recover the name of the product fields ?
What can I write instead of "Products" in "$item_name = 'Products';" ?
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!