first commit
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
use_helper('Asset', 'stPrice', 'I18N', 'stProductImage', 'stCurrency');
|
||||
|
||||
sfLoader::loadHelpers(array('stProduct'), 'stProduct');
|
||||
|
||||
function object_add_price_tax(AddPrice $addPrice, $method, $options = array())
|
||||
{
|
||||
use_helper('stPrice');
|
||||
|
||||
$cache = new stFunctionCache('stTax');
|
||||
|
||||
$tax_info = $cache->cacheCall('_object_product_tax_helper');
|
||||
|
||||
st_price_tax_managment_init(array(
|
||||
'taxField' => 'add_price_tax_id',
|
||||
'taxValues' => $tax_info['values'],
|
||||
'priceFields' => array(
|
||||
array('price' => 'add_price_price_netto', 'priceWithTax' => 'add_price_price_brutto'),
|
||||
array('price' => 'add_price_old_price_netto', 'priceWithTax' => 'add_price_old_price_brutto'),
|
||||
|
||||
)));
|
||||
|
||||
return select_tag('add_price[tax_id]', options_for_select($tax_info['names'], $addPrice->getTaxId() ? $addPrice->getTaxId() : $tax_info['default']));
|
||||
}
|
||||
Reference in New Issue
Block a user