Small question when installing GC with Modified osCommerce

5 views
Skip to first unread message

John

unread,
Jan 17, 2011, 3:22:31 PM1/17/11
to Google Checkout Module for osCommerce Support
Hi,

I have a small question regarding the installation of GC on a modified
cart. It says in the installation instructions:

Replace:

case 'save':
while (list($key, $value) =
each($HTTP_POST_VARS['configuration'])) {
tep_db_query("update " . TABLE_CONFIGURATION . " set
configuration_value = '" . $value . "' where configuration_key = '" .
$key . "'");
}
tep_redirect(tep_href_link(FILENAME_MODULES, 'set=' . $set .
'&module=' . $HTTP_GET_VARS['module']));
break;

Buy my code says on line 65:

case 'save':
while (list($key, $value) =
each($HTTP_POST_VARS['configuration'])) {
if( is_array( $value ) ){
$value = implode( ", ", $value);
$value = ereg_replace (", --none--", "", $value);
}
tep_db_query("update " . TABLE_CONFIGURATION . " set
configuration_value = '" . $value . "' where configuration_key = '" .
$key . "'");
}
tep_redirect(tep_href_link(FILENAME_MODULES, 'set=' . $set .
'&module=' . $HTTP_GET_VARS['module'], $SSL));
break;

My code is different and I want to know if I change it, will it mess
up my shopping cart?

Thank you so much for your time!
John

Tom Shanks

unread,
Jan 17, 2011, 6:23:17 PM1/17/11
to google-checkout-f...@googlegroups.com
It's difficult to say exactly with the information you've provided. What
part of the code do you intend to replace. If you intend to replace it all
it looks like you've got a secure cart (using ssl) so you could run into
problems with your online shop. The best way to learn is to have a backup
copy of your files and go ahead and replace the code you want to replace and
see what happens - you can always revert back to your saved version. If your
site is live, I always recommend having a back up copy locally and
experiment with your code there. I work locally with wampserver, extremely
good for experimenting without doing damage to your online business.

Regards,

Tom

Hi,

Replace:

--
Google Checkout Module for osCommerce Support

Documentation and latest releases:
http://code.google.com/p/google-checkout-oscommerce/

Group archives:
http://groups.google.com/group/google-checkout-for-osc-mod-support

To post to this forum, email
google-checkout-f...@googlegroups.com.
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.872 / Virus Database: 271.1.1/3386 - Release Date: 01/17/11
07:34:00

Reply all
Reply to author
Forward
0 new messages