News:

Looking for documentation? Take a look on our wiki

Main Menu

More categories in a single page

Started by fabioweb, October 01, 2016, 12:35:10 PM

Previous topic - Next topic

fabioweb

Hello guys,
In virtuemart demo frontend i can see these two categories:

http://demo.virtuemart.net/wear/lady
http://demo.virtuemart.net/wear/mister

My question is: How can we merge "Lady" product and "Mister" product in order to get on the same page Wear:

Mister
____________________

T-Shirt classic blue - Dress Shirt with tie - Zipper pullover

Lady
___________________

Skirt "Knock-Rock" - T-Shirt classic blue - etc...

Thank you!








GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

fabioweb

So i have to replace the original code with this? Where?



if ($virtuemart_category_id > 0) {
$joinCategory = TRUE;
if(true){
$where[] = ' `pc`.`virtuemart_category_id` = ' . $virtuemart_category_id;
} else {
/*GJC add subcat products*/
$catmodel = VmModel::getModel ('category');
$childcats = $catmodel->getChildCategoryList(1, $virtuemart_category_id,null, null, true);
$cats = $virtuemart_category_id;
foreach($childcats as $childcat){
$cats .= ','.$childcat->virtuemart_category_id;
}
$joinCategory = TRUE;
$where[] = ' `pc`.`virtuemart_category_id` IN ('.$cats.') ';
}



Thank you

GJC Web Design

the code is already there!

administrator\components\com_virtuemart\models\product.php  -> set to false to enable the 2nd condition
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

fabioweb

Ok thank you!
here i'm rendering all "Camere" subcategories: http://seratadigala.tioitalia.it/it/camere

Is it possible to display also title category?
"Camere Standard" and 4 products
<br/>
"Camere Junior" and 1 product

regards!