News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

which template for $manufacturerProductsURL

Started by barbara, June 26, 2020, 05:55:29 AM

Previous topic - Next topic

barbara

I am trying to find the template/view /layout that is loaded when the $manufacturerProductsURL link is called in the manufacturers details page.

This would be the page that loads all the products of a specific manufacturer

any assistance would be greatly appreciated.

Ghost

It's a category page with manufacturer filter applied (layout files in components/com_virtuemart/views/category/).

PRO

#2

products sublayout is the list of products , it just has a manufacturer filter applied, and a category id of 0

barbara

trying to wrap my head around this re both

' with the products   Sublayout as the list'

and

'It's a category page with manufacturer filter applied (layout files in components/com_virtuemart/views/category/).'

are you saying that the same template loads the categories as the manufacturers browse pages?

I am happy with how my cartegory browse pages load - it is the manufacturers browse page I`m having trouble with - specifically, above all the manufacturers' products there is a list of categories - I need to remove that (see image)

is there a way to do that without affecting the actual category browse page?

PRO

views/category/default
this should work.


ORIGINAL:::
// 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));
   }
}

I added " $man_id  = vRequest::getInt ('virtuemart_manufacturer_id', 0);"
then added "and ($man_id>==0)"



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

barbara

thanks for the suggestion - unfortunatey it does not seem to be having an effect

i had overrides already on the views/category/default.php file - saved as

mytemplate/html/com_virtuemart/category/default.php

is that the same file you are referencing?

it seems very weird to me that product categories and manufacturers would share the same layout file


Jörgen

As jjc Said both display products in the end, using the sublayout for products. And yes you should edit the overridden File.

Jörgen
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

PRO

Quote from: barbara on August 28, 2020, 00:58:28 AM
mytemplate/html/com_virtuemart/category/default.php
is that the same file you are referencing?
it seems very weird to me that product categories and manufacturers would share the same layout file

Yes, thats the file.

what categories are showing? are they top level categories? or manufacturer subcategories?


barbara

they are top level categories

I have not set up any 'manufacturer categories

barbara

thank you - your fix did work I had a caching issue

your help is greatly appreciated!

PRO