Files
2017-03-02 20:30:40 -06:00

48 lines
1.5 KiB
PHP

<?php
/*
+--------------------------------------------------------------------------
| CubeCart 4
| ========================================
| CubeCart is a registered trade mark of Devellion Limited
| Copyright Devellion Limited 2006. All rights reserved.
| Devellion Limited,
| 5 Bridge Street,
| Bishops Stortford,
| HERTFORDSHIRE.
| CM23 2JU
| UNITED KINGDOM
| http://www.devellion.com
| UK Private Limited Company No. 5323904
| ========================================
| Web: http://www.cubecart.com
| Email: info (at) cubecart (dot) com
| License Type: CubeCart is NOT Open Source Software and Limitations Apply
| Licence Info: http://www.cubecart.com/site/faq/license.php
+--------------------------------------------------------------------------
| calc.php
| ========================================
| Sets shipping to be free
+--------------------------------------------------------------------------
*/
// free shipping
function Free_Shipping() {
global $lang, $subTotal;
$moduleName = 'Free_Shipping';
$module = fetchDbConfig('Free_Shipping');
if ($module['status'] == true) {
if (is_numeric($module['trigger']) && $module['trigger'] > 0) {
if ($subTotal < $module['trigger']) return false;
}
$out[0]['value'] = 0;
$out[0]['desc'] = priceFormat(0,true)." (".$lang['front']['misc_free'].")";
$out[0]['method'] = $lang['front']['misc_freeShipping'];
$out[0]['folder'] = $moduleName;
return $out;
}
return false;
}
$shipArray[] = Free_Shipping();
?>