Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PayPal problems - need urgent help


Guest

Recommended Posts

Posted

Hi I have a problem with paypal payments. I need to remove the shipping address from paypal processing page.

 

Here is a message I got from paypal support

 

"....Setting the value of "no_shipping" to "1" will tell our system to not ask for a shipping address.

 

I put in an order at http://www.polimexforwarding.com/polimex and looked at the code that is actually being submitted to PayPal by stopping the redirect page load and viewing the source. In that code, the "no_shipping" variable isn't being passed, so the buyers will have the option to include the address or not. If you pass the "no_shipping" variable with a value of "1", it won't prompt them for a shipping address."

 

 

How and where do I add this value? I searched on internet and everyone is pointing to paypal_ipn.php, but I don't have that file in my store. I found paypal.php and ipn.php.

 

 

Thanks for any help in advance

Posted

are you using default paypal module of OSC or installed any module to accept paypal payments?

Posted

It came with the template, so I assume its a default paypal module. I did not add any paypal modules

Posted

It does not help in understanding the paypal module you are using because you are using a customized shop. can you post the module file you are using for paypal?

Posted

file paypal.php from

 

/includes/modules/paymnets/

 

im posting only header. Let me know if you want me to post the whole file, its over 350 lines.

 

 

$Id: paypal.php,v 2.8 2004/09/11 devosc Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

DevosC, Developing open source Code

http://www.devosc.com

 

Copyright © 2003 osCommerce

Copyright © 2004 DevosC.com

 

Released under the GNU General Public License

 

 

in this file i found:

 

if(MODULE_PAYMENT_PAYPAL_SHIPPING_ALLOWED == 'No' ) $paypal_fields .= tep_draw_hidden_field('no_shipping', '1' );

 

 

but according to paypal support its not being passed to paypal.

Posted

This is difficult to guess the reason of not passing "no_shipping" to paypal.

 

You can try removing the condition in paypal.php:

 

Replace the line:

 

if(MODULE_PAYMENT_PAYPAL_SHIPPING_ALLOWED == 'No' ) $paypal_fields .= tep_draw_hidden_field('no_shipping', '1' );

 

With:

 

$paypal_fields .= tep_draw_hidden_field('no_shipping', '1' );

 

Make a backup of your file before modifications.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...