Jump to content
Sign in to follow this  
PaganMan

Payment Modules

Recommended Posts

Hi all,

 

I have just re-installed oscommerce, the UK version, and on installing and setting up payment modules I am getting this:

  • NOCHEX
  • Requires the GBP currency.
  • Enable NOCHEX Module
  • True
  • E-Mail Address
  • you@yourbuisness.com
  • Payment Zone
  • --none--
  • Set Order Status
  • default
  • Sort order of display.
  • 0

and

  • PayPal
  • Enable PayPal Module
  • True
  • E-Mail Address
  • you@yourbusiness.com
  • Transaction Currency
  • Selected Currency
  • Payment Zone
  • --none--
  • Set Order Status
  • default
  • Sort order of display.
  • 0

it will not let me edit the modules to my specs. Can anybody help me please?

 

Regards

Geoff


I told you Ryan, if one gets through, its a miracle. (Trevor Howard to Frank Sinatra: Von Ryan's Express)

Share this post


Link to post
Share on other sites

If this is a new installation of osC 060817, then you may be experiencing the widely known "refresh bug" of the modules section which includes shipping, payment, etc.

There is a simple fix:

 

 

1. Open the catalog/admin/includes/functions/compatibility.php.

2. At the end of the “do_magic_quotes_gpc” routine, add the following code

 

reset($ar);

 

It will end up looking like this:

 

function do_magic_quotes_gpc(&$ar) {
if (!is_array($ar)) return false;
while (list($key, $value) = each($ar)) {
if (is_array($ar[$key])) {
do_magic_quotes_gpc($ar[$key]);
} else {
$ar[$key] = addslashes($value);
}
}
reset($ar);
}

 

3. Do the same for the compatibility.php file located in catalog/includes/functions/compatibility.php.


Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Share this post


Link to post
Share on other sites
If this is a new installation of osC, then you may be experiencing the widely known "refresh bug" of the modules section which includes shipping, payment, etc.

There is a simple fix:

1. Open the catalog/admin/includes/functions/compatibility.php.

2. At the end of the “do_magic_quotes_gpc” routine, add the following code

 

reset($ar);

 

It will end up looking like this:

 

function do_magic_quotes_gpc(&$ar) {
if (!is_array($ar)) return false;
while (list($key, $value) = each($ar)) {
if (is_array($ar[$key])) {
do_magic_quotes_gpc($ar[$key]);
} else {
$ar[$key] = addslashes($value);
}
}
reset($ar);
}

 

3. Do the same for the compatibility.php file located in catalog/includes/functions/compatibility.php.

 

 

Thanks for that - will let you know how it turns out.

 

Regards

Geoff


I told you Ryan, if one gets through, its a miracle. (Trevor Howard to Frank Sinatra: Von Ryan's Express)

Share this post


Link to post
Share on other sites

That worked fine bkellum, what I would like to know now is how to add shipping modules, as in Royal Mail charges.

 

Thanks

Geoff


I told you Ryan, if one gets through, its a miracle. (Trevor Howard to Frank Sinatra: Von Ryan's Express)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×