News:

Looking for documentation? Take a look on our wiki

Main Menu

Show Products of 2 Categories

Started by Sascha_RT, July 15, 2014, 20:12:04 PM

Previous topic - Next topic

Sascha_RT

Hey everybody,
I tried to solve that problem by myself, and searched the internet, but i couldn't find a solution. Maybe someone here can help me.

I'm trying to build a shop for car parts.
My products are build for a specific car and beside that belong to a main category, e.g. engine, exhaust, interior, wheels, ....
What i like to do now, get all products that belong to one category: car#1 and another category: exhaust.
So if the customer looks at the list of all products for a specific car, he can select one of the main categories to shorten the list.

I hope that explains my problem and someone can help me!

GJC Web Design

How we did it on http://www.suzistore.com.au/ was

car-type 
         - car model
                - exhaust
                - brakes
                   etc

and just add any part to all the categories it fits in  (e.g. some brake parts fit multiple models)

so I guess extend this idea to a 2nd root Parts

parts
      -  exhaust
      - brakes
      - etc
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

Sascha_RT

Thank you for your answer!

In your example I have to create exhaust, engine, etc for every car model. I was hoping to create it only once and put the parts in this category

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

balai

I would use categories for a main taxonomy e.g. car type, car model
and custom fields for the others
The role of the custom fields is to give additional properies to the products.

Then with an extension like custom filters you can filter your products

GJC Web Design

the reason we used a full category schema is we update stock and create if nesscesary new categories and products hourly from a central database -

it may seem like a lot of work but it is just a once off..
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

Sascha_RT

Thank you for your replies!

I think the only Way to go is
- car1
    - model 1
       - exhaust
       - interior
    - model 2
       - exhaust
       - interior
- car2
    - model 1
       - exhaust
       - interior
    - model 2
       - exhaust
       - interior


It's more work. But it works.
Thanks again!

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