chrometweaks.org

How to Publish your Site on iPage ?

Click Here To View All Answers...


First question I got is How to Publish your Site on iPage ? Thanks for any answer. My other question... Can I make the low order fee a percentage where customers pay twice the price if not spending the minimum. If it's not possible, How can I just set it to double the subtotal until customers meet the minimum?..

Comments (48)

I would like to know the answer too. Anyone here know what is the answer to that question. I'll do some research in Google and get back to you if I find an answer. You should email the people at iPage as they probably can answer it..

Comment #1

Please help me with this question. I'm in serious need of help...

Comment #2

I generally find that if people don't answer it's because they don't know, not that they don't care..

What have you tried so far?..

Comment #3

I'm sorry, I completely forgot one of the big steps to good help. I forgot to post the code..

I'm editing the ot_loworderfee.php in /catalog/includes/modules/order_total/ I have actually tried to put the 100% (also tried MODULE_ORDER_SUBTOTAL_STATUS) where the dollar amount should be (for simplicity), but no luck..

I am a newbie, so I don't know if using a percentage is possible. If not, how can I simply double the price? I've been trying to solve this one for 2 weeks. I am very thankful for any help I can get..

<?php.

/*.

 $Id: ot_loworderfee.php,v 1.11 2003/02/14 06:03:32 hpdl Exp $.

 osCommerce, Open Source E-Commerce Solutions.

 http://www.oscommerce.com.

 Copyright (c) 2003 osCommerce.

 Released under the GNU General Public License.

*/.

 class ot_loworderfee {.

   var $title, $output;.

   function ot_loworderfee() {.

     $this->code = 'ot_loworderfee';.

     $this->title = MODULE_ORDER_TOTAL_LOWORDERFEE_TITLE;.

     $this->description = MODULE_ORDER_TOTAL_LOWORDERFEE_DESCRIPTION;.

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

     $this->sort_order = MODULE_ORDER_TOTAL_LOWORDERFEE_SORT_ORDER;.

     $this->output = array();.

   }.

   function process() {.

     global $order, $currencies;.

     if (MODULE_ORDER_TOTAL_LOWORDERFEE_LOW_ORDER_FEE == 'true') {.

       switch (MODULE_ORDER_TOTAL_LOWORDERFEE_DESTINATION) {.

         case 'national':.

           if ($order->delivery['country_id'] == STORE_COUNTRY) $pass = true; break;.

         case 'international':.

           if ($order->delivery['country_id'] != STORE_COUNTRY) $pass = true; break;.

         case 'both':.

           $pass = true; break;.

         default:.

           $pass = false; break;.

       }.

       if ( ($pass == true) && ( ($order->info['total'] - $order->info['shipping_cost']) < MODULE_ORDER_TOTAL_LOWORDERFEE_ORDER_UNDER) ) {.

         $tax = tep_get_tax_rate(MODULE_ORDER_TOTAL_LOWORDERFEE_TAX_CLASS, $order->delivery['country']['id'], $order->delivery['zone_id']);.

         $tax_description = tep_get_tax_description(MODULE_ORDER_TOTAL_LOWORDERFEE_TAX_CLASS, $order->delivery['country']['id'], $order->delivery['zone_id']);.

         $order->info['tax'] += tep_calculate_tax(MODULE_ORDER_TOTAL_LOWORDERFEE_FEE, $tax);.

         $order->info['tax_groups']["$tax_description"] += tep_calculate_tax(MODULE_ORDER_TOTAL_LOWORDERFEE_FEE, $tax);.

         $order->info['total'] += MODULE_ORDER_TOTAL_LOWORDERFEE_FEE + tep_calculate_tax(MODULE_ORDER_TOTAL_LOWORDERFEE_FEE, $tax);.

         $this->output[] = array('title' => $this->title':',.

                                 'text' => $currencies->format(tep_add_tax(MODULE_ORDER_TOTAL_LOWORDERFEE_FEE, $tax), true, $order->info['currency'], $order->info['currency_value']),.

                                 'value' => tep_add_tax(MODULE_ORDER_TOTAL_LOWORDERFEE_FEE, $tax));.

       }.

     }.

   }.

   function check() {.

     if (!isset($this->_check)) {.

       $check_query = tep_db_query("select configuration_value from "TABLE_CONFIGURATION" where configuration_key = 'MODULE_ORDER_TOTAL_LOWORDERFEE_STATUS'");.

       $this->_check = tep_db_num_rows($check_query);.

     }.

     return $this->_check;.

   }.

   function keys() {.

     return array('MODULE_ORDER_TOTAL_LOWORDERFEE_STATUS', 'MODULE_ORDER_TOTAL_LOWORDERFEE_SORT_ORDER', 'MODULE_ORDER_TOTAL_LOWORDERFEE_LOW_ORDER_FEE', 'MODULE_ORDER_TOTAL_LOWORDERFEE_ORDER_UNDER', 'MODULE_ORDER_TOTAL_LOWORDERFEE_FEE', 'MODULE_ORDER_TOTAL_LOWORDERFEE_DESTINATION', 'MODULE_ORDER_TOTAL_LOWORDERFEE_TAX_CLASS');.

   }.

   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 ('Display Low Order Fee', 'MODULE_ORDER_TOTAL_LOWORDERFEE_STATUS', 'true', 'Do you want to display the low order fee?', '6', '1','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, date_added) values ('Sort Order', 'MODULE_ORDER_TOTAL_LOWORDERFEE_SORT_ORDER', '4', 'Sort order of display.', '6', '2', now())");.

     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 ('Allow Low Order Fee', 'MODULE_ORDER_TOTAL_LOWORDERFEE_LOW_ORDER_FEE', 'false', 'Do you want to allow low order fees?', '6', '3', '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, date_added) values ('Order Fee For Orders Under', 'MODULE_ORDER_TOTAL_LOWORDERFEE_ORDER_UNDER', '50', 'Add the low order fee to orders under this amount.', '6', '4', 'currencies->format', now())");.

     tep_db_query("insert into "TABLE_CONFIGURATION" (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, date_added) values ('Order Fee', 'MODULE_ORDER_TOTAL_LOWORDERFEE_FEE', '100&#37' , 'Low order fee.', '6', '5', 'currencies->format', now())");.

     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 ('Attach Low Order Fee On Orders Made', 'MODULE_ORDER_TOTAL_LOWORDERFEE_DESTINATION', 'both', 'Attach low order fee for orders sent to the set destination.', '6', '6', 'tep_cfg_select_option(array(\'national\', \'international\', \'both\'), ', 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_ORDER_TOTAL_LOWORDERFEE_TAX_CLASS', '0', 'Use the following tax class on the low order fee.', '6', '7', 'tep_get_tax_class_title', 'tep_cfg_pull_down_tax_classes(', now())");.

   }.

   function remove() {.

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

   }.

 }.

?>..

Comment #4

Can I make the low order fee a percentage where customers pay twice the price if not spending the minimum. If it's not possible, How can I just set it to double the subtotal until customers meet the minimum?..

Comment #5

I know it's probably simple, but I've beeen trying for a week. I can't figure it out..

Any help would be greatly appreciated. Is there a variable (i think it's called) to just add the total as the low order fee? I just want it to double the price (like removing 50 percent for meeting the minimum order.) I'm using MS2..

Comment #6


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