Simple mod that hides empty categories on front-end
Tested on 1.5.x
This mod is currently not compatible with the following mods
subcat_images
remove category counts
Working on a solution
Tested on 1.5.x
This mod is currently not compatible with the following mods
subcat_images
remove category counts
Working on a solution
Not sure what or how the accordion menu is.
However, if you look at the code in the vqmod xml, it should be quite self explanatory on what you need to do.
It basically uses conditional statements to see if category count is greater than zero.
However, if you look at the code in the vqmod xml, it should be quite self explanatory on what you need to do.
It basically uses conditional statements to see if category count is greater than zero.
uksitebuilder wrote:Simple mod that hides empty categories on front-end
Tested on 1.5.x
This mod is currently not compatible with the following mods
subcat_images
remove category counts
Working on a solution
Any chanse that you made it work with remove category counts?
Great VQmod!
+1 for update to work with hidden category counts.
I removed the count by removing
from three locations of the mod.
Looks like its still working okay.
And thanks uksitebuilder, great mod. One less job for the client.
Code: Select all
. ' (' . $product_total . ')'
Looks like its still working okay.
And thanks uksitebuilder, great mod. One less job for the client.
I am using 1.5.4 and the mod hides some of my categories that do have products in it. They are all parent categories where only the sub categories have products in them. I have another mod that shows all the product in the parent that is in the sub categories, but even after removing that the problem persists.
Is this maybe incompatible with 1.5.4?
Is this maybe incompatible with 1.5.4?
Please could you advise if there is a version of this which works with version 1.5.4?uksitebuilder wrote:Simple mod that hides empty categories on front-end
Tested on 1.5.x
This mod is currently not compatible with the following mods
subcat_images
remove category counts
Working on a solution
Thanks in advance,
Mike
It's very very helpful!! Make shopping experience better!! LOVE IT and works perfect on 1.5.4.1
1.5.3.1 and it hides all categories, empty or not.
error says:
AND I HAVE FINALY MADE IT WORK.
For the first two operations in vqmod, I have put Index 1 value, but also for third operation I have changed Offset from 3 to 5 and added one closing middle bracket in modification line.
Thank you UKSB!
error says:
Code: Select all
PHP Notice: Undefined variable: product_total in /home/.../public_html/vqmod/vqcache/vq2-catalog_controller_module_category.php on line 67
For the first two operations in vqmod, I have put Index 1 value, but also for third operation I have changed Offset from 3 to 5 and added one closing middle bracket in modification line.
Thank you UKSB!
Hi,
Syntax looks quite ok, but I am getting this error when adding the xml in OC 1.5.6:
Parse error: syntax error, unexpected T_DOUBLE_ARROW in /home/levetotc/public_html/vqmod/vqcache/vq2-catalog_controller_product_category.php on line 390
Any clue?
Thx.
Syntax looks quite ok, but I am getting this error when adding the xml in OC 1.5.6:
Parse error: syntax error, unexpected T_DOUBLE_ARROW in /home/levetotc/public_html/vqmod/vqcache/vq2-catalog_controller_product_category.php on line 390
Any clue?
Thx.
Hello,
it works, but it shows double main category in the top.
I am using opencart 1.5.4.1 and custome theme. Can not find what caused this.
it works, but it shows double main category in the top.
I am using opencart 1.5.4.1 and custome theme. Can not find what caused this.
Selling Kristik - Jasa Foto Aura - Kapas Vapor - supplier baju anak -
Tiny bug, I had a category enabled but not assigned to the top menu or given a parent category and I got a:
Notice: Undefined variable: product_total in /home/*/public_html/vqmod/vqcache/vq2-catalog_controller_module_category.php on line 64
I know, why would you do that? I'm an idiot. Took me an evening to track down the error to this excellent and very useful VQMod combined with a very particular category setup.
Thanks for creating this UKSB.
Notice: Undefined variable: product_total in /home/*/public_html/vqmod/vqcache/vq2-catalog_controller_module_category.php on line 64
I know, why would you do that? I'm an idiot. Took me an evening to track down the error to this excellent and very useful VQMod combined with a very particular category setup.
Thanks for creating this UKSB.
Who is online
Users browsing this forum: No registered users and 79 guests