product->prices);
foreach ($this->product->prices as $sPrices) {
if(count($sPrices) == 0) continue;
if (empty($sPrices['virtuemart_product_price_id'])) {
$sPrices['virtuemart_product_price_id'] = '';
}
//vmdebug('my $sPrices ',$sPrices);
$sPrices = (array)$sPrices;
$this->tempProduct = (object)array_merge ((array)$this->product, $sPrices);
$this->calculatedPrices = $calculator->getProductPrices ($this->tempProduct);
if((string)$sPrices['product_price']==='0' or (string)$sPrices['product_price']===''){
$this->calculatedPrices['costPrice'] = '';
}
$currency_model = VmModel::getModel ('currency');
$this->lists['currencies'] = JHTML::_ ('select.genericlist', $currencies, 'mprices[product_currency][' . $this->priceCounter . ']', '', 'virtuemart_currency_id', 'currency_name', $this->tempProduct->product_currency);
$DBTax = ''; //vmText::_('COM_VIRTUEMART_RULES_EFFECTING') ;
foreach ($calculator->rules['DBTax'] as $rule) {
$DBTax .= $rule['calc_name'] . '
';
}
$this->DBTaxRules = $DBTax;
$tax = ''; //vmText::_('COM_VIRTUEMART_TAX_EFFECTING').'
';
foreach ($calculator->rules['Tax'] as $rule) {
$tax .= $rule['calc_name'] . '
';
}
foreach ($calculator->rules['VatTax'] as $rule) {
$tax .= $rule['calc_name'] . '
';
}
$this->taxRules = $tax;
$DATax = ''; //vmText::_('COM_VIRTUEMART_RULES_EFFECTING');
foreach ($calculator->rules['DATax'] as $rule) {
$DATax .= $rule['calc_name'] . '
';
}
$this->DATaxRules = $DATax;
if (!isset($this->tempProduct->product_tax_id)) {
$this->tempProduct->product_tax_id = 0;
}
$this->lists['taxrates'] = ShopFunctions::renderTaxList ($this->tempProduct->product_tax_id, 'mprices[product_tax_id][' . $this->priceCounter . ']');
if (!isset($this->tempProduct->product_discount_id)) {
$this->tempProduct->product_discount_id = 0;
}
$this->lists['discounts'] = $this->renderDiscountList ($this->tempProduct->product_discount_id, 'mprices[product_discount_id][' . $this->priceCounter . ']');
$this->lists['shoppergroups'] = ShopFunctions::renderShopperGroupList ($this->tempProduct->virtuemart_shoppergroup_id, false, 'mprices[virtuemart_shoppergroup_id][' . $this->priceCounter . ']');
if ($this->priceCounter == $nbPrice) {
$tmpl = "productPriceRowTmpl";
} else {
$tmpl = "productPriceRowTmpl_" . $this->priceCounter;
}
?>
|
*/ ?>
loadTemplate ('price'); ?>
|
priceCounter++;
}
?>