Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

tntpostf v1.0 all payment methods shown when selecting cod on shipping


Recommended Posts

Posted (edited)

tntpostf v1.0 readme:

"When a COD option is chosen, only the payment module 'cash' will be displayed. If you haven't

this module installed your old list of payment modules will be displayed. If you want another

payment module for COD, change in the source 'payment.php', 'cash.php' to your module name."

 

However if i do so (change cash.php into cod.php) its still not working.

 

I use oscommerce-2.2rc2.

 

Debugged a little and found that $shipping is empty!?

 

Anyone some thoughts?

Edited by pbor1234
Posted

GOT IT!

 

Change:

 

global $payment, $language, $PHP_SELF;

 

into

 

global $payment, $language, $PHP_SELF, $shipping;

 

in the first line of the constructor (in the same function).

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...