Custom VM Category Layout - xml file for Joomla

This forum is for general questions about extensions for Joomla! 3.x.

Moderators: pe7er, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
supplyingdirect
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Mon Nov 29, 2021 3:50 pm

Custom VM Category Layout - xml file for Joomla

Post by supplyingdirect » Thu Jan 20, 2022 2:40 pm

Hi Guys,

I am extremely new to coding and HTML so please bear with me if I don't understand everything straight away!

I have created a custom layout for my VM category page - the reason I have done this is because when we use our CF Filters module to search for products it returns the VM category layout on top of the search result (we don't want this to happen, we just want the search results to show, hence creating a custom layout)

The only issue is, I now don't have any idea what I need to replace in the xml file or delete out. I have added in these lines for custom language

COM_VIRTUEMART_CATEGORY_VIEW_CUSTOM_TITLE

COM_VIRTUEMART_CATEGORY_VIEW_CUSTOM_DESC

But I now don't know what I need to change or get rid of to make the VM Category layout not show on the search results page.

Please see screen shots attached.

Here is full xml file contents:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<metadata>
	<layout title="COM_VIRTUEMART_CATEGORY_VIEW_CUSTOM_TITLE">
		<message><![CDATA[COM_VIRTUEMART_CATEGORY_VIEW_CUSTOM_DESC]]></message>
	</layout>
    <fields name="request" addfieldpath="/administrator/components/com_virtuemart/fields">
        <fieldset name="request" >
    <field name="virtuemart_category_id" type="vmcategory"
                   default="0"
                   label="COM_VIRTUEMART_CATEGORY_FIELD_SELECT_TITLE" required="true"
                   extension="com_virtuemart"
                   description="COM_VIRTUEMART_CATEGORY_FIELD_SELECT_TITLE_DESC" />
            <field name="virtuemart_manufacturer_id" type="manufacturer"
                   default="0"
                   label="COM_VIRTUEMART_MANUFACTURER_FIELD_SELECT_TITLE" required="true"
                   extension="com_virtuemart"
                   description="COM_VIRTUEMART_MANUFACTURER_FIELD_SELECT_TITLE_DESC" />
        </fieldset>
    </fields>
    <fields name="params" addfieldpath="/administrator/components/com_virtuemart/fields">
        <fieldset name="DISPLAY" >

            <field name="storefront" type="radio" default=""
                   label="COM_VIRTUEMART_CATEGORY_FIELD_SELECT_STOREFRONT"
                   extension="com_virtuemart"
                   description="COM_VIRTUEMART_CATEGORY_FIELD_SELECT_STOREFRONT_DESC" >
                <option value="1">JYES</option>
                <option value="0">JNO</option>
            </field>
            <field name="show_store_desc" type="list" default=""
                   label="COM_VIRTUEMART_ADMIN_CFG_SHOW_STORE_DESC"
                   extension="com_virtuemart"
                   description="COM_VIRTUEMART_ADMIN_CFG_SHOW_STORE_DESC_TIP" >
                <option value="">JGLOBAL_USE_GLOBAL</option>
                <option value="0">JNO</option>
                <option value="1">JYES</option>
            </field>
            <field name="categorylayout" type="vmlayout" view="category"
                   label="COM_VIRTUEMART_CATEGORY_FIELD_SELECT_LAYOUT"
                   extension="com_virtuemart"
                   description="COM_VIRTUEMART_CATEGORY_FIELD_SELECT_LAYOUT_DESC" />
            <field name="showcategory_desc" type="list" default=""
                   label="COM_VIRTUEMART_ADMIN_CFG_SHOW_CATEGORYDESC"
                   extension="com_virtuemart"
                   description="COM_VIRTUEMART_ADMIN_CFG_SHOW_CATEGORYDESC_TIP" >
                <option value="">JGLOBAL_USE_GLOBAL</option>
                <option value="0">JNO</option>
                <option value="1">JYES</option>
            </field>
            <field name="showcategory" type="list" default=""
                   label="COM_VIRTUEMART_CATEGORY_FIELD_SELECT_SHOWCAT"
                   extension="com_virtuemart"
                   description="COM_VIRTUEMART_CATEGORY_FIELD_SELECT_SHOWCAT_DESC" >
                <option value="">JGLOBAL_USE_GLOBAL</option>
                <option value="0">JNO</option>
                <option value="1">JYES</option>
            </field>
            <field name="categories_per_row" type="text"
                   label="COM_VIRTUEMART_ADMIN_CFG_CATEGORIES_PER_ROW"
                   extension="com_virtuemart"
                   description="COM_VIRTUEMART_ADMIN_CFG_PER_ROW_TIP" />
            <field name="showproducts" type="list" default=""
                   label="COM_VIRTUEMART_ADMIN_CFG_SHOW_PRODUCTS"
                   extension="com_virtuemart"
                   description="COM_VIRTUEMART_ADMIN_CFG_SHOW_PRODUCTS_TIP" >
                <option value="">JGLOBAL_USE_GLOBAL</option>
                <option value="0">JNO</option>
                <option value="1">JYES</option>
            </field>
            <field name="showsearch" type="list" default=""
                   label="COM_VM_CATEGORY_FIELD_SELECT_SHOWSEARCH"
                   extension="com_virtuemart"
                   description="COM_VM_CATEGORY_FIELD_SELECT_SHOWSEARCH_TIP" >
                <option value="">JGLOBAL_USE_GLOBAL</option>
                <option value="0">JNO</option>
                <option value="1">JYES</option>
            </field>
            <field name="productsublayout" type="vmproductsublayout"
                   label="COM_VIRTUEMART_CFG_PRODUCTS_SUBLAYOUT"
                   extension="com_virtuemart"
                   description="COM_VIRTUEMART_CFG_PRODUCTS_SUBLAYOUT_TIP" />

            <field name="products_per_row" type="text"
                   label="COM_VIRTUEMART_ADMIN_CFG_PRODUCTS_PER_ROW"
                   extension="com_virtuemart"
                   description="COM_VIRTUEMART_ADMIN_CFG_PER_ROW_TIP" />

            <field name="featured" type="list"
                   label="COM_VIRTUEMART_ADMIN_CFG_SHOW_FEATURED"
                   extension="com_virtuemart"
                   description="COM_VIRTUEMART_ADMIN_CFG_SHOW_FEATURED_TIP" >
                <option value="">JGLOBAL_USE_GLOBAL</option>
                <option value="0">JNO</option>
                <option value="1">JYES</option>
            </field>
            <field name="featured_rows" type="text"
                   label="COM_VIRTUEMART_ADMIN_CFG_FEAT_PROD_ROWS"
                   extension="com_virtuemart"
                   description="COM_VIRTUEMART_ADMIN_CFG_PER_ROW_TIP" />

            <field name="discontinued" type="list"
                   label="COM_VIRTUEMART_ADMIN_CFG_SHOW_DISCONTINUED"
                   extension="com_virtuemart"
                   description="COM_VIRTUEMART_ADMIN_CFG_SHOW_DISCONTINUED_TIP" >
                <option value="">JGLOBAL_USE_GLOBAL</option>
                <option value="0">JNO</option>
                <option value="1">JYES</option>
            </field>
            <field name="discontinued_rows" type="text"
                   label="COM_VIRTUEMART_ADMIN_CFG_DISC_PROD_ROWS"
                   extension="com_virtuemart"
                   description="COM_VIRTUEMART_ADMIN_CFG_PER_ROW_TIP" />

            <field name="latest" type="list"
                   label="COM_VIRTUEMART_ADMIN_CFG_SHOW_LATEST"
                   extension="com_virtuemart"
                   description="COM_VIRTUEMART_ADMIN_CFG_SHOW_LATEST_TIP" >
                <option value="">JGLOBAL_USE_GLOBAL</option>
                <option value="0">JNO</option>
                <option value="1">JYES</option>
            </field>
            <field name="latest_rows" type="text"
                   label="COM_VIRTUEMART_ADMIN_CFG_LAT_PROD_ROWS"
                   extension="com_virtuemart"
                   description="COM_VIRTUEMART_ADMIN_CFG_PER_ROW_TIP" />

            <field name="topten" type="list"
                   label="COM_VIRTUEMART_ADMIN_CFG_SHOW_TOPTEN"
                   extension="com_virtuemart"
                   description="COM_VIRTUEMART_ADMIN_CFG_SHOW_TOPTEN_TIP" >
                <option value="">JGLOBAL_USE_GLOBAL</option>
                <option value="0">JNO</option>
                <option value="1">JYES</option>
            </field>
            <field name="topten_rows" type="text"
                   label="COM_VIRTUEMART_ADMIN_CFG_TOPTEN_PROD_ROWS"
                   extension="com_virtuemart"
                   description="COM_VIRTUEMART_ADMIN_CFG_PER_ROW_TIP" />

            <field name="recent" type="list"
                   label="COM_VIRTUEMART_ADMIN_CFG_SHOW_RECENT"
                   extension="com_virtuemart"
                   description="COM_VIRTUEMART_ADMIN_CFG_SHOW_RECENT_TIP" >
                <option value="">JGLOBAL_USE_GLOBAL</option>
                <option value="0">JNO</option>
                <option value="1">JYES</option>
            </field>
            <field name="recent_rows" type="text"
                   label="COM_VIRTUEMART_ADMIN_CFG_REC_PROD_ROWS"
                   extension="com_virtuemart"
                   description="COM_VIRTUEMART_ADMIN_CFG_PER_ROW_TIP" />
        </fieldset>
        <fieldset name="STOREFRONT" >
            <field name="COM_VIRTUEMART_STOREFRONT_HELP" type="vmhelptext"
                   label="COM_VIRTUEMART_STOREFRONT_HELP_TITLE"
                   description="COM_VIRTUEMART_STOREFRONT_HELP_DESC" />
            <field name="stf_itemid" type="text"
                   label="COM_VIRTUEMART_CATEGORY_FIELD_SELECT_ITEMID"
                   extension="com_virtuemart"
                   description="COM_VIRTUEMART_CATEGORY_FIELD_SELECT_ITEMID_TIP" />
            <field name="stf_categorylayout" type="vmlayout" view="category"
                   label="COM_VIRTUEMART_CATEGORY_FIELD_SELECT_LAYOUT"
                   extension="com_virtuemart"
                   description="COM_VIRTUEMART_CATEGORY_FIELD_SELECT_LAYOUT_DESC" />
            <field name="stf_show_store_desc" type="list" default=""
                   label="COM_VIRTUEMART_ADMIN_CFG_SHOW_STORE_DESC"
                   extension="com_virtuemart"
                   description="COM_VIRTUEMART_ADMIN_CFG_SHOW_STORE_DESC_TIP" >
                <option value="">JGLOBAL_USE_GLOBAL</option>
                <option value="0">JNO</option>
                <option value="1">JYES</option>
            </field>
            <field name="stf_showcategory_desc" type="list"
                   label="COM_VIRTUEMART_ADMIN_CFG_SHOW_CATEGORYDESC"
                   extension="com_virtuemart"
                   description="COM_VIRTUEMART_ADMIN_CFG_SHOW_CATEGORYDESC_TIP" >
                <option value="">JGLOBAL_USE_GLOBAL</option>
                <option value="0">JNO</option>
                <option value="1">JYES</option>
            </field>
            <field name="stf_showcategory" type="list"
                   label="COM_VIRTUEMART_CATEGORY_FIELD_SELECT_SHOWCAT"
                   extension="com_virtuemart"
                   description="COM_VIRTUEMART_CATEGORY_FIELD_SELECT_SHOWCAT_DESC" >
                <option value="">JGLOBAL_USE_GLOBAL</option>
                <option value="0">JNO</option>
                <option value="1">JYES</option>
            </field>
            <field name="stf_categories_per_row" type="text"
                   label="COM_VIRTUEMART_ADMIN_CFG_CATEGORIES_PER_ROW"
                   extension="com_virtuemart"
                   description="COM_VIRTUEMART_ADMIN_CFG_PER_ROW_TIP" />
            <field name="stf_showproducts" type="list" default=""
                   label="COM_VIRTUEMART_ADMIN_CFG_SHOW_PRODUCTS"
                   extension="com_virtuemart"
                   description="COM_VIRTUEMART_ADMIN_CFG_SHOW_PRODUCTS_TIP" >
                <option value="">JGLOBAL_USE_GLOBAL</option>
                <option value="0">JNO</option>
                <option value="1">JYES</option>
            </field>
            <field name="stf_showsearch" type="list"
                   label="COM_VM_CATEGORY_FIELD_SELECT_SHOWSEARCH"
                   extension="com_virtuemart"
                   description="COM_VM_CATEGORY_FIELD_SELECT_SHOWSEARCH_TIP" >
                <option value="">JGLOBAL_USE_GLOBAL</option>
                <option value="0">JNO</option>
                <option value="1">JYES</option>
            </field>
            <field name="stf_productsublayout" type="vmproductsublayout"
                   label="COM_VIRTUEMART_CFG_PRODUCTS_SUBLAYOUT"
                   extension="com_virtuemart"
                   description="COM_VIRTUEMART_CFG_PRODUCTS_SUBLAYOUT_TIP" />
            <field name="stf_products_per_row" type="text"
                   label="COM_VIRTUEMART_ADMIN_CFG_PRODUCTS_PER_ROW"
                   extension="com_virtuemart"
                   description="COM_VIRTUEMART_ADMIN_CFG_PER_ROW_TIP" />

            <field name="stf_featured" type="list"
                   label="COM_VIRTUEMART_ADMIN_CFG_SHOW_FEATURED"
                   extension="com_virtuemart"
                   description="COM_VIRTUEMART_ADMIN_CFG_SHOW_FEATURED_TIP" >
                <option value="">JGLOBAL_USE_GLOBAL</option>
                <option value="0">JNO</option>
                <option value="1">JYES</option>
            </field>
            <field name="stf_featured_rows" type="text"
                   label="COM_VIRTUEMART_ADMIN_CFG_FEAT_PROD_ROWS"
                   extension="com_virtuemart"
                   description="COM_VIRTUEMART_ADMIN_CFG_PER_ROW_TIP" />

            <field name="stf_discontinued" type="list"
                   label="COM_VIRTUEMART_ADMIN_CFG_SHOW_DISCONTINUED"
                   extension="com_virtuemart"
                   description="COM_VIRTUEMART_ADMIN_CFG_SHOW_DISCONTINUED_TIP" >
                <option value="">JGLOBAL_USE_GLOBAL</option>
                <option value="0">JNO</option>
                <option value="1">JYES</option>
            </field>
            <field name="stf_discontinued_rows" type="text"
                   label="COM_VIRTUEMART_ADMIN_CFG_DISC_PROD_ROWS"
                   extension="com_virtuemart"
                   description="COM_VIRTUEMART_ADMIN_CFG_PER_ROW_TIP" />

            <field name="stf_latest" type="list"
                   label="COM_VIRTUEMART_ADMIN_CFG_SHOW_LATEST"
                   extension="com_virtuemart"
                   description="COM_VIRTUEMART_ADMIN_CFG_SHOW_LATEST_TIP" >
                <option value="">JGLOBAL_USE_GLOBAL</option>
                <option value="0">JNO</option>
                <option value="1">JYES</option>
            </field>
            <field name="stf_latest_rows" type="text"
                   label="COM_VIRTUEMART_ADMIN_CFG_LAT_PROD_ROWS"
                   extension="com_virtuemart"
                   description="COM_VIRTUEMART_ADMIN_CFG_PER_ROW_TIP" />

            <field name="stf_topten" type="list"
                   label="COM_VIRTUEMART_ADMIN_CFG_SHOW_TOPTEN"
                   extension="com_virtuemart"
                   description="COM_VIRTUEMART_ADMIN_CFG_SHOW_TOPTEN_TIP" >
                <option value="">JGLOBAL_USE_GLOBAL</option>
                <option value="0">JNO</option>
                <option value="1">JYES</option>
            </field>
            <field name="stf_topten_rows" type="text"
                   label="COM_VIRTUEMART_ADMIN_CFG_TOPTEN_PROD_ROWS"
                   extension="com_virtuemart"
                   description="COM_VIRTUEMART_ADMIN_CFG_PER_ROW_TIP" />

            <field name="stf_recent" type="list"
                   label="COM_VIRTUEMART_ADMIN_CFG_SHOW_RECENT"
                   extension="com_virtuemart"
                   description="COM_VIRTUEMART_ADMIN_CFG_SHOW_RECENT_TIP" >
                <option value="">JGLOBAL_USE_GLOBAL</option>
                <option value="0">JNO</option>
                <option value="1">JYES</option>
            </field>
            <field name="stf_recent_rows" type="text"
                   label="COM_VIRTUEMART_ADMIN_CFG_REC_PROD_ROWS"
                   extension="com_virtuemart"
                   description="COM_VIRTUEMART_ADMIN_CFG_PER_ROW_TIP" />
        </fieldset>
	</fields>
</metadata>


I thought it was going to be as simple as deleting out what I don't need but that hasn't worked so I must be doing something completely wrong.


I would really appreciate any help any of you can give as our website is finished apart from this last issue I can't quite figure out!! It's driving me a bit insane.

Thanks,

Lydia
You do not have the required permissions to view the files attached to this post.
Last edited by toivo on Fri Jan 21, 2022 8:00 am, edited 1 time in total.
Reason: mod note: moved from 4.x Language

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 14580
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: Custom VM Category Layout - xml file for Joomla

Post by toivo » Fri Jan 21, 2022 8:03 am

Mod note: Both CF Filters and VirtueMart are Joomla 3.x extensions. Therefore this topic was moved here.
Toivo Talikka, Global Moderator

niosme
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Thu Jan 20, 2022 10:50 am

Re: Custom VM Category Layout - xml file for Joomla

Post by niosme » Fri Jan 21, 2022 8:13 am

Hello Lydia,

That you need is not to show the category filter on the left and the tag on top? and just show the other filters?
For CF filters and every module you can achieve that with .css and if you cant accomplish that like this then you should try to do ovewrites.
For CF filters from breakdesign just add this on custom.css of template to hide the left category layout
div[id^="cf_flt_wrapper_virtuemart_category"]{ display:none;}
and add this line also to hide the first tag which is usually the category tag on main content:
.cf_breadcrumbs_wrapper .cf_tag:first-child{ display:none; }

The thing you should do is to make a ticket or ask a question to the developer of the component/module to help you out.

supplyingdirect
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Mon Nov 29, 2021 3:50 pm

Re: Custom VM Category Layout - xml file for Joomla

Post by supplyingdirect » Fri Jan 21, 2022 1:20 pm

Hi niosme,

Thank you for your quick response but not quite what I'm after

Let me explain a bit better..

When you go to our website http://timb114.sg-host.com/home

And go to the search bar which sits in the nav bar and search for: SFD3216 click enter..

The result of the search shows at the bottom of the page, underneath the VM category layout. (Please see screen shots attached)

So far I have done the following...

1. Created a custom.php file and custom.xml file in joomla files > VM folder > components > com_virtuemart > views > category >tmpl

2. Edited xml file by replacing and adding the following....

COM_VIRTUEMART_CATEGORY_VIEW_CUSTOM_TITLE+COM_VIRTUEMART_CATEGORY_VIEW_CUSTOM_DESC

3. Created language override

4. Copied customtemplate.php file from Templates > yoothemepro > html >com_virtuemart >category and pasted into VM folder > components > com_virtuemart > views > category >tmpl


Now that I have done this I realise that it is actually the customlayout.php file which I need to edit as this is the template view copy but I haven't got much knowledge on what I need to add or edit in the customlayout.php file (please see code below)


Code: Select all

defined ('_JEXEC') or die('Restricted access');

if (vRequest::getInt('dynamic',false) and vRequest::getInt('virtuemart_product_id',false)) {
	if (!empty($this->products)) {
		if($this->fallback){
			$p = $this->products;
			$this->products = array();
			$this->products[0] = $p;
			vmdebug('Refallback');
		}

		echo shopFunctionsF::renderVmSubLayout($this->productsLayout,array('products'=>$this->products,'currency'=>$this->currency,'products_per_row'=>$this->perRow,'showRating'=>$this->showRating));

	}

	return ;
}
?> <div class="category-view"> <?php
$js = "
jQuery(document).ready(function () {
	jQuery('.orderlistcontainer').hover(
		function() { jQuery(this).find('.orderlist').stop().show()},
		function() { jQuery(this).find('.orderlist').stop().hide()}
	)
});
";
vmJsApi::addJScript('vm-hover',$js);

if ($this->show_store_desc and !empty($this->vendor->vendor_store_desc)) { ?>
	<div class="vendor-store-desc">
		<?php echo $this->vendor->vendor_store_desc; ?>
	</div>
<?php }

if (!empty($this->showcategory_desc) and empty($this->keyword)){
	if(!empty($this->category)) {
	?>
<div class="category_description">
	<?php echo $this->category->category_description; ?>
</div>
<?php }
	if(!empty($this->manu_descr)) {
		?>
        <div class="manufacturer-description">
			<?php echo $this->manu_descr; ?>
        </div>
	<?php }
}

// Show child categories
if ($this->showcategory and empty($this->keyword)) {
	if (!empty($this->category->haschildren)) {
		echo ShopFunctionsF::renderVmSubLayout('categories',array('categories'=>$this->category->children, 'categories_per_row'=>$this->categories_per_row));
	}
}

if (!empty($this->products) or ($this->showsearch or $this->keyword !== false)) {
?>
<div class="browse-view">
<?php

if ($this->showsearch or $this->keyword !== false) {
	//id taken in the view.html.php could be modified
	$category_id  = vRequest::getInt ('virtuemart_category_id', 0); ?>

	<!--BEGIN Search Box -->
	<div class="virtuemart_search">
		<form action="<?php echo JRoute::_ ('index.php?option=com_virtuemart&view=category&limitstart=0', FALSE); ?>" method="get">
			<?php if(!empty($this->searchCustomList)) { ?>
			<div class="vm-search-custom-list">
				<?php echo $this->searchCustomList ?>
			</div>
			<?php } ?>

			<?php if(!empty($this->searchCustomValuesAr)) { ?>
			<div class="vm-search-custom-values">
				<?php
                echo ShopFunctionsF::renderVmSubLayoutAsGrid(
                    'searchcustomvalues',
                    array (
                        'searchcustomvalues' => $this->searchCustomValuesAr,
                        'options' => array (
                            'items_per_row' => array (
                                'xs' => 2,
                                'sm' => 2,
                                'md' => 2,
                                'lg' => 2,
                                'xl' => 2,
                            ),
                        ),
                    )
                );
                ?>
			</div>
			<?php } ?>
			<div class="vm-search-custom-search-input">
				<input name="keyword" class="inputbox" type="text" size="40" value="<?php echo $this->keyword ?>"/>
				<input type="submit" value="<?php echo vmText::_ ('COM_VIRTUEMART_SEARCH') ?>" class="button" onclick="this.form.keyword.focus();"/>
				<?php //echo VmHtml::checkbox ('searchAllCats', (int)$this->searchAllCats, 1, 0, 'class="changeSendForm"'); ?>
				<span class="vm-search-descr"> <?php echo vmText::_('COM_VM_SEARCH_DESC') ?></span>
			</div>

			<!-- input type="hidden" name="showsearch" value="true"/ -->
			<input type="hidden" name="view" value="category"/>
			<input type="hidden" name="option" value="com_virtuemart"/>
			<input type="hidden" name="virtuemart_category_id" value="<?php echo $category_id; ?>"/>
			<input type="hidden" name="Itemid" value="<?php echo $this->Itemid; ?>"/>
		</form>
	</div>
	<!-- End Search Box -->
<?php
	/*if($this->keyword !== false){
		?><h3><?php echo vmText::sprintf('COM_VM_SEARCH_KEYWORD_FOR', $this->keyword); ?></h3><?php
	}*/
	$j = 'jQuery(document).ready(function() {

jQuery(".changeSendForm")
	.off("change",Virtuemart.sendCurrForm)
    .on("change",Virtuemart.sendCurrForm);
})';

	vmJsApi::addJScript('sendFormChange',$j);
} ?>

<?php // Show child categories

if(!empty($this->orderByList)) { ?>
<div class="orderby-displaynumber">
	<div class="floatleft vm-order-list">
		<?php echo $this->orderByList['orderby']; ?>
		<?php echo $this->orderByList['manufacturer']; ?>
	</div>
	<div class="vm-pagination vm-pagination-top">
		<?php echo $this->vmPagination->getPagesLinks (); ?>
		<span class="vm-page-counter"><?php echo $this->vmPagination->getPagesCounter (); ?></span>
	</div>
	<div class="floatright display-number"><?php echo $this->vmPagination->getResultsCounter ();?><br/><?php echo $this->vmPagination->getLimitBox ($this->category->limit_list_step); ?></div>

	<div class="clear"></div>
</div> <!-- end of orderby-displaynumber -->
<?php } ?>

<?php if (!empty($this->category->category_name)) { ?>
<h1><?php echo vmText::_($this->category->category_name); ?></h1>
<?php } ?>

	<?php
	if (!empty($this->products)) {
		//revert of the fallback in the view.html.php, will be removed vm3.2
		if($this->fallback){
			$p = $this->products;
			$this->products = array();
			$this->products[0] = $p;
			vmdebug('Refallback');
		}

	echo shopFunctionsF::renderVmSubLayout($this->productsLayout,array('products'=>$this->products,'currency'=>$this->currency,'products_per_row'=>$this->perRow,'showRating'=>$this->showRating));

	if(!empty($this->orderByList)) { ?>
		<div class="vm-pagination vm-pagination-bottom"><?php echo $this->vmPagination->getPagesLinks (); ?><span class="vm-page-counter"><?php echo $this->vmPagination->getPagesCounter (); ?></span></div>
	<?php }
} elseif ($this->keyword !== false) {
	echo vmText::_ ('COM_VIRTUEMART_NO_RESULT') . ($this->keyword ? ' : (' . $this->keyword . ')' : '');
}
?>
</div>

<?php } ?>
</div>

<?php
if(VmConfig::get ('ajax_category', false)){
	$j = "Virtuemart.container = jQuery('.category-view');
	Virtuemart.containerSelector = '.category-view';";

	/*$j = "Virtuemart.container = jQuery('.main');
	Virtuemart.containerSelector = '.main';";*/

	vmJsApi::addJScript('ajax_category',$j);
	vmJsApi::jDynUpdate();
}
?>
<!-- end browse-view -->



So all I need in this custom view is the search results not the category layout as well.

Break Designs custom filters module automatically sets up search results page with vm category layout which is then why I need to set up a alternative layout for this.

I hope this makes more sense.

Thank you,

Lydia
You do not have the required permissions to view the files attached to this post.


Post Reply

Return to “Extensions for Joomla! 3.x”