Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Question on cloned table shipping modules and 1.3.9 upgrade

Question on cloned table shipping modules and 1.3.9 upgrade

Locked

Views: 864

Results 1 to 1 of 1
This thread is locked. New replies are disabled.
16 Jun 2010, 2:42 PM
#1
earmsby avatar

earmsby

Zen Follower

Join Date:
Oct 2006
Location:
Worcester, MA
Posts:
451
Plugin Contributions:
0

Question on cloned table shipping modules and 1.3.9 upgrade

Hello!

I have a client with a Zen Cart which has several cloned table shipping modules. I'm preparing to upgrade this client to the newer version of ZC (from 1.3.8).

I noticed that in the new version of the tables shipping file (includes/modules/shipping/table.php) the function remove() has changed slightly.

It was:

function remove() {
global $db;
$db->Execute("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')");
}

And now is:

function remove() {
global $db;
$db->Execute("delete from " . TABLE_CONFIGURATION . " where configuration_key like 'MODULE_SHIPPING_TABLE_%'");
}

So, my question is whether the cloned versions of the new function should be:

function remove() {
global $db;
$db->Execute("delete from " . TABLE_CONFIGURATION . " where configuration_key like 'MODULE_SHIPPING_MYCLONENAME_%'");
}

Anyone know?

Thanks!