function quote($method = '') { // W. Kaiser - Show missing amount for free shipping $CurrentAmount = $_SESSION['cart']->show_total(); // W. Kaiser - Free shipping national/international require_once DIR_FS_INC . 'olc_get_free_shipping_amount.inc.php'; olc_get_free_shipping_amount(); if (FREE_AMOUNT > 0) { $MissingAmount = FREE_AMOUNT - $CurrentAmount; if ($MissingAmount > 0 && MODULE_SHIPPING_FREECOUNT_DISPLAY == FALSE_STRING_L) { return; } // W. Kaiser - Free shipping national/international $this->quotes = array('id' => $this->code, 'module' => MODULE_SHIPPING_FREECOUNT_TEXT_TITLE); if ($MissingAmount > 0) { $this->quotes['error'] = MODULE_SHIPPING_FREECOUNT_TEXT_WAY . HTML_B_START . olc_format_price($MissingAmount, 1, 1, 1) . '</b>)'; } else { $this->quotes['methods'] = array(array('id' => $this->code, 'title' => MODULE_SHIPPING_FREECOUNT_TEXT_WAY, 'cost' => 0)); if (olc_not_null($this->icon)) { $this->quotes['icon'] = olc_image($this->icon, $this->title); } } } return $this->quotes; //W. Kaiser - Show missing amount for free shippin }
Released under the GNU General Public License ----------------------------------------------------------------------------------------- Third Party contributions: freeamountv2-p1 Autor: dwk (c) 2004 XT - Commerce; www.xt-commerce.com Released under the GNU General Public License ---------------------------------------------------------------------------------------*/ define('MODULE_SHIPPING_FREECOUNT_TEXT_TITLE', 'Free Shipping'); define('MODULE_SHIPPING_FREECOUNT_TEXT_DESCRIPTION', 'Free Shipping w/ Minimum Order Amount'); //define('MODULE_SHIPPING_FREECOUNT_TEXT_WAY', 'w/ $' . MODULE_SHIPPING_FREECOUNT_AMOUNT . ' minimum order'); //W. Kaiser require_once DIR_FS_INC . 'olc_format_price.inc.php'; // W. Kaiser - Free shipping national/international require_once DIR_FS_INC . 'olc_get_free_shipping_amount.inc.php'; olc_get_free_shipping_amount(); // W. Kaiser - Free shipping national/international define('MODULE_SHIPPING_FREECOUNT_TEXT_WAY', 'From <b>' . olc_format_price(FREE_AMOUNT, $price_special = 1, $calculate_currencies = false) . '</b> order value onwardswie ship your order <b>without</b> shipping cost!<br/>' . ' (<font color="red"><b>Missing order amount for free shipment: </b></font>'); //W. Kaiser define('MODULE_SHIPPING_FREECOUNT_SORT_ORDER', 'Sort Order'); define('MODULE_SHIPPING_FREEAMOUNT_ALLOWED_TITLE', 'Allowed Zones'); define('MODULE_SHIPPING_FREEAMOUNT_ALLOWED_DESC', 'Please enter the zones <b>separately</b> which should be allowed to use this modul (e. g. AT,DE (leave empty if you want to allow all zones))'); define('MODULE_SHIPPING_FREECOUNT_STATUS_TITLE', 'Enable Free Shipping with Minimum Purchase'); define('MODULE_SHIPPING_FREECOUNT_STATUS_DESC', 'Do you want to offer free shipping?'); define('MODULE_SHIPPING_FREECOUNT_DISPLAY_TITLE', 'Enable Display'); define('MODULE_SHIPPING_FREECOUNT_DISPLAY_DESC', 'Do you want to display text way if the minimum amount is not reached?'); define('MODULE_SHIPPING_FREECOUNT_AMOUNT_TITLE', 'Minimum Cost'); define('MODULE_SHIPPING_FREECOUNT_AMOUNT_DESC', 'Minimum order amount purchased before shipping is free?'); define('MODULE_SHIPPING_FREECOUNT_SORT_ORDER_TITLE', 'Display order'); define('MODULE_SHIPPING_FREECOUNT_SORT_ORDER_DESC', 'Lowest will be displayed first.');