getTemplate(); $FlexibleImagePATH = 'templates/'.$template.'/html/com_virtuemart/assets/images'; $basePriceWitTax = "basePriceWitTax"; $js = " jQuery(document).ready(function () { jQuery('.orderlistcontainer').hover( function() { jQuery(this).find('.orderlist').stop().show()}, function() { jQuery(this).find('.orderlist').stop().hide()} ) }); "; $document = JFactory::getDocument(); $document->addScriptDeclaration($js); $js2 = " jQuery(function($) { $(document).ready(function(){ $('#FlexibleSwitchButtons a.".$params->get('category_defaultview','switch_thumb2')."').addClass('switch_active'); $('#FlexibleSwitchButtons a').click(function(){ $('#FlexibleSwitchButtons a').removeClass('switch_active'); $(this).addClass('switch_active'); var currentTab = $(this).attr('rel'); $('#FlexibleBrowseViews .FlexibleBrowseViews').fadeOut(300); $(currentTab).delay(301).fadeIn(300); return false; }); }); }); "; $document = JFactory::getDocument(); $document->addScriptDeclaration($js2); /* Show child categories */ $manufacturerCheck = JRequest::getVar('virtuemart_manufacturer_id'); if (empty($this->keyword)) echo '
'.$this->category->category_description.'
'; if ( VmConfig::get('showCategory',1) and empty($this->keyword) and empty($manufacturerCheck)) { if ($this->category->haschildren) { // Category and Columns Counter $iCol = 1; $iCategory = 1; // Calculating Categories Per Row $categories_per_row = VmConfig::get ( 'categories_per_row', 3 ); $category_cellwidth = ' width'.floor ( 100 / $categories_per_row ); // Separator $verticalseparator = " vertical-separator"; ?>
category->children)){ foreach ( $this->category->children as $category ) { // Show the horizontal seperator if ($iCol == 1 && $iCategory > $categories_per_row) { ?>
virtuemart_category_id ); // Show Category ?>
get('category_show_percentage',1)) { $doc = JFactory::getDocument(); $doc->addStyleDeclaration('.FlexiblePercentage { display:none;} '); } ?>
products)) { ?> perRow; $Browsecellwidth = ' width'.floor ( 100 / $BrowseProducts_per_row ); // Separator $verticalseparator = " vertical-separator"; ?>
search ==null) { ?>

category->category_name; ?>

: keyword; ?>

get('category_switch',1)) { ?>
get('category_disable_multigrid',1)) { ?> get('category_disable_grid',1)) { ?> get('category_disable_list',1)) { ?>
get('category_pagination',1)) { ?>
vmPagination->getLimitBox(); ?> get('category_results_counter',1)) { ?> vmPagination->getResultsCounter();?>
get('category_sort_by',1)) { echo $this->orderByList['orderby']; } ?> get('category_sort_by_manufacturer',1)) { echo $this->orderByList['manufacturer']; } ?>
vmPagination->getPagesLinks(); ?>
products as $product ) { $BrowseTotalProducts ++; } ?> get('category_disable_list',1)) { ?>
get('category_defaultview') == "switch_thumb2" || $params->get('category_defaultview') == "switch_thumb3") { echo 'style="display:none;"'; } elseif ($params->get('category_defaultview') == "switch_thumb1") { echo 'style="display:block;"'; } ?>> products as $product ) { $uniqueID = $k++; $m++ // Show Products ?>
link, $product->product_name, array ('title' => $product->product_name, 'class' => 'FlexibleBrowseProductNameLink' )); ?>
link, $product->images[0]->displayMediaThumb('class="browseProductImage" id="FlexibleImageParent'. $uniqueID .'" border="0" title="'.$product->product_name.'" ',false,'')); ?>
get('category_list_quicklook',1)) { ?>
get('category_list_addpictures',1) and (!empty($product->images[1]))) { ?>
    images as $image) { $ImageId = $i++; ?>
  • images[$ImageId]->displayMediaThumb('class="FlexibleTinyImage" style="max-height:30px; max-width:30px;" rel="FlexibleImageParent'. $uniqueID. '"',false,'',true,false,false,0,0); ?>
get('category_new','+2 week');(!$basePriceWitTax)?die():''; $createddate = strtotime(($product->created_on) . " ".$category_new_timeframe.""); // +1 week can anything you want: +2 week, +1 month, +24 hour so on.. $today = strtotime(date("Y-m-d G:i:s")); //todays date if ($createddate > $today) { $NEWorOLD = "FlexibleNew"; } else { $NEWorOLD = ""; } if ($product->product_special == 1) { $SpecialOrNOT = "FlexibleSpecial"; } else { $SpecialOrNOT = ""; } $DiscountORnot = ''; if(abs($product->prices['discountAmount'])) { $DiscountORnot = "FlexibleDiscount"; } else { $DiscountORnot = ''; } ?>
product_in_stock - $product->product_ordered) < 1) && $params->get('category_soldout',1)) { ?>
link, $product->product_name, array ('title' => $product->product_name, 'class' => 'FlexibleBrowseProductNameLink' )); ?>
get('category_list_manufac',1)) { $db = JFactory::getDbo(); $query = $db->getQuery(true); $query ->select($db->quoteName('a.file_url')) ->from($db->quoteName('#__virtuemart_medias', 'a')) ->join('INNER', $db->quoteName('#__virtuemart_manufacturer_medias', 'b') . ' ON (' . $db->quoteName('b.virtuemart_manufacturer_id') . ' = '. $product->virtuemart_manufacturer_id[0].')') ->where($db->quoteName('a.virtuemart_media_id') . ' = '.$db->quoteName('b.virtuemart_media_id')); $db->setQuery($query); $results = $db->loadRow(); ?> showRating && $params->get('category_list_ratings',1)){ echo shopFunctionsF::renderVmSubLayout('rating',array('showRating'=>'showRating', 'product'=>$product)); } //End Rating ?> get('category_list_sku',1)) { ?>
: product_sku; ?>
product_s_desc) and $params->get('category_list_shortdesc',1)) { ?>

product_s_desc, 100, '...') ?>

get('category_list_productdetails',1)) { echo JHTML::link($product->link, JText::_('COM_VIRTUEMART_PRODUCT_DETAILS'), array('title' => $product->product_name,'class' => 'flexibleButton')); } ?>
$product,'currency'=>$this->currency)); ?>
get('category_addtocart_list',1)) { $customFieldCheck = 1; if (!empty($product->customfieldsSorted['addtocart'])) { foreach ($product->customfieldsSorted['addtocart'] as $field) { if ($field->field_type == "A" || $field->field_type == "E" || $field->field_type == "C") { $customFieldCheck = 0; } } } if (!VmConfig::get('use_as_catalog', 0) and !empty($product->prices['salesPrice']) and ($params->get('category_list_addtocart',1))) {?>
get('category_list_customfield',1) && $customFieldCheck) echo shopFunctionsF::renderVmSubLayout('customfields',array('product'=>$product,'position'=>'addtocart')); ?>
product_in_stock - $product->product_ordered) < 1) { ?>
get('category_list_quantitybox',1)) { ?> min_order_level) and $init<$product->min_order_level){ $init = $product->min_order_level; } $step=1; if (!empty($product->step_order_level)){ $step=$product->step_order_level; if(empty($product->min_order_level) and !isset($viewData['init'])){ $init = $step; } } $maxOrder= ''; if (!empty($product->max_order_level)){ $maxOrder = ' max="'.$product->max_order_level.'" '; } ?> />
'; } ?>
get('category_disable_grid',1)) { ?>
get('category_defaultview') == "switch_thumb1" || $params->get('category_defaultview') == "switch_thumb3") { echo 'style="display:none;"'; } elseif ($params->get('category_defaultview') == "switch_thumb2") { echo 'style="display:block;"'; } ?>> products as $product ) { $uniqueID = $k++; $m++; // Show the horizontal seperator if ($iBrowseCol == 1 && $iBrowseProduct > $BrowseProducts_per_row) { ?>
link, $product->images[0]->displayMediaThumb('class="browseProductImage" id="FlexibleImageParent'. $uniqueID .'" border="0" title="'.$product->product_name.'" ',false,'')); ?>
get('category_grid_tinyaddtocart',1) and (!VmConfig::get('use_as_catalog', 0)) and (empty($product->customfieldsCart)) and !empty($product->prices['salesPrice'])) { ?>
prices['salesPrice']<=0 and VmConfig::get ('askprice', 1) and !$product->images[0]->file_is_downloadable) { //price is or not check-START $url = JRoute::_('index.php?option=com_virtuemart&view=productdetails&task=askquestion&virtuemart_product_id='.$product->virtuemart_product_id.'&virtuemart_category_id='.$product->virtuemart_category_id.'&tmpl=component'); ?> get('category_grid_addtocart',1) and (!$product->prices['salesPrice']<=0)) { $stockhandle = VmConfig::get ('stockhandle', 'none'); if (($stockhandle == 'disableit' or $stockhandle == 'disableadd') and ($product->product_in_stock - $product->product_ordered) < 1) { ?>
customfieldsSorted['addtocart'])) { ?> customfieldsSorted['addtocart'])) { if ($params->get('category_grid_quantitybox',1)) { ?> min_order_level) and $init<$product->min_order_level){ $init = $product->min_order_level; } $step=1; if (!empty($product->step_order_level)){ $step=$product->step_order_level; if(empty($product->min_order_level) and !isset($viewData['init'])){ $init = $step; } } $maxOrder= ''; if (!empty($product->max_order_level)){ $maxOrder = ' max="'.$product->max_order_level.'" '; } ?> />
'; } ?>
get('category_grid_quicklook',1) || $params->get('category_grid_moreinfo',1) || $params->get('category_grid_tinyaddtocart',1))) { ?>
get('category_grid_quicklook',1)) { ?> customfieldsCart) || empty($product->prices['salesPrice']) || (($product->product_in_stock - $product->product_ordered) < 1)) { ?> style="width:auto;float:none;" > showRating && $params->get('category_grid_ratings',1)){ echo shopFunctionsF::renderVmSubLayout('rating',array('showRating'=>'showRating', 'product'=>$product)); } ?>
get('category_grid_sku',1)) { ?>
: product_sku; ?>
get('category_new','+2 week'); $createddate = strtotime(($product->created_on) . " ".$category_new_timeframe.""); // +1 week can anything you want: +2 week, +1 month, +24 hour so on.. $today = strtotime(date("Y-m-d G:i:s")); //todays date if ($createddate > $today) { $NEWorOLD = "FlexibleNew"; } else { $NEWorOLD = ""; } if ($product->product_special == 1) { $SpecialOrNOT = "FlexibleSpecial"; } else { $SpecialOrNOT = ""; } $DiscountORnot = ''; if(abs($product->prices['discountAmount'])) { $DiscountORnot = "FlexibleDiscount"; } else { $DiscountORnot = ''; } ?>
product_in_stock - $product->product_ordered) < 1) && $params->get('category_soldout',1)) { ?>
get('category_grid_manufac',1)) { $db = JFactory::getDbo(); $query = $db->getQuery(true); $query ->select($db->quoteName('a.file_url')) ->from($db->quoteName('#__virtuemart_medias', 'a')) ->join('INNER', $db->quoteName('#__virtuemart_manufacturer_medias', 'b') . ' ON (' . $db->quoteName('b.virtuemart_manufacturer_id') . ' = '. $product->virtuemart_manufacturer_id[0].')') ->where($db->quoteName('a.virtuemart_media_id') . ' = '.$db->quoteName('b.virtuemart_media_id')); $db->setQuery($query); $results = $db->loadRow(); ?>
link, $product->product_name, array ('title' => $product->product_name, 'class' => 'FlexibleBrowseProductNameLink' )); ?>
$product,'currency'=>$this->currency)); ?>
get('category_grid_addpictures',1) and (!empty($product->images[1]))) { ?>
    images as $image) { $ImageId = $i++; ?>
  • images[$ImageId]->displayMediaThumb('class="FlexibleTinyImage" style="max-height:30px; max-width:30px;" rel="FlexibleImageParent'. $uniqueID. '"',false,'',true,false,false,0,0); ?>
products as $product ) // Do we need a final closing row tag? if ($iBrowseCol != 1) { ?>
get('category_disable_multigrid',1)) { ?>
get('category_defaultview') == "switch_thumb1" || $params->get('category_defaultview') == "switch_thumb2") { echo 'style="display:none;"'; } elseif ($params->get('category_defaultview') == "switch_thumb3") { echo 'style="display:block;"'; } ?>> perRow = $this->perRow + 1; $BrowseProducts_per_row = $this->perRow; $Browsecellwidth = ' width'.floor ( 100 / $BrowseProducts_per_row ); $m = 0; foreach ( $this->products as $product ) { $uniqueID = $k++; $m++; // Show the horizontal seperator if ($iBrowseCol == 1 && $iBrowseProduct > $BrowseProducts_per_row) { ?>
link, $product->images[0]->displayMediaThumb('class="browseProductImage" id="FlexibleImageParent'. $uniqueID .'" border="0" title="'.$product->product_name.'" ',false,'')); ?> get('category_multi_addpictures',1) and (!empty($product->images[1]))) { ?>
    images as $image) { $ImageId = $i++; ?>
  • images[$ImageId]->displayMediaThumb('class="FlexibleTinyImage" style="max-height:30px; max-width:30px;" rel="FlexibleImageParent'. $uniqueID. '"',false,'',true,false,false,0,0); ?>
get('category_multi_quicklook',1) || $params->get('category_multi_moreinfo',1) || $params->get('category_multi_tinyaddtocart',1)) { ?>
prices['salesPrice']) and ($params->get('category_multi_tinyaddtocart',1))) { $stockhandle = VmConfig::get ('stockhandle', 'none'); if (($stockhandle == 'disableit' or $stockhandle == 'disableadd') and ($product->product_in_stock - $product->product_ordered) < 1) { $button_lbl = JText::_ ('COM_VIRTUEMART_CART_NOTIFY'); $button_cls = 'notify-button'; $button_name = 'notifycustomer'; ?>
prices['salesPrice']) and VmConfig::get('askprice', 1)) { //price is or not check-START $urlNotifyOrAskQuestion = JRoute::_('index.php?option=com_virtuemart&tmpl=component&view=productdetails&task=askquestion&virtuemart_product_id='.$product->virtuemart_product_id.'&virtuemart_category_id='.$product->virtuemart_category_id.''); } else { $urlNotifyOrAskQuestion = JRoute::_ ('index.php?option=com_virtuemart&tmpl=component&view=productdetails&layout=notify&virtuemart_product_id=' . $product->virtuemart_product_id); }//price is or not check-END ? = > ?>
customfieldsSorted['addtocart'])) { ?>
'; } ?>
get('category_multi_quicklook',1)) { ?> product_in_stock - $product->product_ordered) < 1) { ?>style="width:auto;float:none;">
get('category_multi_moreinfo',1)) { ?>
get('category_multi_quicklook',1) && !$params->get('category_multi_tinyaddtocart',1)) { ?> get('category_new','+2 week'); $createddate = strtotime(($product->created_on) . " ".$category_new_timeframe.""); // +1 week can anything you want: +2 week, +1 month, +24 hour so on.. $today = strtotime(date("Y-m-d G:i:s")); //todays date if ($createddate > $today) { $NEWorOLD = "FlexibleNew"; } else { $NEWorOLD = ""; } if ($product->product_special == 1) { $SpecialOrNOT = "FlexibleSpecial"; } else { $SpecialOrNOT = ""; } $DiscountORnot = ''; if(abs($product->prices['discountAmount'])) { $DiscountORnot = "FlexibleDiscount"; } else { $DiscountORnot = ''; } ?>
product_in_stock - $product->product_ordered) < 1) && $params->get('category_soldout',1)) { ?>
get('category_multi_manufac',1)) { $db = JFactory::getDbo(); $query = $db->getQuery(true); $query ->select($db->quoteName('a.file_url')) ->from($db->quoteName('#__virtuemart_medias', 'a')) ->join('INNER', $db->quoteName('#__virtuemart_manufacturer_medias', 'b') . ' ON (' . $db->quoteName('b.virtuemart_manufacturer_id') . ' = '. $product->virtuemart_manufacturer_id[0].')') ->where($db->quoteName('a.virtuemart_media_id') . ' = '.$db->quoteName('b.virtuemart_media_id')); $db->setQuery($query); $results = $db->loadRow(); ?> showRating && $params->get('category_multi_ratings',1)){ echo shopFunctionsF::renderVmSubLayout('rating',array('showRating'=>'showRating', 'product'=>$product)); } ?> get('category_multi_sku',1)) { ?>
: product_sku; ?>
link, $product->product_name, array ('title' => $product->product_name, 'class' => 'FlexibleBrowseProductNameLink' )); ?>
$product,'currency'=>$this->currency)); ?>
products as $product ) // Do we need a final closing row tag? if ($iBrowseCol != 1) { ?>

get('category_pagination_bottom',1)) { ?>
vmPagination->getPagesLinks(); ?>
get('category_results_counter',1)) { ?> vmPagination->getPagesCounter(); ?>
search)) { echo "

".JText::_('COM_VIRTUEMART_SEARCH')."



".JText::_ ('COM_VIRTUEMART_NO_RESULT') . ($this->keyword ? ' : ' . $this->keyword . '' : '')."

"; } else { /* # Text to show in case the category is empty. # for language translation -- create language INI rule, like this: COM_VIRTUEMART_EMPTY_CATEGORY="No product to display" */ // Language Translation (uncomment the below line) //echo '
'.JText::_('COM_VIRTUEMART_EMPTY_CATEGORY') .'
'; //Static Text (uncomment the below line) //echo '
No product to display
'; } ?>