yanarasod Posted May 2, 2006 Posted May 2, 2006 I have some problems please check them: 1. where to change products weight from kilograms to grams: where is the products weight unit box , how can i change it 2. also the product weight for any new prodcuct doesn't show up: when we create a new product there is a attribute "Products Weight" in the admin section, but it doesnot show up in site. there is no products weight being displayed.
Jack_mcs Posted May 2, 2006 Posted May 2, 2006 There isn't a weight setting. In the shipping module of your choice, there may be a place to change the wording (like lbs in UPS) but otherwise it isjust a number. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
yanarasod Posted May 2, 2006 Author Posted May 2, 2006 There isn't a weight setting. In the shipping module of your choice, there may be a place to change the wording (like lbs in UPS) but otherwise it isjust a number. Jack ya but what is the default setting in os i still dont know when i type 3 in products weight it shows 6 in the chechout page. so on what basis is it making that calculation. please help urgently
choosealogin Posted May 2, 2006 Posted May 2, 2006 Your package tare weight is probably set to "3". Go to your admin panel > configuration > shipping/packaging > package tare weight It's there to allow for the weight of the box, etc. If you want, you can set it to zero. Then the calculation should come out the way you want it to.
choosealogin Posted May 2, 2006 Posted May 2, 2006 2. also the product weight for any new prodcuct doesn't show up: when we create a new product there is a attribute "Products Weight" in the admin section, but it doesnot show up in site. there is no products weight being displayed. Go to admin > configuration > product listing > display product weight Set the number to something besides zero. It will then show the weight on the product listing page (category pages, not the product info pages). Setting the number higher will put the weight column farther to the right.
yanarasod Posted May 2, 2006 Author Posted May 2, 2006 Your package tare weight is probably set to "3". Go to your admin panel > configuration > shipping/packaging > package tare weight It's there to allow for the weight of the box, etc. If you want, you can set it to zero. Then the calculation should come out the way you want it to. thanks very much. i have another little confusion: there are different rates for different zones. but in zone rates i can set only shipment rates same for all zones. suppose i have 10 zones with different shipment rates. how can i set different rates for different zones. this is very confusing.
wheeloftime Posted May 2, 2006 Posted May 2, 2006 thanks very much. i have another little confusion: there are different rates for different zones. but in zone rates i can set only shipment rates same for all zones. suppose i have 10 zones with different shipment rates. how can i set different rates for different zones. this is very confusing. Read the top part in your (catalog)/includes/modules/shipping/zones.php file. This explains ie. how you can change to 10 zones. Remember to remove and install again the zones module in your admin->modules->shipping to correctly see the changes you made to the amount of zones. There is an article in the knowledge base for zones shipment but it is already based on the next osCommerce version which will be different for the weight units (apart from that it should give you a good idea for todays version also).
yanarasod Posted May 2, 2006 Author Posted May 2, 2006 Read the top part in your (catalog)/includes/modules/shipping/zones.php file. This explains ie. how you can change to 10 zones. Remember to remove and install again the zones module in your admin->modules->shipping to correctly see the changes you made to the amount of zones.There is an article in the knowledge base for zones shipment but it is already based on the next osCommerce version which will be different for the weight units (apart from that it should give you a good idea for todays version also). could you please specify what to change, i did but recieved error in my homepage. i changed // CUSTOMIZE THIS SETTING FOR THE NUMBER OF ZONES NEEDED $this->num_zones = 1; } the one 1 to 2 can you please specify what to edit <?php /* $Id: zones.php,v 1.20 2003/06/15 19:48:09 thomasamoulton Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License USAGE By default, the module comes with support for 1 zone. This can be easily changed by editing the line below in the zones constructor that defines $this->num_zones. Next, you will want to activate the module by going to the Admin screen, clicking on Modules, then clicking on Shipping. A list of all shipping modules should appear. Click on the green dot next to the one labeled zones.php. A list of settings will appear to the right. Click on the Edit button. PLEASE NOTE THAT YOU WILL LOSE YOUR CURRENT SHIPPING RATES AND OTHER SETTINGS IF YOU TURN OFF THIS SHIPPING METHOD. Make sure you keep a backup of your shipping settings somewhere at all times. If you want an additional handling charge applied to orders that use this method, set the Handling Fee field. Next, you will need to define which countries are in each zone. Determining this might take some time and effort. You should group a set of countries that has similar shipping charges for the same weight. For instance, when shipping from the US, the countries of Japan, Australia, New Zealand, and Singapore have similar shipping rates. As an example, one of my customers is using this set of zones: 1: USA 2: Canada 3: Austria, Belgium, Great Britain, France, Germany, Greenland, Iceland, Ireland, Italy, Norway, Holland/Netherlands, Denmark, Poland, Spain, Sweden, Switzerland, Finland, Portugal, Israel, Greece 4: Japan, Australia, New Zealand, Singapore 5: Taiwan, China, Hong Kong When you enter these country lists, enter them into the Zone X Countries fields, where "X" is the number of the zone. They should be entered as two character ISO country codes in all capital letters. They should be separated by commas with no spaces or other punctuation. For example: 1: US 2: CA 3: AT,BE,GB,FR,DE,GL,IS,IE,IT,NO,NL,DK,PL,ES,SE,CH,FI,PT,IL,GR 4: JP,AU,NZ,SG 5: TW,CN,HK Now you need to set up the shipping rate tables for each zone. Again, some time and effort will go into setting the appropriate rates. You will define a set of weight ranges and the shipping price for each range. For instance, you might want an order than weighs more than 0 and less than or equal to 3 to cost 5.50 to ship to a certain zone. This would be defined by this: 3:5.5 You should combine a bunch of these rates together in a comma delimited list and enter them into the "Zone X Shipping Table" fields where "X" is the zone number. For example, this might be used for Zone 1: 1:3.5,2:3.95,3:5.2,4:6.45,5:7.7,6:10.4,7:11.85, 8:13.3,9:14.75,10:16.2,11:17.65, 12:19.1,13:20.55,14:22,15:23.45 The above example includes weights over 0 and up to 15. Note that units are not specified in this explanation since they should be specific to your locale. CAVEATS At this time, it does not deal with weights that are above the highest amount defined. This will probably be the next area to be improved with the module. For now, you could have one last very high range with a very high shipping rate to discourage orders of that magnitude. For instance: 999:1000 If you want to be able to ship to any country in the world, you will need to enter every country code into the Country fields. For most shops, you will not want to enter every country. This is often because of too much fraud from certain places. If a country is not listed, then the module will add a $0.00 shipping charge and will indicate that shipping is not available to that destination. PLEASE NOTE THAT THE ORDER CAN STILL BE COMPLETED AND PROCESSED! It appears that the osC shipping system automatically rounds the shipping weight up to the nearest whole unit. This makes it more difficult to design precise shipping tables. If you want to, you can hack the shipping.php file to get rid of the rounding. Lastly, there is a limit of 255 characters on each of the Zone Shipping Tables and Zone Countries. */ class zones { var $code, $title, $description, $enabled, $num_zones; // class constructor function zones() { $this->code = 'zones'; $this->title = MODULE_SHIPPING_ZONES_TEXT_TITLE; $this->description = MODULE_SHIPPING_ZONES_TEXT_DESCRIPTION; $this->sort_order = MODULE_SHIPPING_ZONES_SORT_ORDER; $this->icon = ''; $this->tax_class = MODULE_SHIPPING_ZONES_TAX_CLASS; $this->enabled = ((MODULE_SHIPPING_ZONES_STATUS == 'True') ? true : false); // CUSTOMIZE THIS SETTING FOR THE NUMBER OF ZONES NEEDED $this->num_zones = 1; } // class methods function quote($method = '') { global $order, $shipping_weight, $shipping_num_boxes; $dest_country = $order->delivery['country']['iso_code_2']; $dest_zone = 0; $error = false; for ($i=1; $i<=$this->num_zones; $i++) { $countries_table = constant('MODULE_SHIPPING_ZONES_COUNTRIES_' . $i); $country_zones = split("[,]", $countries_table); if (in_array($dest_country, $country_zones)) { $dest_zone = $i; break; } } if ($dest_zone == 0) { $error = true; } else { $shipping = -1; $zones_cost = constant('MODULE_SHIPPING_ZONES_COST_' . $dest_zone); $zones_table = split("[:,]" , $zones_cost); $size = sizeof($zones_table); for ($i=0; $i<$size; $i+=2) { if ($shipping_weight <= $zones_table[$i]) { $shipping = $zones_table[$i+1]; $shipping_method = MODULE_SHIPPING_ZONES_TEXT_WAY . ' ' . $dest_country . ' : ' . $shipping_weight . ' ' . MODULE_SHIPPING_ZONES_TEXT_UNITS; break; } } if ($shipping == -1) { $shipping_cost = 0; $shipping_method = MODULE_SHIPPING_ZONES_UNDEFINED_RATE; } else { $shipping_cost = ($shipping * $shipping_num_boxes) + constant('MODULE_SHIPPING_ZONES_HANDLING_' . $dest_zone); } } $this->quotes = array('id' => $this->code, 'module' => MODULE_SHIPPING_ZONES_TEXT_TITLE, 'methods' => array(array('id' => $this->code, 'title' => $shipping_method, 'cost' => $shipping_cost))); if ($this->tax_class > 0) { $this->quotes['tax'] = tep_get_tax_rate($this->tax_class, $order->delivery['country']['id'], $order->delivery['zone_id']); } if (tep_not_null($this->icon)) $this->quotes['icon'] = tep_image($this->icon, $this->title); if ($error == true) $this->quotes['error'] = MODULE_SHIPPING_ZONES_INVALID_ZONE; return $this->quotes; } function check() { if (!isset($this->_check)) { $check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_SHIPPING_ZONES_STATUS'"); $this->_check = tep_db_num_rows($check_query); } return $this->_check; } function install() { tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Enable Zones Method', 'MODULE_SHIPPING_ZONES_STATUS', 'True', 'Do you want to offer zone rate shipping?', '6', '0', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Tax Class', 'MODULE_SHIPPING_ZONES_TAX_CLASS', '0', 'Use the following tax class on the shipping fee.', '6', '0', 'tep_get_tax_class_title', 'tep_cfg_pull_down_tax_classes(', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort Order', 'MODULE_SHIPPING_ZONES_SORT_ORDER', '0', 'Sort order of display.', '6', '0', now())"); for ($i = 1; $i <= $this->num_zones; $i++) { $default_countries = ''; if ($i == 1) { $default_countries = 'US,CA'; } tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Zone " . $i ." Countries', 'MODULE_SHIPPING_ZONES_COUNTRIES_" . $i ."', '" . $default_countries . "', 'Comma separated list of two character ISO country codes that are part of Zone " . $i . ".', '6', '0', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Zone " . $i ." Shipping Table', 'MODULE_SHIPPING_ZONES_COST_" . $i ."', '3:8.50,7:10.50,99:20.00', 'Shipping rates to Zone " . $i . " destinations based on a group of maximum order weights. Example: 3:8.50,7:10.50,... Weights less than or equal to 3 would cost 8.50 for Zone " . $i . " destinations.', '6', '0', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Zone " . $i ." Handling Fee', 'MODULE_SHIPPING_ZONES_HANDLING_" . $i."', '0', 'Handling Fee for this shipping zone', '6', '0', now())"); } } function remove() { tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } function keys() { $keys = array('MODULE_SHIPPING_ZONES_STATUS', 'MODULE_SHIPPING_ZONES_TAX_CLASS', 'MODULE_SHIPPING_ZONES_SORT_ORDER'); for ($i=1; $i<=$this->num_zones; $i++) { $keys[] = 'MODULE_SHIPPING_ZONES_COUNTRIES_' . $i; $keys[] = 'MODULE_SHIPPING_ZONES_COST_' . $i; $keys[] = 'MODULE_SHIPPING_ZONES_HANDLING_' . $i; } return $keys; } } ?>
wheeloftime Posted May 2, 2006 Posted May 2, 2006 could you please specify what to change, i did but recieved error in my homepage. i changed // CUSTOMIZE THIS SETTING FOR THE NUMBER OF ZONES NEEDED $this->num_zones = 1; } the one 1 to 2 can you please specify what to edit What error do you get ?! That edit should be sufficient to change from 1 to 2 zones but you must go to your admin->modules->shipping and remove the zones module first after which you can immediately install it again to have the 2 zones shown.
yanarasod Posted May 2, 2006 Author Posted May 2, 2006 but is there a way to make back-up of my files, where should i make a backup, can you please tell me this, then all my doubts will be somewhat clear.
wheeloftime Posted May 2, 2006 Posted May 2, 2006 but is there a way to make back-up of my files, where should i make a backup, can you please tell me this, then all my doubts will be somewhat clear. admin->tools->Database Backup or look in your host panel for backup possibilities (through phpMyAdmin or elsewise). Sorry, I missed you were refering to your files. You can backup them yourself through an FTP program and keep a safe copy of all files on your local disk and probably another option you will find in your host panel.
yanarasod Posted May 2, 2006 Author Posted May 2, 2006 hey, suppose now i make 7 zones and afterwards decide to increase or decrease 1 how can i make backup copy of only the zones. should i backup (catalog)/includes/modules/shipping/zones.php file via file manager or do i need to backup full oscommerce file.
wheeloftime Posted May 2, 2006 Posted May 2, 2006 hey, suppose now i make 7 zones and afterwards decide to increase or decrease 1 how can i make backup copy of only the zones. should i backup (catalog)/includes/modules/shipping/zones.php file via file manager or do i need to backup full oscommerce file. All zone data goes into the database so you should backup that one. It is a bit overkill though to restore a complete database if you decide to change your shipping zones only and you could keep a simple text file with the shipping data at hand to copy and paste those back after a change of zones amount. Best is to have it right the first time however. You can better define a bit more zones as you think you will need as to little. In the first case, as you do not have to use all zones, the chance of having to change is minimal and so no data loss, in the second case you are bound to change the amount of zones at one point and than you are stuck with remembering what you had in all those fields :D Of course you could use your phpmyadmin to backup a small part of your osCommerce database only (the configuration table) and save that somewhere for reference or a partly restore..
yanarasod Posted May 2, 2006 Author Posted May 2, 2006 sorry but i did not understand what did you mean to say. suppose i have 7 zones now, so for that which file should i backup if i need more zones, i can copy the data of the previous 7 zones. which file should i take backup. hope it is clear
wheeloftime Posted May 2, 2006 Posted May 2, 2006 sorry but i did not understand what did you mean to say. suppose i have 7 zones now, so for that which file should i backup if i need more zones, i can copy the data of the previous 7 zones. which file should i take backup. hope it is clear Gourav, I meant to say that the zones information you type with the module is saved inside your database and not inside a file. The only thing you change in the zones.php file is the amount of zones you want to use. Except for your database there is not really a file you have to save for this kind of change. The easiest is to just keep the information you type with the zones also in a text file. HTH Howard
yanarasod Posted May 2, 2006 Author Posted May 2, 2006 very thanks, please do not find my questions boring. i really appreciate your help. i have now mostly completed my site. can you tell me where should i edit the following text and links the logo on our site which by default is linked to the shop itself i want it to be linked to another site, which file should i edit this is code as you can see, i want to change the link to bhura_logo.gif to http://www.bhuratea.com. <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr class="header"> <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'bhura_logo.gif', 'Bhura Tea | Online Shop') . '</a>'; ?></td> <td align="right" valign="bottom"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_ secondly the text beneath the logo Top and Catalog are both again linked to the shop itself, where should i change its links. third: the text that comes in categories by default saying "Let's See What We Have Here" how can i edit that and also the alt text that comes to it's image. thanks my site shop: http://store.bhuratea.com
Recommended Posts
Archived
This topic is now archived and is closed to further replies.