PDF rausgenommen
This commit is contained in:
52
msd2/myoos/includes/lib/smarty-plugins/function.oos_cost.php
Normal file
52
msd2/myoos/includes/lib/smarty-plugins/function.oos_cost.php
Normal file
@ -0,0 +1,52 @@
|
||||
<?php
|
||||
/* ----------------------------------------------------------------------
|
||||
$Id: function.oos_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));
|
||||
}
|
Reference in New Issue
Block a user