</th> <th><?php echo JText::_('COM_DIGICOM_TYPE'); ?> </th> <th><?php echo JText::_('COM_DIGICOM_PRODUCT_PRICE'); ?> </th> </tr> </thead> <tbody> <?php foreach ($order->products as $key => $product) { $productlink = JRoute::_(DigiComHelperRoute::getProductRoute($product->id, $product->catid, $product->language)); ?> <tr> <td> <?php if (!empty($product->images)) { ?> <img width="64" height="64" src="<?php echo JUri::root() . $product->images; ?> " alt="<?php echo $product->name; ?> " /> <?php }
echo $this->item->fulldescription; ?> </div> <?php if (!empty($this->item->bundle_source)) { ?> <div class="bundled-products"> <h3><?php echo JText::_('COM_DIGICOM_PRODUCT_BUNDLE_ITEMS_TITLE'); ?> </h3> <ul> <?php foreach ($this->item->bundleitems as $key => $bitem) { $link = JRoute::_(DigiComHelperRoute::getProductRoute($bitem->id, $bitem->catid, $bitem->language)); ?> <li> <a href="<?php echo $link; ?> "><?php echo $bitem->name; ?> </a> <span class="label"><?php echo DigiComSiteHelperDigicom::format_price2($bitem->price, $conf->get('currency', 'USD'), true, $conf); ?> </span> </li> <?php
"> <td> <a href="javascript:void(0)" onclick="if (window.parent) window.parent.<?php echo $this->escape($function); ?> ('<?php echo $item->id; ?> ', '<?php echo $this->escape(addslashes($item->name)); ?> ', '<?php echo $this->escape($item->catid); ?> ', null, '<?php echo $this->escape(DigiComHelperRoute::getProductRoute($item->id, $item->catid, $item->language)); ?> ', '<?php echo $this->escape($lang); ?> ', '<?php echo $this->escape($price); ?> ');"> <?php echo $this->escape($item->name); ?> </a> </td> <td class="small"> <?php
/** * Method to index an item. The item must be a FinderIndexerResult object. * * @param FinderIndexerResult $item The item to index as an FinderIndexerResult object. * @param string $format The item format. Not used. * * @return void * * @since 2.5 * @throws Exception on database error. */ protected function index(FinderIndexerResult $item, $format = 'html') { $item->setLanguage(); // Check if the extension is enabled. if (JComponentHelper::isEnabled($this->extension) == false) { return; } // Initialise the item parameters. $registry = new Registry(); $registry->loadString($item->params); $item->params = JComponentHelper::getParams('com_digicom', true); $item->params->merge($registry); $registry = new Registry(); $registry->loadString($item->metadata); $item->metadata = $registry; // Trigger the onContentPrepare event. $item->summary = FinderIndexerHelper::prepareContent($item->summary, $item->params); $item->body = FinderIndexerHelper::prepareContent($item->body, $item->params); // Build the necessary route and path information. $item->url = $this->getURL($item->id, $this->extension, $this->layout); $item->route = DigiComHelperRoute::getProductRoute($item->slug, $item->catid, $item->language); $item->path = FinderIndexerHelper::getContentPath($item->route); // Get the menu title if it exists. $title = $this->getItemMenuTitle($item->url); // Adjust the title if necessary. if (!empty($title) && $this->params->get('use_menu_title', true)) { $item->title = $title; } // Add the meta-author. $item->metaauthor = $item->metadata->get('author'); // Add the meta-data processing instructions. $item->addInstruction(FinderIndexer::META_CONTEXT, 'metatitle'); $item->addInstruction(FinderIndexer::META_CONTEXT, 'metakey'); $item->addInstruction(FinderIndexer::META_CONTEXT, 'metadesc'); $item->addInstruction(FinderIndexer::META_CONTEXT, 'metaauthor'); $item->addInstruction(FinderIndexer::META_CONTEXT, 'author'); // Translate the state. Articles should only be published if the category is published. $item->state = $this->translateState($item->state, $item->cat_state); // Add the type taxonomy data. $item->addTaxonomy('Type', 'Article'); // Add the author taxonomy data. if (!empty($item->author)) { $item->addTaxonomy('Author', $item->author); } // Add the category taxonomy data. $item->addTaxonomy('Category', $item->category, $item->cat_state, $item->cat_access); // Add the language taxonomy data. $item->addTaxonomy('Language', $item->language); // Get content extras. FinderIndexerHelper::getContentExtras($item); // Index the item. $this->indexer->index($item); }
?> <ul class="dg-cart-list"> <?php foreach ($list as $index => $item) { ?> <?php // TODO : remove this after issue #52 solve. no false index should be on cart array if ($index < 0) { continue; } ?> <li class="clearfix"> <a href="<?php echo JRoute::_(DigiComHelperRoute::getProductRoute($item->id, $item->catid)); ?> "> <img src="<?php echo DigiComSiteHelperDigiCom::getThumbnail($item->images); ?> " alt="<?php echo $item->name; ?> "/> <?php echo $item->name; ?> </a> <span class="dg-quantity"> <?php