PDA

View Full Version : USPS Rate V4 Intl Rate V2 - v.1.0



michael_s
02-08-2012, 03:02 AM
Instructions for making this compatible with Dynamic Templates System found here:
http://addons.oscommerce.com/info/7691

In admin/modules.php
find:

case 'save':
reset($HTTP_POST_VARS['configuration']);
while (list($key, $value) = each($HTTP_POST_VARS['configuration'])) {
tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . $value . "' where configuration_key = '" . $key . "'");
}


Instead of normal instructions
replace with:

case 'save':
reset($HTTP_POST_VARS['configuration']);
while (list($key, $value) = each($HTTP_POST_VARS['configuration'])) {
// Dynamic Template System Start
if((is_array($value)) && (!empty($value)))
{
if (isset($set) && $set == "boxes")
{
$pages = '';
$count = count($value);
for($i=0 ; $i