config->get('thumbnail') && @$this->displayVariants['images']){ ?>
images)) {
$image = reset($variant->images);
$width = $this->config->get('thumbnail_x');
$height = $this->config->get('thumbnail_y');
$this->image->checkSize($width,$height,$image);
foreach($variant->images as $image) {
?>
image->display($image->file_path, true, $image->file_name, 'style="margin-top:10px;margin-bottom:10px;display:inline-block;vertical-align:middle"', '', $width, $height);
?>
|
displayVariants['variant_name']){ ?>
variant_name; ?>
|
config->get('show_code')) {
?>
product_code;
?> |
element->main->characteristics as $characteristic) {
?>
values)) {
foreach($characteristic->values as $k => $value) {
foreach($variant->characteristics as $variantCharacteristic) {
if($variantCharacteristic->characteristic_id == $value->characteristic_id) {
echo hikashop_translate($variantCharacteristic->characteristic_value);
break 2;
}
}
}
}
?>
|
displayVariants['product_description']) {
?>
#i', '', $variant->product_description));
?> |
params->get('show_price') && @$this->displayVariants['prices']){
?>
row->product_msrp) == ($this->element->main->product_msrp) )
$this->params->set('from_module',1);
$this->setLayout('listing_price');
echo $this->loadTemplate();
$this->params->set('from_module',0);
?>
|
params->get('catalogue')) {
?>
config->get('show_quantity_field') < 2) {
$this->params->set('main_div_name','variants');
$this->params->set('extra_div_name','hikashop_product_form');
$this->setLayout('add_to_cart_ajax');
echo $this->loadTemplate();
$this->params->set('extra_div_name','');
} else {
$start_date = (@$this->row->product_sale_start || empty($this->element->main)) ? @$this->row->product_sale_start : $this->element->main->product_sale_start;
$end_date = (@$this->row->product_sale_end || empty($this->element->main)) ? @$this->row->product_sale_end : $this->element->main->product_sale_end;
$now = time();
if($end_date > 0 && $end_date < $now) {
?>
0 && $start_date > $now) {
?>
params->get('date_format', '%d %B %Y')));
?>
row->product_quantity > 0)
echo (($this->row->product_quantity == 1 && JText::_('X_ITEM_IN_STOCK') != 'X_ITEM_IN_STOCK') ? JText::sprintf('X_ITEM_IN_STOCK', $this->row->product_quantity) : JText::sprintf('X_ITEMS_IN_STOCK', $this->row->product_quantity));
elseif($this->row->product_quantity == 0)
echo JText::_('NO_STOCK');
?>
row->product_quantity == -1 || $this->row->product_quantity > 0) {
$quantityLayout = $this->quantityLayout;
if(!empty($this->row->product_quantity_layout) && $this->row->product_quantity_layout != 'inherit')
$quantityLayout = $this->row->product_quantity_layout;
if(empty($quantityLayout) || !in_array($quantityLayout, array( 'show_select', 'show_select_price'))) {
?>
row->product_min_per_order || empty($this->element->main)) ? $this->row->product_min_per_order : $this->element->main->product_min_per_order;
$max_quantity = ($this->row->product_max_per_order || empty($this->element->main)) ? $this->row->product_max_per_order : $this->element->main->product_max_per_order;
$min_quantity = max((int)$min_quantity, 1);
$max_quantity = max((int)$max_quantity, 0);
if($max_quantity == 0)
$max_quantity = $min_quantity * $this->config->get('quantity_select_max_default_value', 15);
$values = array();
if($quantityLayout == 'show_select' || empty($this->row->prices)) {
$values = range($min_quantity, $max_quantity, $min_quantity);
} else {
foreach($this->row->prices as $price) {
$price_min_qty = max((int)$price->price_min_quantity, $min_quantity);
$values[$price_min_qty] = $price_min_qty;
}
}
?>
|