?> <td align="center" valign="top" class="border-left"> <a title="<?php echo JText::_('COM_TIENDA_REMOVE_PRODUCT_COMPARISON'); ?> " class="close-img" href="<?php echo JRoute::_('index.php?index.php?option=com_tienda&view=productcompare&task=remove&id=' . $item->productcompare_id); ?> "> <img src="<?php echo Tienda::getURL('images'); ?> closebox.gif"> </a> <?php echo TiendaHelperProduct::getImage($item->product_id, '', $item->product_name); ?> </td> <?php } ?> </tr> <tr valign="top" class="row0"> <td></td> <?php foreach ($items as $item) { ?> <td align="center" class="border-left"> <a href="<?php echo JRoute::_('index.php?option=com_tienda&view=products&task=view&id=' . $item->product_id); ?>
echo $item->wishlistitem_id; ?> "> <td> <a class="delete-wishlistitem btn btn-danger" href="javascript:void(0);" data-wishlistitem_id="<?php echo $item->wishlistitem_id; ?> "> <?php echo JText::_("COM_TIENDA_DELETE_WISHLISTITEM"); ?> </a> </td> <td class="product_thumb_container"> <?php $product_image = TiendaHelperProduct::getImage($item->product_id, '', '', 'full', true, false, array(), true); ?> <?php if ($product_image) { ?> <div class="dsc-wrap product_thumb frame"> <div class="frame-inner"> <a href="<?php echo $link; ?> "> <img src="<?php echo $product_image; ?> " /> </a>
?> </div> <?php $k = 0; foreach ($items as $item) { ?> <div class="productrelation"> <div class="productrelation_item"> <div class="productrelation_image"> <a href="<?php echo JRoute::_('index.php?option=com_tienda&view=products&task=view&id=' . $item->product_id . '&Itemid=' . $item->itemid); ?> "> <?php echo TiendaHelperProduct::getImage($item->product_id, 'id', $item->product_name, 'full', false, false, array('width' => 64)); ?> </a> </div> <div class="productrelation_name"> <a href="<?php echo JRoute::_('index.php?option=com_tienda&view=products&task=view&id=' . $item->product_id . '&Itemid=' . $item->itemid); ?> "> <?php echo $item->product_name; ?> </a> </div> <div class="productrelation_price" style="vertical-align: middle;" > <?php
/** * Change the default image * @return unknown_type */ function updateDefaultImage() { $response = array(); $response['default_image'] = ''; $response['default_image_name'] = ''; $product_id = JRequest::getInt('product_id'); Tienda::load('TiendaUrl', 'library.url'); Tienda::load("TiendaHelperProduct", 'helpers.product'); $row = JTable::getInstance('Products', 'TiendaTable'); $row->load($product_id); $response['default_image'] = TiendaHelperProduct::getImage($row->product_id, 'id', $row->product_name, 'full', false, false, array('height' => 80)); $response['default_image_name'] = $row->product_full_image; echo json_encode($response); // Close the application. JFactory::getApplication()->close(); }
} ?> </div> </div> <?php if (@$params['show_image'] == '1') { ?> <div class="product_image"> <?php echo TiendaUrl::popup(TiendaHelperProduct::getImage($item->product_id, '', '', 'full', true), TiendaHelperProduct::getImage($item->product_id), array('update' => false, 'img' => true)); ?> <div> <?php if (isset($item->product_full_image)) { echo TiendaUrl::popup(TiendaHelperProduct::getImage($item->product_id, '', '', 'full', true), "View Larger", array('update' => false, 'img' => true)); } ?> </div> </div> <?php } ?> <?php if (Tienda::getInstance()->get('shop_enabled', '1') && @$params['show_buy']) { ?> <div class="product_buy" id="product_buy"> <?php if (!empty($product_buy)) { echo $product_buy;
<?php if (!empty($items)) { ?> <div id="tienda_products"> <?php foreach ($items as $item) { ?> <div class="product_item"> <div class="product_thumb"> <div class="product_listimage"> <a href="<?php echo JRoute::_($item->link . "&filter_category=" . $this->cat->category_id . "&Itemid=" . $item->itemid); ?> "> <?php echo TiendaHelperProduct::getImage($item->product_id); ?> </a> </div> <div class="reset"></div> </div> <div id="product_buy_<?php echo $item->product_id; ?> " class="product_buy"> <?php echo $item->product_buy; ?> </div>
"> <td style="text-align: center;"><a style="cursor: pointer;" onclick="<?php echo $onclick; ?> "> <?php echo $row->product_id; ?> </a> </td> <td> <?php if (!empty($row->product_full_image)) { echo TiendaHelperProduct::getImage($row->product_id, '', $row->product_name, 'thumb', false, false, array('width' => 60)); } ?> </td> <td><a style="cursor: pointer;" onclick="<?php echo $onclick; ?> "> <?php echo htmlspecialchars($row->product_name, ENT_QUOTES, 'UTF-8'); ?> </a></td> <td style="text-align: center;"><a style="cursor: pointer;" onclick="<?php echo $onclick;
<?php if ($params->get('display_image_link', '1') != '0') { ?> <p class="product_image"><a href="<?php echo JRoute::_($product->link . "&Itemid=" . $product->itemid); ?> "> <?php echo TiendaHelperProduct::getImage($product->product_id, 'id', $product->product_name, 'thumb', false, $resize, $options); ?> </a></p> <?php } else { ?> <p class="product_image"><?php echo TiendaHelperProduct::getImage($product->product_id, 'id', $product->product_name, 'thumb', false, $resize, $options); ?> </p> <?php } ?> <?php } ?> <?php if ($params->get('display_price', '1') != '0') { ?> <p class="product_price"><?php echo TiendaHelperProduct::dispayPriceWithTax($product->price, $product->tax, Tienda::getInstance()->get('display_prices_with_tax')); ?>
<?php defined('_JEXEC') or die('Restricted access'); JHTML::_('script', 'tienda.js', 'media/com_tienda/js/'); JHTML::_('script', 'tienda_inventory_check.js', 'media/com_tienda/js/'); $state = @$this->state; $item = @$this->row; $product_image = TiendaHelperProduct::getImage($item->product_id, '', '', 'full', true, false, array(), true); $product_image_thumb = TiendaHelperProduct::getImage($item->product_id, '', $item->product_name, 'thumb', false, false, array(), true); ?> <div id="tienda" class="dsc-wrap products view product-<?php echo $item->product_id; ?> <?php echo $item->product_classes; ?> "> <?php if ($this->defines->get('display_tienda_pathway')) { ?> <div id='tienda_breadcrumb'> <?php echo TiendaHelperCategory::getPathName($this->cat->category_id, 'links', true); ?> </div> <?php } ?>
<?php defined('_JEXEC') or die('Restricted access'); JHTML::_('script', 'tienda.js', 'media/com_tienda/js/'); JHTML::_('stylesheet', 'pos.css', 'media/com_tienda/css/'); $state = @$this->state; $row = @$this->product; Tienda::load('TiendaHelperProduct', 'helpers.product'); ?> <form action="index.php?option=com_tienda&view=pos&tmpl=component" method="post" name="adminForm" enctype="multipart/form-data"> <table class="table table-striped table-bordered"> <tr> <td> <?php echo TiendaHelperProduct::getImage($row->product_id, 'id', $row->product_name, 'full', false, false, array('width' => 150)); ?> </td> <td> <h3><?php echo $row->product_name; ?> </h3> <p><?php echo $row->product_description_short; ?> </p> </td> <td> <div id="product_buy"> <?php