Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

sahilsaid

Members
  • Content count

    105
  • Joined

  • Last visited

Everything posted by sahilsaid

  1. sahilsaid

    Multi_Vendor_Shipping new thread

    Oh no sorry, I still have RC2.2 version. I haven't done anything with 2.3.
  2. sahilsaid

    Multi_Vendor_Shipping new thread

    I already have the full MVS working on my site. I have made all the changes to required file and have complete MVS system working on my site. You can download what to change from here: http://www.oscommerc...tributions,4129 Download the instruction page package which is a big text file with instruction on what to change to apply MVS changes. This will let you edit all file one by one instead of comparing each file and making the changes accordingly. Now, I am going to start making some changes in checkout file of onepagecheckout and see if I can manage to make MVS work with onepagecheckout.
  3. sahilsaid

    Multi_Vendor_Shipping new thread

    Is that the checkout_shipping file changed according to MVS instructions? Sorry I don't understand what part does checkout_shipping plays in making the onepage checkout working with MVS?
  4. sahilsaid

    Multi_Vendor_Shipping new thread

    HI, Yes please PM me or just put the code here so that at least I have something to start with. Thanks
  5. sahilsaid

    Multi_Vendor_Shipping new thread

    Is it possible to implement one page checkout with multi vendor shipping. Or possible to implement one page checkout with any other 3rd party checkout addons? Thanks.
  6. HI all, Google product search has a new requirement now for the additional image link. I do not understand where the additional image link for the product is stored. I need to know where in the database I can find the additional image link? If someone can please help then it would be great.
  7. sahilsaid

    Header Tags SEO

    I have STS and as you know individual header code doesn't required to be placed in header of each files. Not sure what can be the problem?
  8. sahilsaid

    Header Tags SEO

    The root text doesn't display just for the links page. Other pages such as shipping, etc page's root text and desc works fine.
  9. sahilsaid

    Header Tags SEO

    Hi jacs, I have STS installed and I have problem with only page control for some file. Create_account.php is not in the drop down list at all and links.php is in dropdown but the root text that I put in there doesn't display in front side of catalogue in browser. I searched a lot in this support forum but cannot get the answer for this problem. Can you please let me know if any modification is required to the files that are not working in page control? Thank you in advance.
  10. sahilsaid

    Request Product Reviews

    I am using version 2.2 and having the same problem as yours, so I don't think the problem is with 2.3
  11. sahilsaid

    Header Tags SEO

    found the answer for this question and it can be found on here if anyone is looking for the answer. (page 156 of this forum) http://forums.oscommerce.com/topic/298099-header-tags-seo/page__st__3100
  12. sahilsaid

    Request Product Reviews

    This add-on was working fine until I ran it last time but suddenly giving me errors as follows Warning: require_once(includes/modules/ultimate_seo_urls5/includes/usu_general_functions.php) [function.require-once]: failed to open stream: No such file or directory in /home/thechea6/public_html/includes/modules/ultimate_seo_urls5/main/usu5.php on line 22 Fatal error: require_once() [function.require]: Failed opening required 'includes/modules/ultimate_seo_urls5/includes/usu_general_functions.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/thechea6/public_html/includes/modules/ultimate_seo_urls5/main/usu5.php on line 22 Looks like it is not finding the correct file required. I changed the path to a full path and didn't use the "DIR_WS_MODULES" to check but then it moves on to next similar error, so I can't keep using the full paths. for example I changed as below from: require_once DIR_WS_MODULES . 'ultimate_seo_urls5/main/usu5.php'; to : require_once '/home/thechea6/public_html/includes/modules/ultimate_seo_urls5/main/usu5.php'; above solved the problem and moved on to next one which is asking me to use the full path in other files too. so looks like its got something to do with configure.php can someone please help? Thanks
  13. sahilsaid

    Contribution: Reciprocal Links

    We have installed this contribution. It makes the job very easy but thumb images are not being displayed on the catalogue side (says "image loading"). visit the URL below to check. The thumbs are displayed fine on admin side. Please let me know the solution asap. http://www.thecheaplaptops.co.uk/links.php
  14. sahilsaid

    RSS Feed contribution support thread

    I am getting the feed to work but the feed displayed doesn't look so attractive. Here is the screen shot of the feed displayed. Can anyone help please?
  15. sahilsaid

    ULTIMATE Seo Urls 5 - by FWR Media

    Hi, Great contribution. Removed the Header tags Seo and installed the USU5 pro and kissMT and they both are great. I also installed the XML extra optional addon and I am getting the following error once the cron job is finished running. X-Powered-By: PHP/5.2.12 Content-type: text/html <br /> <b>Fatal error</b>: Call to a member function retrieveDependencies() on a non-object in <b>/home/thechea6/public_html/includes/modules/ultimate_seo_urls5/uri_modules/osc_experimental.php</b> on line <b>51</b><br /> One of the user also had same problem on the page 151 of this topic which can be accessed on url below. I cannot find any answer on that page too regarding this issue. If someone can please help?, it would be greatly appreciated. http://forums.oscommerce.com/topic/336702-ultimate-seo-urls-5-by-fwr-media/page__st__3000
  16. sahilsaid

    Header Tags SEO

    Thanks jack, all seems to be sorted. thanks so much for your help.
  17. sahilsaid

    Header Tags SEO

    Hi Jack, Thanks for your quick reply. I unchecked the default category check box but then the category title did disappear from the back of the product title but it also gets disappeared from the category pages (product_listing pages) and gives all the category/subcategory a default title and description resulting in many duplicate contents. Does this look like a installation fault?, but it was working fine few months ago.
  18. sahilsaid

    Header Tags SEO

    I am having problem setting what I want. The title of my product comes up as "product title -- Category name" I don't want the category name to appear after the product name as it makes my title long without any good keywords. I tried several setting in "Page control" page but it either shows up or it completely goes away. When it is gone away then all the titles on all the category i.e product_listing page has same title resulting in duplicate contents. So I want to keep the category name before the title but only for product_listing page and not before or after my product_info.php title tags. how do I achieve that? My current setting on "Page control" is as screen shot below,, Which boxes needs to be checked and unchecked to achieve what I want? to summarize: I want my product titles to be : <title>my great product whatever</title> The category titles to be : <title>New - my website default title</title> but that "New (the category name)" should not appear after or before my product title tags. Current titles produced with setting below is: <title>>my great product whatever - New (or whatever category the product is in). I don't want this category name to appear after my product titles. Thanks for help...
  19. sahilsaid

    Header Tags SEO

    That Solved the problem, Thank you very much. The actual page to edit is product_reviews.php. Just add something in the title and description tags which will appear before the product title and make it different as Jack said. Thank you very much
  20. sahilsaid

    Header Tags SEO

    Hi Everyone, I installed this header tags seo contribution around a year ago and everything worked fine or just assumed it is working fine until today when I went to google webmaster and checked the "HTML suggestion" section and found out that I have more then 500 duplicated meta description and over 500 duplicated title tags. The duplicated meta tags and title tags are from the review page of every product I have on website. So, is there any way to avoid this and ask header tags SEO (or any other contribution) to fill the meta and title tags of the review pages to be different and not the same as the product pages. Or is it something that I am doing wrong here? Thank you for help in advance.
  21. sahilsaid

    CSS Menu

    Hi, go to your templates stylesheet (.css file) see the section of code bellow, you may have different code but overflow in that code needs t be changed. div#column_left { position: relative; float: left; width: 190px; padding: 0px 0px 10px 0px; min-height: 300px; overflow: hidden; } change the overflow: hidden; change it to following. overflow: visible; That should fix your pop out menu problem. Let me know if you need more help and I will be happy to help you.
  22. sahilsaid

    Fetch the rss feed from the target site

    The forum support on here is useless. I just had a go by hoping that someone would reply but as always no one cares to help. will have to find the answer on our own. please let me know if you find out the answer and i will let you know if i find an answer to the question. we batter off asking for help on some other forums instead of here.
  23. sahilsaid

    Multi_Vendor_Shipping new thread

    Can someone please start me off how to make the modification in royal mail airmail shipping module on following code. I just don't how to start... <?php /* rmairmail.php Royal Mail Airmail Shipping module for osCommerce Version 2.2.1 - 7 January 2010 A shipping module for UK based osCommerce stores. This version created by Chris Lander from an original contribution by Stuart Newton (contribution #4473). This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ class rmairmail { var $code, $title, $description, $enabled, $num_zones; // class constructor function rmairmail() { global $order, $total_weight; $this->version = ((defined('MODULE_SHIPPING_RMAIRMAIL_VERSION')) ? MODULE_SHIPPING_RMAIRMAIL_VERSION : '?.?'); $this->code = 'rmairmail'; $this->title = MODULE_SHIPPING_RMAIRMAIL_TEXT_TITLE . ' v' . $this->version; $this->description = MODULE_SHIPPING_RMAIRMAIL_TEXT_DESCRIPTION . ' v' . $this->version; $this->sort_order = MODULE_SHIPPING_RMAIRMAIL_SORT_ORDER; $this->icon = DIR_WS_ICONS . 'shipping_rmairmail.gif'; // upload icon to catalog/images/icon directory $this->tax_class = MODULE_SHIPPING_RMAIRMAIL_TAX_CLASS; $this->enabled = ((MODULE_SHIPPING_RMAIRMAIL_STATUS == 'True') ? true : false); $this->num_zones = 2; $this->weight_split = ((MODULE_SHIPPING_RMAIRMAIL_WEIGHT_SPLIT == 'True') ? true : false); $this->value_split = ((MODULE_SHIPPING_RMAIRMAIL_VALUE_SPLIT == 'True') ? true : false); // Calculate shipping weight taking into account // Maximum Package Weight you will ship // Package Tare weight // Larger packages percent increase // // as is done in ..../includes/classes/shipping.php line# 70 - 79 // if (SHIPPING_BOX_WEIGHT >= $total_weight*SHIPPING_BOX_PADDING/100) { $shipping_weight = $total_weight+SHIPPING_BOX_WEIGHT; } else { $shipping_weight = $total_weight + ($total_weight*SHIPPING_BOX_PADDING/ 100); } // Default to split using store maximum shipping weight $my_max_shipping_weight = SHIPPING_MAX_WEIGHT; // Split shipment using Method Maximum Shipment Weight? if ($this->weight_split) { if (SHIPPING_MAX_WEIGHT > MODULE_SHIPPING_RMAIRMAIL_MAX_WEIGHT) { $my_max_shipping_weight = MODULE_SHIPPING_RMAIRMAIL_MAX_WEIGHT; } } // Split shipment into the required number of boxes if ($shipping_weight > $my_max_shipping_weight) { $shipping_num_boxes = ceil($shipping_weight/$my_max_shipping_weight); $shipping_weight = $shipping_weight/$shipping_num_boxes; } // Ensure we have Set number of boxes and weight $shipping_num_boxes = (isset($shipping_num_boxes) ? $shipping_num_boxes : 1); $shipping_weight = (isset($shipping_weight) ? $shipping_weight : 0); $my_shipping_num_boxes = $shipping_num_boxes; $my_shipping_weight = $shipping_weight; // Split shipment on method Maximum Shipment Value? if ($this->value_split) { // Calc the value and weight of each package being shipped if ( ($order->info['subtotal'] / $shipping_num_boxes) > MODULE_SHIPPING_RMAIRMAIL_MAX_VALUE) { $my_shipping_num_boxes = ceil($order->info['subtotal']/MODULE_SHIPPING_RMAIRMAIL_MAX_VALUE); $my_shipping_weight = ($shipping_weight * $shipping_num_boxes) / $my_shipping_num_boxes; } } // Only ship if packet value exceeds method minimum value if ( ($order->info['subtotal'] / $my_shipping_num_boxes) < MODULE_SHIPPING_RMAIRMAIL_MIN_VALUE) { $this->enabled = false; } // Only ship if packet value does not exceed method maximum value if ( ($order->info['subtotal'] / $my_shipping_num_boxes) > MODULE_SHIPPING_RMAIRMAIL_MAX_VALUE) { $this->enabled = false; } // Only ship if packet weight exceeds method minimum value if ( $my_shipping_weight < MODULE_SHIPPING_RMAIRMAIL_MIN_WEIGHT) { $this->enabled = false; } // Only ship if packet weight does not exceed method maximum value if ( $my_shipping_weight > MODULE_SHIPPING_RMAIRMAIL_MAX_WEIGHT) { $this->enabled = false; } // Get the destination country $dest_country = $order->delivery['country']['iso_code_2']; # Get the destination country // Only Non-UK Customers to see shipping method. Hide for UK customers // Check if destination is a valid one for this method if (defined('MODULE_SHIPPING_RMAIRMAIL_INVALID_ZONES')) { $invalid_zones_table = constant('MODULE_SHIPPING_RMAIRMAIL_INVALID_ZONES'); $invalid_zones = preg_split("/[,]/", $invalid_zones_table); if (in_array($dest_country, $invalid_zones)) { // Zone Invalid? $this->enabled= false; }else{ // Destination MUST be a Valid one $dest_zone = $this->num_zones; // Set default shipping zone to last zone available for ($i=1; $i<=$this->num_zones; $i++) { $constant = 'MODULE_SHIPPING_RMAIRMAIL_COUNTRIES_'.$i; if (defined($constant)) { $countries_table = constant('MODULE_SHIPPING_RMAIRMAIL_COUNTRIES_' . $i); $country_zones = preg_split("/[,]/", $countries_table); if (in_array($dest_country, $country_zones)) { $dest_zone = $i; break; } } } } } } // class methods function quote($method = '') { global $order, $shipping_weight, $shipping_num_boxes; $error = false; // Reset error flag // Ensure we have Set number of boxes and weight $shipping_num_boxes = (isset($shipping_num_boxes) ? $shipping_num_boxes : 1); $shipping_weight = (isset($shipping_weight) ? $shipping_weight : 0); $my_shipping_num_boxes = $shipping_num_boxes; $my_shipping_weight = $shipping_weight; // Split shipment using Method Maximum Shipment Weight? if ($this->weight_split) { // Store Max Weight larger than Shipping MaxWeight? if (SHIPPING_MAX_WEIGHT > MODULE_SHIPPING_RMAIRMAIL_MAX_WEIGHT) { // Calc the value and weight of each package being shipped $my_max_shipping_weight = MODULE_SHIPPING_RMAIRMAIL_MAX_WEIGHT; if ($shipping_weight > $my_max_shipping_weight) { $my_shipping_num_boxes = ceil(($shipping_weight * $shipping_num_boxes)/$my_max_shipping_weight); $my_shipping_weight = ($shipping_weight * $shipping_num_boxes)/$my_shipping_num_boxes; } } } // Split shipment on method Maximum Shipment Value? if ($this->value_split) { // Calc the value and weight of each package being shipped if ( ($order->info['subtotal'] / $my_shipping_num_boxes) > MODULE_SHIPPING_RMAIRMAIL_MAX_VALUE) { $my_shipping_num_boxes = ceil($order->info['subtotal']/MODULE_SHIPPING_RMAIRMAIL_MAX_VALUE); $my_shipping_weight = ($shipping_weight * $shipping_num_boxes) / $my_shipping_num_boxes; } } $shipping = -1; // Flag no shipping cost available // Get the destination country $dest_country = $order->delivery['country']['iso_code_2']; # Get the destination country $dest_zone = 0; // Flag invalid destination // Only Non-UK Customers to see shipping method. Hide for UK customers // Check if destination is a valid one for this method if (defined('MODULE_SHIPPING_RMAIRMAIL_INVALID_ZONES')) { $invalid_zones_table = constant('MODULE_SHIPPING_RMAIRMAIL_INVALID_ZONES'); $invalid_zones = preg_split("/[,]/", $invalid_zones_table); if (in_array($dest_country, $invalid_zones)) { // Zone Invalid? $dest_zone = 0; }else{ // Destination MUST be Valid so find which shipping zone destination belongs to $dest_zone = $this->num_zones; // Set default shipping zone to last zone available for ($i=1; $i<=$this->num_zones; $i++) { $constant = 'MODULE_SHIPPING_RMAIRMAIL_COUNTRIES_'.$i; if (defined($constant)) { $countries_table = constant('MODULE_SHIPPING_RMAIRMAIL_COUNTRIES_' . $i); $country_zones = preg_split("/[,]/", $countries_table); if (in_array($dest_country, $country_zones)) { $dest_zone = $i; break; } } } } } // Invalid Destination Zone found? if ($dest_zone == 0) { $shipping_cost = 0; $shipping_method = MODULE_SHIPPING_RMAIRMAIL_INVALID_ZONE; }else{ // Destination must be in a valid zone // Get the cost to ship to the destination zone $shipping = -1; // Flag no shipping cost available $zones_cost = constant('MODULE_SHIPPING_RMAIRMAIL_COST_' . $dest_zone); $zones_table = preg_split("/[:,]/" , $zones_cost); $size = sizeof($zones_table); // Determine if shipping cost is available for ($i=0; $i<$size; $i+=2) { if ($my_shipping_weight <= $zones_table[$i]) { $shipping = $zones_table[$i+1]; if(tep_not_null($method) ) { // Text shown on Checkout_Confirmation $shipping_method = ''; // Leaving this entry blank causes only the shipping title to show i.e Royal Mail 1st Class Std }else{ // Text shown on Checkout_shipping $shipping_method = ''; // Display delivery weight? if (constant('MODULE_SHIPPING_RMAIRMAIL_DISPLAY_WEIGHT') == 'True') { // Delivery Weight : x items of n.nnnn Kg's $shipping_method = MODULE_SHIPPING_RMAIRMAIL_TEXT_WAY. ' : '; if ($my_shipping_num_boxes > 1) { // Shipment split between several boxes/packets $shipping_method = $shipping_method . $shipping_num_boxes . ' '.MODULE_SHIPPING_RMAIRMAIL_TEXT_ITEMS.' '; }else{ $shipping_method = $shipping_method . $shipping_num_boxes . ' '.MODULE_SHIPPING_RMAIRMAIL_TEXT_ITEM.' '; } $shipping_method = $shipping_method . $shipping_weight. ' ' . MODULE_SHIPPING_RMAIRMAIL_TEXT_UNITS; } // Display delivery times? if (constant('MODULE_SHIPPING_RMAIRMAIL_DISPLAY_TIME') == 'True') { // Ships within 3 to 5 days $shipping_method = $shipping_method . ' ('; $shipping_method = $shipping_method . ucfirst(MODULE_SHIPPING_RMAIRMAIL_DELIVERY_SHIPPING_TIME) . ')'; } } break; } } } // No shipping cost found? if ($shipping == -1) { $shipping_cost = 0; $shipping_method = MODULE_SHIPPING_RMAIRMAIL_UNDEFINED_RATE; // Shipping charge found, so add together all costs } else { $shipping_cost = ($shipping * $my_shipping_num_boxes) + constant('MODULE_SHIPPING_RMAIRMAIL_HANDLING_' . $this->num_zones); } $this->quotes = array('id' => $this->code, 'module' => MODULE_SHIPPING_RMAIRMAIL_TEXT_TITLE, 'methods' => array(array('id' => $this->code, 'title' => $shipping_method, 'cost' => $shipping_cost))); // Need to apply tax ? 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_RMAIRMAIL_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_RMAIRMAIL_STATUS'"); $this->_check = tep_db_num_rows($check_query); } return $this->_check; } function install() { // MODULE_SHIPPING_RMAIRMAIL_VERSION tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Version', 'MODULE_SHIPPING_RMAIRMAIL_VERSION', '2.2.1', 'Sort order of display (1 shown first 99 etc shown last to customer)', '6', '0', now())"); // MODULE_SHIPPING_RMAIRMAIL_STATUS 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 RM Airmail', 'MODULE_SHIPPING_RMAIRMAIL_STATUS', 'True', 'Do you want to offer this shipping option?', '6', '0', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"); // MODULE_SHIPPING_RMAIRMAIL_TAX_CLASS 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_RMAIRMAIL_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())"); // MODULE_SHIPPING_RMAIRMAIL_SORT_ORDER 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_RMAIRMAIL_SORT_ORDER', '8', 'Sort order of display (1 shown first 99 etc shown last to customer)', '6', '0', now())"); // MODULE_SHIPPING_RMAIRMAIL_MIN_WEIGHT tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Minimum weight to ship', 'MODULE_SHIPPING_RMAIRMAIL_MIN_WEIGHT', '0', 'Enter the minimum weight to ship', '6', '0', now())"); // MODULE_SHIPPING_RMAIRMAIL_MAX_WEIGHT tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Maximum weight to ship', 'MODULE_SHIPPING_RMAIRMAIL_MAX_WEIGHT', '2', 'Enter the maximum weight to ship', '6', '0', now())"); // MODULE_SHIPPING_RMAIRMAIL_WEIGHT_SPLIT 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 ('Split shipments on maximum weight to ship', 'MODULE_SHIPPING_RMAIRMAIL_WEIGHT_SPLIT', 'False', 'Do you want to split your shipment by maximum weight to ship?', '6', '0', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"); // MODULE_SHIPPING_RMAIRMAIL_MIN_VALUE tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Minimum value to ship', 'MODULE_SHIPPING_RMAIRMAIL_MIN_VALUE', '0', 'Enter the maximum value to ship', '6', '0', now())"); // MODULE_SHIPPING_RMAIRMAIL_MAX_VALUE tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Maximum value to ship', 'MODULE_SHIPPING_RMAIRMAIL_MAX_VALUE', '39', 'Enter the maximum value to ship', '6', '0', now())"); // MODULE_SHIPPING_RMAIRMAIL_VALUE_SPLIT 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 ('Split shipments on maximum value to ship', 'MODULE_SHIPPING_RMAIRMAIL_VALUE_SPLIT', 'False', 'Do you want to split your shipment by maximum value to ship?', '6', '0', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"); // MODULE_SHIPPING_RMAIRMAIL_DISPLAY_WEIGHT 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 ('Display delivery weight', 'MODULE_SHIPPING_RMAIRMAIL_DISPLAY_WEIGHT', 'True', 'Do you want to display the shipping weight? (e.g. Delivery Weight : 2.7674 Kg\'s)', '6', '0', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"); // MODULE_SHIPPING_RMAIRMAIL_DISPLAY_INSURANCE 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 ('Display Insurance', 'MODULE_SHIPPING_RMAIRMAIL_DISPLAY_INSURANCE', 'True', 'Do you want to display the shipping insurance? (e.g. Insured upto £500)', '6', '0', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"); // MODULE_SHIPPING_RMAIRMAIL_DISPLAY_TIME 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 ('Display delivery time', 'MODULE_SHIPPING_RMAIRMAIL_DISPLAY_TIME', 'True', 'Do you want to display the shipping time? (e.g. Ships within 3 to 5 days)', '6', '0', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"); // MODULE_SHIPPING_RMAIRMAIL_INVALID_ZONES tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Invalid ISO Country Codes', 'MODULE_SHIPPING_RMAIRMAIL_INVALID_ZONES', 'GB', 'Enter the two digit ISO code for which this shipping method does NOT apply to. (Default: GB)', '6', '0', now())"); for ($i = 1; $i <= $this->num_zones; $i++) { $default_countries = ''; $shipping_table = ''; $shipping_handling = ''; if ($i == 1) { $default_countries = 'AL,AD,AM,AT,AZ,BY,BE,BA,BG,HR,CY,CZ,DK,EE,FO,FI,FR,GE,DE,GI,GR,GL,HU,IS,IE,IT,KZ,KG,LV,LI,LT,LU,MK,MT,MD,MC,NL,NO,PL,PT,RO,RU,SM,SK,SI,ES,SE,CH,TJ,TR,TM,UA,UZ,VA,US'; $shipping_table = '.1:1.21,.12:1.31,.14:1.45,.16:1.57,.18:1.7,.2:1.82,.22:1.95,.24:2.06,.26:2.18,.28:2.31,.3:2.44,.34:2.66,.38:2.88,.42:3.1,.46:3.32,.5:3.54,.56:3.87,.62:4.2,.68:4.53,.74:4.86,.8:5.19,.9:5.74,1:6.29,1.2:7.29,1.4:8.29,1.6:9.29,1.8:10.29,2:11.29'; $shipping_handling = 0; // MODULE_SHIPPING_RMAIRMAIL_COUNTRIES_$i tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('RM Airmail Zone ".$i." Valid ISO Country Codes', 'MODULE_SHIPPING_RMAIRMAIL_COUNTRIES_" . $i ."', '" . $default_countries . "', 'Comma separated list of two character ISO country codes that are valid destinations for this method (Default: ".$default_countries.")', '6', '0', now())"); } if ($i == 2) { $default_countries = 'All Others'; // this must be the lastest zone $shipping_table = '.1:1.68,.12:1.93,.14:2.19,.16:2.44,.18:2.7,.2:2.94,.22:3.18,.24:3.41,.26:3.64,.28:3.88,.3:4.11,.34:4.59,.38:5.07,.42:5.55,.46:6.03,.5:6.51,.56:7.2,.62:7.89,.68:8.58,.74:9.27,.8:9.96,.9:11.11,1:12.26,1.2:14.46,1.4:16.66,1.6:18.86,1.8:21.06,2:23.26'; $shipping_handling = 0; // MODULE_SHIPPING_RMAIRMAIL_COUNTRIES_$i tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('RM Airmail Zone ".$i." Valid ISO Country Codes', 'MODULE_SHIPPING_RMAIRMAIL_COUNTRIES_" . $i ."', '" . $default_countries . "', 'All other destinations (Default: ".$default_countries.")', '6', '0', now())"); } // MODULE_SHIPPING_RMAIRMAIL_COST_$i tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('RM Airmail Zone ".$i." Rates', 'MODULE_SHIPPING_RMAIRMAIL_COST_" . $i ."', '" . $shipping_table . "', 'Enter values upto 5,2 decimal places. (12345.67) Example: 2:4.2,4:6.85 - Weights less than or equal to 2Kg would cost 4.20, Weights less than or equal to 4Kg but more than 2Kg will cost 6.85. Do not enter KG or currency symbols.', '6', '0', now())"); // MODULE_SHIPPING_RMAIRMAIL_HANDLING_$i tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('RM Airmail Zone ".$i." Packaging / Handling Fee', 'MODULE_SHIPPING_RMAIRMAIL_HANDLING_" . $i ."', '" . $shipping_handling . "', 'If you want to add extra costs to customers for jiffy bags etc, the cost can be entered below (eg enter 1.50 for a value of �1.50)', '6', '0', now())"); } } function remove() { tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('MODULE_SHIPPING_RMAIRMAIL_VERSION','" . implode("', '", $this->keys()) . "')"); } function keys() { $keys = array('MODULE_SHIPPING_RMAIRMAIL_STATUS' ,'MODULE_SHIPPING_RMAIRMAIL_TAX_CLASS' ,'MODULE_SHIPPING_RMAIRMAIL_SORT_ORDER' ,'MODULE_SHIPPING_RMAIRMAIL_MIN_WEIGHT' ,'MODULE_SHIPPING_RMAIRMAIL_MAX_WEIGHT' ,'MODULE_SHIPPING_RMAIRMAIL_WEIGHT_SPLIT' ,'MODULE_SHIPPING_RMAIRMAIL_MIN_VALUE' ,'MODULE_SHIPPING_RMAIRMAIL_MAX_VALUE' ,'MODULE_SHIPPING_RMAIRMAIL_VALUE_SPLIT' ,'MODULE_SHIPPING_RMAIRMAIL_DISPLAY_WEIGHT' ,'MODULE_SHIPPING_RMAIRMAIL_DISPLAY_INSURANCE' ,'MODULE_SHIPPING_RMAIRMAIL_DISPLAY_TIME' ,'MODULE_SHIPPING_RMAIRMAIL_INVALID_ZONES' ); for ($i=1; $i<=$this->num_zones; $i++) { $keys[] = 'MODULE_SHIPPING_RMAIRMAIL_COUNTRIES_' . $i; $keys[] = 'MODULE_SHIPPING_RMAIRMAIL_COST_' . $i; $keys[] = 'MODULE_SHIPPING_RMAIRMAIL_HANDLING_' . $i; } return $keys; } } ?>
  24. sahilsaid

    Multi_Vendor_Shipping new thread

    Hi, Thank you for your reply. I read the documentation in zones.php but I don't think this is what I want. in the file's comment section it reads 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! I want to hide specific shipping completely if the customer is outside UK. for example say I have one shipping set-up only for UK customers and one for Europe/us customers. when a UK customer tries to checkout he should not see the Europe's shipping method and vice versa. Zone module clearly says that the module will not be hidden to undefined country's customer. I am just testing it now and see how it goes. is this possible?
  25. sahilsaid

    Multi_Vendor_Shipping new thread

    Hi, This problem is now fixed. I have another problem regarding the shipping. My shop is in UK and I am not finding any solution how to saprate shipping options fro Europe and other countries outside UK. Can I use ZONES if yes how? Before I used to use royalmail contribution which lets you choose the country he specific shipping module works in. but with MVS it is not compatible, so I have decided to use table rates but it doesn't let you do what I want? please someone help. I tried to modify the royalmail contribution according to the mvs module guide but wasn't successful.
×