Files
2025-03-12 17:06:23 +01:00

18 lines
723 B
PHP

<?php
sfLoader::loadHelpers(array('stProduct'), 'stProduct');
$cache = new stFunctionCache('stTax');
$tax_info = $cache->cacheCall('_object_product_tax_helper');
st_price_tax_managment_init(array(
'taxField' => 'group_price_tax_id',
'taxValues' => $tax_info['values'],
'priceFields' => array(
array('price' => 'group_price_price_netto', 'priceWithTax' => 'group_price_price_brutto'),
array('price' => 'group_price_old_price_netto', 'priceWithTax' => 'group_price_old_price_brutto'),
)));
echo select_tag('group_price[tax_id]', options_for_select($tax_info['names'], $group_price->getTaxId() ? $group_price->getTaxId() : $tax_info['default']));