Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Responsive Joomla Virtuemart Template - LightMart (SKU# FLEX-00012)

TOPIC: Problem with manufacturer module. Filter category

Problem with manufacturer module. Filter category 5 years 1 month ago #14464

www.cucutboutique.es/rebajas-ofertas the marcas module don´t work fine that i need. I don´t want that the module filter by category. When an user click over a manufacturer i need that the module see all articles(not filter by category) from the manufacturer.

I change the file templates/flexible_ligtmart/html/mod_virtuemart_manufacturer/default.php and delete the category. You can see the changes on files in the files but don´t work the modification.

Attachment manufacturer.zip not found



I need change the sentence to see all articles of the manufacturer

I need your help

Thanks
The administrator has disabled public write access.

Problem with manufacturer module. Filter category 5 years 3 weeks ago #14490

I am having hard time to understand what you are trying to say.

What happens when you completely disable the LightMart's stylization from Manufacturer module? Rename this folder:
templates/flexible_ligtmart/html/mod_virtuemart_manufacturer/
to
templates/flexible_ligtmart/html/mod_virtuemart_manufacturer2/

and try again. If the result is the same, then it means it is what it is with the official Virtuemart.

Regards.
The administrator has disabled public write access.

Problem with manufacturer module. Filter category 5 years 3 weeks ago #14508

I say it...If i rename to templates/flexible_ligtmart/html/mod_virtuemart_manufacturer2/ when i click one manufacturer the web see all articles of manufacturer appears and if click in url all articles(of all categories appears) but if i work with no rename, your code filter the articles of manufacturer by category and i want that your code not filter by category. i want that your code appear all articles of the manufacturer not only some articles of the manufacturer of one category.

Your code filter the products of one manufacturer and one category and virtuemart not but virtuemart appears one web with the logo and name category and i don´t want to see this web, i´d like to see all product of one manufacturer but not filter by category

Virtuemart(second web when click one manufacturer). Not filter by category

Attachment errorfabricantes1.jpg not found




Your code(filter by category)


Attachment errorfabricantes2.jpg not found




thanks
The administrator has disabled public write access.

Problem with manufacturer module. Filter category 5 years 3 weeks ago #14516

I think i understand what you are saying.

So, let's say, you are visiting this category: "REBAJAS Y OFERTAS", with this URL: www.cucutboutique.es/rebajas-ofertas
- You clicked the Manufacturer Logo:"DOCA",
- the URL becomes: www.cucutboutique.es/rebajas-ofertas/fabricante/bolsos-y-complementos-doca (so it is basically the DECO products under the REBAJAS Y OFERTAS category).
- The same thing applies to Manufacturer Module: "MARCAS"
- But you want to make it DECO products from ALL categories, which has the URL of www.cucutboutique.es/fabricante/bolsos-y-complementos-doca

Is that correct?

If this is your case,

1- open this PHP file:
templates/flexible_ligtmart/html/mod_virtuemart_manufacturer/default.php

2- find these lines
// line #13
$link = JROUTE::_('index.php?option=com_virtuemart&view=category&virtuemart_manufacturer_id=' . $manufacturer->virtuemart_manufacturer_id);
 
// line # 48
$link = JROUTE::_('index.php?option=com_virtuemart&view=category&virtuemart_manufacturer_id=' . $manufacturer->virtuemart_manufacturer_id);

3- Replace them with these (each line individually):
// line #13
$link = JROUTE::_('index.php?option=com_virtuemart&view=category&virtuemart_category_id=0&virtuemart_manufacturer_id=' . $manufacturer->virtuemart_manufacturer_id);
 
// line # 48
$link = JROUTE::_('index.php?option=com_virtuemart&view=category&virtuemart_category_id=0&virtuemart_manufacturer_id=' . $manufacturer->virtuemart_manufacturer_id);


4- Then, open this PHP file:
templates/flexible_ligtmart/html/com_virtuemart/category/default.php

5- Find these lines
 
// line # 285
<div class="FlexibleCategoryManufacturerLogoList"> <a title="<?php echo $product->mf_name; ?>" href="<?php echo JRoute::_('index.php?option=com_virtuemart&view=category&virtuemart_manufacturer_id=' . $product->virtuemart_manufacturer_id[0]); ?>"><?php echo ($results [0]) ? '<img src="'.JURI::root () . $results [0].'" alt="'.$this->product->mf_name.'" />':$product->mf_name; ?></a> </div>
 
// Line # 614
<div class="FlexibleCategoryManufacturerLogoGrid"> <a title="<?php echo $product->mf_name; ?>" href="<?php echo JRoute::_('index.php?option=com_virtuemart&view=category&virtuemart_manufacturer_id=' . $product->virtuemart_manufacturer_id[0]); ?>"><?php echo ($results [0]) ? '<img src="'.JURI::root () . $results [0].'" alt="'.$this->product->mf_name.'" />':$product->mf_name; ?></a> </div>
 
// Line # 929
 <div class="FlexibleCategoryManufacturerLogoGrid"> <a title="<?php echo $product->mf_name; ?>" href="<?php echo JRoute::_('index.php?option=com_virtuemart&view=category&virtuemart_manufacturer_id=' . $product->virtuemart_manufacturer_id[0]); ?>"><?php echo ($results [0]) ? '<img src="'.JURI::root () . $results [0].'" alt="'.$this->product->mf_name.'" />':$product->mf_name; ?></a> </div>
 

6- Replace them with these (each line individually):
 
// line # 285
<div class="FlexibleCategoryManufacturerLogoList"> <a title="<?php echo $product->mf_name; ?>" href="<?php echo JRoute::_('index.php?option=com_virtuemart&view=category&virtuemart_category_id=0&virtuemart_manufacturer_id=' . $product->virtuemart_manufacturer_id[0]); ?>"><?php echo ($results [0]) ? '<img src="'.JURI::root () . $results [0].'" alt="'.$this->product->mf_name.'" />':$product->mf_name; ?></a> </div>
 
// Line # 614
<div class="FlexibleCategoryManufacturerLogoGrid"> <a title="<?php echo $product->mf_name; ?>" href="<?php echo JRoute::_('index.php?option=com_virtuemart&virtuemart_category_id=0&view=category&virtuemart_manufacturer_id=' . $product->virtuemart_manufacturer_id[0]); ?>"><?php echo ($results [0]) ? '<img src="'.JURI::root () . $results [0].'" alt="'.$this->product->mf_name.'" />':$product->mf_name; ?></a> </div>
 
// Line # 929
 <div class="FlexibleCategoryManufacturerLogoGrid"> <a title="<?php echo $product->mf_name; ?>" href="<?php echo JRoute::_('index.php?option=com_virtuemart&virtuemart_category_id=0&view=category&virtuemart_manufacturer_id=' . $product->virtuemart_manufacturer_id[0]); ?>"><?php echo ($results [0]) ? '<img src="'.JURI::root () . $results [0].'" alt="'.$this->product->mf_name.'" />':$product->mf_name; ?></a> </div>
 

Understand the idea? You basically need to &virtuemart_category_id=0 parameter to URL, so it won't be filtered by category.

Regards.
Last Edit: 5 years 3 weeks ago by Support.
The administrator has disabled public write access.
Time to create page: 0.255 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo