Hledat

Hledaný řetězec: 2025

Oddělení

getCategoryName()); } ?>

trans('eshop.products') ?>

getProductVAT()) && $product->getProductVAT() > 0) { /* VAT is derived from productVAT */ $productVAT = $product->getProductVAT(); } elseif(!empty($eshop->getPreferredVAT()) && $eshop->getPreferredVAT() > 0) { /* VAT is derived from eshop VAT */ $productVAT = $eshop->getPreferredVAT(); } /* we get price(s) to display */ $displayPrice = null; $displayPriceVAT = null; foreach($productPriceList as $price) { if($price->getProductId() == $product->getProductId()) { //print("
price product id: ".$price->getProductId()); /* we get price level according to logged contact-customer */ if(!empty($view['session']->get('contact')) && !empty($view['session']->get('contact')->getPriceLevel()) && $price->getPriceLevelId()==$view['session']->get('contact')->getPriceLevel()->getPriceLevelId()) { /* we get netto or brutto value according to e-shop configuration */ if(!empty($eshop->getDisplayNettoPrices()) && $eshop->getDisplayNettoPrices()==true) { $displayPrice = round($price->getNettoValue(),$eshop->getRoundPrice()); } else { $displayPrice = round($price->getBruttoValue(),$eshop->getRoundPrice()); } if(!empty($eshop->getDisplayNettoPrices()) && $eshop->getDisplayNettoPrices()==true) { $displayPriceVAT = $displayPrice + ($displayPrice * ($productVAT/100)); $displayPriceVATLabel = $view['translator']->trans('product.price_with_VAT'); } else { $displayPriceVAT = $displayPrice - ($displayPrice * ($productVAT/100)); $displayPriceVATLabel = $view['translator']->trans('product.price_without_VAT'); } } elseif($price->getPriceLevelId() == 1) { /* we get default price level */ /* we get netto or brutto value according to e-shop configuration */ if(!empty($eshop->getDisplayNettoPrices()) && $eshop->getDisplayNettoPrices()==true) { $displayPrice = round($price->getNettoValue(),$eshop->getRoundPrice()); } else { $displayPrice = round($price->getBruttoValue(),$eshop->getRoundPrice()); } if(!empty($eshop->getDisplayNettoPrices()) && $eshop->getDisplayNettoPrices()==true) { $displayPriceVAT = $displayPrice + ($displayPrice * ($productVAT/100)); $displayPriceVATLabel = $view['translator']->trans('product.price_with_VAT'); } else { $displayPriceVAT = $displayPrice - ($displayPrice * ($productVAT/100)); $displayPriceVATLabel = $view['translator']->trans('product.price_without_VAT'); } //$displayPrice = round($price->getBruttoValue(),$eshop->getRoundPrice()); } } } ?> render($productTemplate, array('product' => $product, 'eshop' => $eshop, 'displayPrice' => $displayPrice, 'displayPriceVAT' => $displayPriceVAT, 'productVAT' => $productVAT, 'productThumbs' => $productThumbs, 'user' => $user, 'app' => $app, 'searchString' => $searchString, ) ) ?>
VirtualRealityCommerce.org - e-commerce engine 2000-2024
Loading…
Loading the web debug toolbar…
Attempt #