• 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: Need to override shipping and tax in PayPal

Need to override shipping and tax in PayPal 13 years 5 months ago #15530

  • TWCPC
  • TWCPC's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
I have a registration form where registrants do not pay shipping and tax. In other parts of the site are pages with PayPal buttons where shipping and tax is figured at the PayPal payment screen. My form charges shipping and tax. I would like to know if there is any scripting I can add to the form to make it override PayPal. Any guidance would be appreciated.
The administrator has disabled public write access.

Re: Need to override shipping and tax in PayPal 13 years 3 months ago #16087

Did you ever resolve this, I have the same need.

Thanks for your time and suggestions.

Eric
The administrator has disabled public write access.

Re: Need to override shipping and tax in PayPal 9 years 11 months ago #31320

  • jami
  • jami's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 35
  • Thank you received: 4
I know this is an old post, but I figured out how to do this so thought I'd post it here in case anyone else like me is searching desperately to figure out how to override shipping in PayPal.

In the "PHP Scripts" area of your form enter the following code into the bottom the box the one for "Script called AFTER the form has been processed":
// Get a new instance of the PayPal object.
$paypal = RSFormProPayPal::getInstance();
 
// Next we will overwrite the parameters listed above
// set the shipping and additional item shipping (shipping2) to 0.0
$paypal->args['shipping'] = '0.0';
$paypal->args['shipping2'] = '0.0';
 
//this next one will set it so that PayPal does not ask for a shipping address
//this one may not be necessary but I used it anyway
$paypal->args['no_shipping'] = '1';
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!