chrometweaks.org

Suggest me best iPage web hosting site & plans?

Click Here To View All Answers...


Got a question, hope someone can answer... Suggest me best iPage web hosting site & plans? Thanks for any comment. Another quick question... Hello I want a module for shipping that allows the customer to add saturday delevery for $45. This option is only available with overnight and 2 day air shipments..

I am usinng a table rate method for 2 day and overnight module. plz help or guide...

Comments (78)

Hmm... I need to find out myself. I don't know what is the right answer. I'll do some research in Google and get back to you if I bump into an good answer. You should email the people at iPage as they probably could assist you..

Comment #1

Use your WIN (?) programm to find the file called pickup.php..

Open in editor and change the words..

"install" in /admin/ => edit and attach a price to the wording...

Comment #2

Thanks john..

One huge problem...

Now this pickup module shows up as a shipping option. problem is that I want to charge that 50 bucks in addition to the shipping method they choose. problem is that this pickup is shown as an option for shipping not as a seperate entity so thet can choose the shipping method and pickup(thats actually will be sat delivery) together..

Any ideas. I m new to php and have not that grasp of the code..

Thanks..

Comment #3

Sorry! My connection was v slow and I guess I pressed the submit key some times. can anyone delete redundant posts please. thanks...

Now this is the code for pickup.php file. plz guide me thanks..

<?php.

/*.

 $Id: pickup.php,v 1.05 2003/02/18 03:37:00 harley_vb Exp $.

 osCommerce, Open Source E-Commerce Solutions.

 http://www.oscommerce.com.

 Copyright (c) 2002 - 2003 osCommerce.

 Released under the GNU General Public License.

*/.

 class pickup {.

   var $code, $title, $description, $icon, $enabled;.

// class constructor.

   function pickup() {.

     global $order;.

     $this->code = 'pickup';.

     $this->title = MODULE_SHIPPING_PICKUP_TEXT_TITLE;.

     $this->description = MODULE_SHIPPING_PICKUP_TEXT_DESCRIPTION;.

     $this->sort_order = MODULE_SHIPPING_PICKUP_SORT_ORDER;.

     $this->icon = '';.

     $this->tax_class = MODULE_SHIPPING_PICKUP_TAX_CLASS;.

     $this->enabled = ((MODULE_SHIPPING_PICKUP_STATUS == 'True') ? true : false);.

     if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_PICKUP_ZONE > 0) ) {.

       $check_flag = false;.

       $check_query = tep_db_query("select zone_id from "TABLE_ZONES_TO_GEO_ZONES" where geo_zone_id = '"MODULE_SHIPPING_PICKUP_ZONE"' and zone_country_id = '"$order->delivery['country']['id']"' order by zone_id");.

       while ($check = tep_db_fetch_array($check_query)) {.

         if ($check['zone_id'] < 1) {.

           $check_flag = true;.

           break;.

         } elseif ($check['zone_id'] == $order->delivery['zone_id']) {.

           $check_flag = true;.

           break;.

         }.

       }.

       if ($check_flag == false) {.

         $this->enabled = false;.

       }.

     }.

   }.

// class methods.

   function quote($method = '') {.

     $this->quotes = array('id' => $this->code,.

                           'module' => MODULE_SHIPPING_PICKUP_TEXT_TITLE,.

                           'methods' => array(array('id' => $this->code,.

                                                    'title' => MODULE_SHIPPING_PICKUP_TEXT_WAY,.

                                                    'cost' => MODULE_SHIPPING_PICKUP_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);.

     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_PICKUP_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 PickUp Shipping', 'MODULE_SHIPPING_PICKUP_STATUS', 'True', 'Do you want to offer pickup 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 ('Steuersatz', 'MODULE_SHIPPING_PICKUP_TAX_CLASS', '0', 'Whlen Sie den MwSt.-Satz fr diese Versandart aus.', '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, use_function, set_function, date_added) values ('Versand Zone', 'MODULE_SHIPPING_PICKUP_ZONE', '0', 'Wenn Sie eine Zone auswhlen, wird diese Versandart nur in dieser Zone angeboten.', '6', '0', 'tep_get_zone_class_title', 'tep_cfg_pull_down_zone_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 ('Reihenfolge der Anzeige', 'MODULE_SHIPPING_PICKUP_SORT_ORDER', '0', 'Niedrigste wird zuerst angezeigt.', '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 ('PickUp Cost', 'MODULE_SHIPPING_PICKUP_COST', '0.00', 'What is the Shipping cost? The Handling fee will also be added.', '6', '0', now())");.

   }.

   function remove() {.

     tep_db_query("delete from "TABLE_CONFIGURATION" where configuration_key in ('"implode("', '", $this->keys())"')");.

   }.

   function keys() {.

     return array('MODULE_SHIPPING_PICKUP_STATUS', 'MODULE_SHIPPING_PICKUP_COST', 'MODULE_SHIPPING_PICKUP_TAX_CLASS', 'MODULE_SHIPPING_PICKUP_ZONE', 'MODULE_SHIPPING_PICKUP_SORT_ORDER');.

   }.

 }.

?>..

Comment #4

How do I edit so this sta delivery option becomes separte and how can I change the radio button to the checkbox..

Comment #5

Hello I want a module for shipping that allows the customer to add saturday delevery for $45. This option is only available with overnight and 2 day air shipments..

I am usinng a table rate method for 2 day and overnight module. plz help or guide...

Comment #6

Thanks....where do I find that and how do I do that,..

Comment #7


This question was taken from a support group/message board and re-posted here so others can learn from it.