Jump to content

Recommended Posts

i have increased the number of shipment zones  like in the old version of Oscommerce;

but when i go to edit the zone  in the  interface no i haven't the labels  and if  i try to save any value,  it recording only the first zone

label.jpg

Share this post


Link to post
Share on other sites
50 minutes ago, bitit.it said:

i have increased the number of shipment zones 

To do that you must have edited the class file, clearly you made an error, check the bottom section with your keys you must be missing some

function install() {
      tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable Best Sellers Module', 'MODULE_BOXES_BEST_SELLERS_STATUS', 'True', 'Do you want to add the module to your shop?', '6', '1', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())");
      tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Content Placement', 'MODULE_BOXES_BEST_SELLERS_CONTENT_PLACEMENT', 'Right Column', 'Should the module be loaded in the left or right column?', '6', '1', 'tep_cfg_select_option(array(\'Left Column\', \'Right Column\'), ', now())");
      tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort Order', 'MODULE_BOXES_BEST_SELLERS_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '0', now())");
    }

    function remove() {
      tep_db_query("delete from configuration where configuration_key in ('" . implode("', '", $this->keys()) . "')");
    }

    function keys() {
      return array('MODULE_BOXES_BEST_SELLERS_STATUS', 'MODULE_BOXES_BEST_SELLERS_CONTENT_PLACEMENT', 'MODULE_BOXES_BEST_SELLERS_SORT_ORDER');
    }
  }

 


 

Share this post


Link to post
Share on other sites

@bitit.it

You stated:

1 hour ago, bitit.it said:

i have increased the number of shipment zones  like in the old version of Oscommerce;

but what it looks like is that you increased the number of fields in a shipping module. Two different things!

As Zahid pointed out, you did not create/modify the shipping module correctly. Not only do you need the additional fields to be loaded into the database (and deleted if you remove the module), but you also have to put the labels for the new fields in the module's language file.

M


Get the latest Responsive osCommerce CE (community edition) here .

Share this post


Link to post
Share on other sites

Uninstall the module and then re-install the module.

 


This is a signature that appears on all my posts.  
IF YOU MAKE A POST REQUESTING HELP...please state the exact version
of osCommerce that you are using. THANKS

 
Get the latest Responsive osCommerce CE (community edition) here

Share this post


Link to post
Share on other sites
Posted (edited)

In  includes/modules/shipping/zones.php

Find:

      // CUSTOMIZE THIS SETTING FOR THE NUMBER OF ZONES NEEDED
      $this->num_zones = 4;

Amend the number to the quantity of zones you require. Stock is 1, I have 4.

If you have already made this change, un-install the module and reinstall it.

Edited by mhsuffolk

OsC 2.3.4.1 CE Frozen   PHP 7.2   MySQL 10.1.36-MariaDB-cll-lve. Phoenix in development

Is your version of osC up to date? You'll find the latest osC community version (CE Phoenix 1.0.2.0) here.

Share this post


Link to post
Share on other sites
13 hours ago, burt said:

Uninstall the module and then re-install the module.

 

Fine thank!!   it work.

Enrico

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×