53 lines
1.5 KiB
PHP
53 lines
1.5 KiB
PHP
<?php
|
|
/* ----------------------------------------------------------------------
|
|
$Id: function.oos_shipping_cost.php,v 1.1 2007/06/08 13:34:16 r23 Exp $
|
|
|
|
MyOOS [Shopsystem]
|
|
https://www.oos-shop.de
|
|
|
|
|
|
Copyright (c) 2003 - 2019 by the MyOOS Development Team.
|
|
----------------------------------------------------------------------
|
|
Based on:
|
|
|
|
File: general.php,v 1.212 2003/02/17 07:55:54 hpdl
|
|
----------------------------------------------------------------------
|
|
osCommerce, Open Source E-Commerce Solutions
|
|
http://www.oscommerce.com
|
|
|
|
Copyright (c) 2003 osCommerce
|
|
----------------------------------------------------------------------
|
|
Released under the GNU General Public License
|
|
---------------------------------------------------------------------- */
|
|
/*
|
|
* Smarty plugin
|
|
* -------------------------------------------------------------
|
|
* Type: function
|
|
* Name: oos_cost
|
|
* Version: 1.0
|
|
* Date:
|
|
* Purpose:
|
|
*
|
|
*
|
|
* Install: Drop into the plugin directory
|
|
* Author:
|
|
* -------------------------------------------------------------
|
|
*/
|
|
|
|
function smarty_function_oos_cost($params, &$smarty)
|
|
{
|
|
|
|
global $oCurrencies;
|
|
|
|
require_once(SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php');
|
|
|
|
$price = '';
|
|
$tax = '';
|
|
|
|
foreach($params as $_key => $_val) {
|
|
$$_key = smarty_function_escape_special_chars($_val);
|
|
}
|
|
|
|
print $oCurrencies->format(oos_add_tax($price, $tax));
|
|
}
|