* is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * @version $Id: default_relatedproducts.php 5406 2012-02-09 12:22:33Z alatak $ */ // Check to ensure this file is included in Joomla! defined('_JEXEC') or die('Restricted access'); $model = new VirtueMartModelProduct(); $calculator = calculationHelper::getInstance(); $currency = CurrencyDisplay::getInstance(); if (count($this->product->customfieldsRelatedProducts) > 0) { ?> <p class="det_ttl">C этим товаром так же покупают</p> <ul class="prod_list"> <?php foreach ($this->product->customfieldsRelatedProducts as $field) { $rel_product = $model->getProductSingle($field->custom_value, true); //print_r($rel_product); ?> <li> <a href="<?php echo $field->display->url; ?> "> <?php if ($field->override == 1) { echo '<p class="spec_round"></p>'; } else { if ($field->display->product_special == 1) { echo '<p class="new_round"></p>'; } }
?> <li class="item"> <div class="spacer"> <div class="product-header"> <h3 class="title pull-left"> <?php echo $field->display; ?> </h3> <div class="price pull-left"> <div class="PricesalesPrice"> <span class="PricesalesPrice"> <?php echo jText::_($field->custom_field_desc); $product = $model->getProductSingle($field->custom_value, false); $price = $calculator->getProductPrices($product); echo $currency->priceDisplay($price['salesPrice']); ?> </span> </div> </div> </div> <div class="product-content"> <div class="product-content-inner"> <div class="product-back"> <div class="product_s_desc"><?php echo $this->product->product_s_desc;