first commit
This commit is contained in:
19
class/smarty_plugins/function.get_free_delivery.php
Normal file
19
class/smarty_plugins/function.get_free_delivery.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* Smarty plugin
|
||||
* -------------------------------------------------------------
|
||||
* Type: function
|
||||
* Name: get_free_delivery
|
||||
* Purpose: returns minimum order price to get a free delivery.
|
||||
* Example: {get_free_delivery assign=freeDelivery} {$freeDelivery|format_price}
|
||||
* -------------------------------------------------------------
|
||||
*/
|
||||
function smarty_function_get_free_delivery($params, &$smarty)
|
||||
{
|
||||
$params['type'] = 'free_delivery';
|
||||
|
||||
$smarty->loadPlugin('Smarty_function_get_stats');
|
||||
|
||||
return smarty_function_get_stats($params, $smarty);
|
||||
}
|
||||
Reference in New Issue
Block a user