This is a Bestsellers, Latest and Specials module filtered by the category that is currently being viewed. It falls back to the standard 'global' bestsellers,latest and specials if you are not looking at a category page.
All the clever stuff is done in the background, all you do is set the modules and the extension does the rest. It automatically scans for the category that the customer is looking at and selects products from that category to display.
If the module is placed on a Top category which has no products in it then it will get the products from the sub-categories and display thos instead. This update will work with ‘Top’ categories only. What it does:
Demo now availble here
- Gets the category id
- Tests the category id to see if it is a ‘Top’ category
- Does the standard query to get the products in the category and displays them (if there are any to display)
- If there are no products to display and the category is a ‘Top’ category then:
- Queries for child categories of the current top category
- Adds all the products in all the child categories
- Randomizes the product list
- Selects the first x products (where x is the limit set in the module)
- If there are no products to display from a subcategory and/or the category is not ‘Top’ then displays the default list.
Just work your way through the categories and you'll see it working.
This is completely seperate from the default bestsellers,specials and latest modules and the fallback to the global bestsellers, special and latest products uses its own cache so that you can set a different limit on this module and it won't affect the display of the standard module.
It's also been made as a seperate module so that it can be easily modified to fit your theme without disturbing any other modules.
No file modifications required - just upload and go.
Upto OC 2.3.x Requires vQmod
OC 3.x install using the extension installer.
IF YOU NEED ASK SOMETHING THEN PLEASE USE THIS LINK FOR PRE-SALES ENQUIRIES OR SUPPORT: EMAIL SUPPORT