Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Administration / Modules / Shipping or Payment


dprall

Recommended Posts

Posted

I'm attempting to edit the settings within the Flat Rate Shipping and Credit Card Payment. Click on Edit, make my changes, Click on Update. It returns me to where I started. I've stopped apache and mysql, it shows what I originally had. I've even tried accessing from another computer to confirm it wasn't the cache. Any help is appreciated. I've previously made changes to the Flat Rate Shipping without issues. But now it won't take.

Posted
I'm attempting to edit the settings within the Flat Rate Shipping and Credit Card Payment. Click on Edit, make my changes, Click on Update. It returns me to where I started. I've stopped apache and mysql, it shows what I originally had. I've even tried accessing from another computer to confirm it wasn't the cache. Any help is appreciated. I've previously made changes to the Flat Rate Shipping without issues. But now it won't take.
If this is a new installation of osC 060817, then you are 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

Posted
If this is a new installation of osC 060817, then you are 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.

 

That was it, thank you very much. I searched for a number of hours with no end in site. Thank you again.

Archived

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

×
×
  • Create New...