Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Paypal email not saving


herpsandinvertsuk

Recommended Posts

Posted

Hi,

 

I'm fairly new to ecommerce but I have tried to research this problem with no success.

 

While in payment modules I try to set up the paypal module but every time I click Update nothing is actually saved. I tried this with my laptop downstairs so I don't think it's my pc.

 

Any help appreciated and sorry if this is posted in the wrong foum.

 

Regards.

Sam

Posted
Hi,

 

I'm fairly new to ecommerce but I have tried to research this problem with no success.

 

While in payment modules I try to set up the paypal module but every time I click Update nothing is actually saved. I tried this with my laptop downstairs so I don't think it's my pc.

 

Any help appreciated and sorry if this is posted in the wrong foum.

 

Regards.

Sam

 

Yes there is a problem in the latest tarball and the answer is very well hidden

 

Go to compatibility.php in both catalog/include functions

 

and

catalog/admin/include/functions

 

and change this bit of code

 

// Ie, products attributes

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);

}

}

}

 

 

to

 

 

// Ie, products attributes

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);

}

 

 

and it should wor

 

(back the file up first

 

best

 

Brian

Posted
Thanks a lot mate!

 

 

no probs, hope it helps

Archived

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

×
×
  • Create New...