Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Morning all,

 

 

I already posted this issue in General Support instead of here 1st - sorry for the confusion... anyway...

 

 

http://www.oscommerce.com/community/contri...ch,ship+in+cart

 

I've followed the directions on this contribution but do not see the results - nothing seems to have happened

 

 

 

 

Here is what was done per the directions:

 

1) Ran the included SQL into "configuration" using MySQL - the only probelm here is that I ran the 1st line of this SQL into "configuration" an not "configuration group" but when I went to run it into "configuration_group" My Sql said it was a duplicate

 

INSERT INTO configuration_group (configuration_group_id, configuration_group_title, configuration_group_description, sort_order, visible) VALUES (19, 'Shopping Cart', 'Shopping Cart options', 19, 1);

INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (219, 'Shipping and Order Total Estimate', 'CARTSHIP_ONOFF', 'Enabled', 'Show shipping and order total estimate', 19, 1, '2004-06-29 07:10:52', '2004-06-29 07:10:52', NULL, 'tep_cfg_select_option(array(\'Enabled\', \'Disabled\'),');

INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (220, 'Display order totals', 'CARTSHIP_SHOWOT', 'true', 'Display order totals', 19, 2, '2004-06-29 07:10:52', '2004-06-29 07:10:52', NULL, 'tep_cfg_select_option(array(\'true\', \'false\'),');

INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (221, 'Display item count', 'CARTSHIP_SHOWIC', 'true', 'Display item count', 19, 2, '2004-06-29 07:10:52', '2004-06-29 07:10:52', NULL, 'tep_cfg_select_option(array(\'true\', \'false\'),');

INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (222, 'Display shipping weight', 'CARTSHIP_SHOWWT', 'false', 'Display shipping weight', 19, 4, '2004-06-29 07:10:52', '2004-06-29 07:10:52', NULL, 'tep_cfg_select_option(array(\'true\', \'false\'),');

INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (223, 'Shipping weight unit', 'CARTSHIP_WTUNIT', 'lbs', 'Shipping weight unit', 19, 5, '2004-06-29 07:10:52', '2004-06-29 07:10:52', NULL, NULL);

INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (224, 'Display Country drop-down menu', 'CARTSHIP_SHOWCDD', 'false', 'Display Country drop-down menu', 19, 6, '2004-06-29 07:10:52', '2004-06-29 07:10:52', NULL, 'tep_cfg_select_option(array(\'true\', \'false\'),');

INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (225, 'Display State drop-down menu', 'CARTSHIP_SHOWSDD', 'false', 'Display State drop-down menu', 19, 7, '2004-06-29 07:10:52', '2004-06-29 07:10:52', NULL, 'tep_cfg_select_option(array(\'true\', \'false\'),');

INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (226, 'Display Zip Code drop-down menu', 'CARTSHIP_SHOWZDD', 'false', 'Display Zip Code drop-down menu', 19, 8, '2004-06-29 07:10:52', '2004-06-29 07:10:52', NULL, 'tep_cfg_select_option(array(\'true\', \'false\'),');

INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES (227, 'Display Update button', 'CARTSHIP_SHOWUB', 'false', 'Display Update button', 19, 9, '2004-06-29 07:10:52', '2004-06-29 07:10:52', NULL, 'tep_cfg_select_option(array(\'true\', \'false\'),');

 

 

 

 

 

2) catalog/images/icons/ (in included folder)

Choose an icon which suits your site or create one of your own. Rename the one you choose to 'selected.gif' Delete the rest.

 

Seletected the one I wanted, changed the name and uploaded it to images/icons

 

 

 

 

3) Copy all included new files to the appropriate directories.

shipping_estimator.php loaded into includes/languages/english/modules via WSFTP

shipping_estimator.php loaded into includes/modules

 

 

 

 

4) FIND: (dependant on osC version)

<?php

} else {

?>

<tr>

<td align="center" class="main"><?php new infoBox(array(array('text' => TEXT_CART_EMPTY))); ?></td>

</tr>

 

 

ADD ABOVE:

</form><tr>

<td><br><?php if (CARTSHIP_ONOFF == 'Enabled') { require(DIR_WS_MODULES . 'shipping_estimator.php'); } else {}; ?></td>

</tr>

 

 

Done - added above the find

 

 

 

 

 

5) /catalog/includes/filenames.php

 

ADD:

 

define('FILENAME_SHIPPING_ESTIMATOR', 'shipping_estimator.php');

 

 

Done - added at bottom pf php

 

 

 

Am I asking in the correct location on these boards or is there a support thread for this contribution? I've tried doing searches but keep getting the "flood control" message.

 

 

 

Thank you

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...