I don't know what you are asking me here??maccadon wrote:I also get an error:
I modified the the category with this code to display category imagesCode: Select all
Undefined variable: product_total in ../vqmod/vqcache/vq2-catalog_controller_product_category.php on line 328
Code: Select all
../catalog/controller/product/category.php $product_total = $this->model_catalog_product->getTotalProducts($data); $image = $this->model_tool_image->resize($result['image'], 60, 60); $this->data['categories'][] = array( 'name' => $result['name'] . ' (' . $product_total . ')', 'href' => $this->url->link('product/category', 'path=' . $this->request->get['path'] . '_' . $result['category_id'] . $url), 'thumb' => $image ); }
Code: Select all
../catalog/view/theme/YOURTHEME/template/product/category.tpl <?php if ($categories) { ?> <div class="box"> <div class="box-heading"><?php echo $text_refine; ?></div> <div class="box-content"> <div class="box-product"> <?php foreach ($categories as $category) { ?> <div> <?php if ($category['thumb']) { ?> <div class="image"> <a href="<?php echo $category['href']; ?>"><img src="<?php echo $category['thumb']; ?>" alt="<?php echo $category['name']; ?>" /></a> </div> <?php } ?> <div><a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a></div></div> <?php } ?> </div> </div> </div> <?php } ?>
I'll send a PM.
Google Analytics Expert - Advanced e-commerce tracking, Product & options reporting, transaction/conversion reporting, Google Adwords conversion & profit reporting, goal & funnel reporting, event tracking, site search tracking, multi-store compatibility, EU Cookie Law compliance and works with any theme or checkout! Easy vqmod install. Get it here
SEARCH NOT FOUND (ABORTING MOD): $child['name'] = $child['name'] . ' (' . $product_total . ')';
I've been looking for this code in catalog/controller/module/category.php but it isn't there. I've also looked through my other mods and no one are modifing the same code. Is there anything wrong with the code in your mod?
I'm running OC 1.5.1.3.
I've sent a PM with the latest filethbr02 wrote:I can't get this mod working. I get the following error in the vqmod.log file:
SEARCH NOT FOUND (ABORTING MOD): $child['name'] = $child['name'] . ' (' . $product_total . ')';
I've been looking for this code in catalog/controller/module/category.php but it isn't there. I've also looked through my other mods and no one are modifing the same code. Is there anything wrong with the code in your mod?
I'm running OC 1.5.1.3.
Google Analytics Expert - Advanced e-commerce tracking, Product & options reporting, transaction/conversion reporting, Google Adwords conversion & profit reporting, goal & funnel reporting, event tracking, site search tracking, multi-store compatibility, EU Cookie Law compliance and works with any theme or checkout! Easy vqmod install. Get it here
Just purchased your mod, quick question though. Your description says the following:
There are now two versions of this contained in separate vqmods.
"One will remove all product counts as well as hide sub categories from the category module (useful for stores with lots of sub categories).
The other will remove all product counts but keep the sub categories showing in the category module."
However the mod I just downloaded only has one file. Am I missing something here! Going to try with this one file and will get back to you. Looks like an awesome mod!
Thanks
I attached my category.php if anyone can tell me what I have to change? Thank you so much!
Attachments
Parse error: syntax error, unexpected T_ELSE, expecting T_FUNCTION in /home/content/02/4740502/html/vqmod/vqcache/vq2-catalog_controller_product_category.php on line 368
I have subcategory images installed also.
So the other extension you have installed is conflicting with this one?keether wrote:I sent a PM 3 days ago AND posted in this forum. Havnt heard a thing
What happens when you remove the other extension?
Google Analytics Expert - Advanced e-commerce tracking, Product & options reporting, transaction/conversion reporting, Google Adwords conversion & profit reporting, goal & funnel reporting, event tracking, site search tracking, multi-store compatibility, EU Cookie Law compliance and works with any theme or checkout! Easy vqmod install. Get it here
Please send me a PM with a URL so I can look at it for you. It's probably conflicting with the custom theme or the sub category images modgti2756 wrote:I just purchased this and uploaded. I still see the product counts everywhere though. I am using the sellegance theme and I had added sub category images in category.php so that may be interfering?
I attached my category.php if anyone can tell me what I have to change? Thank you so much!
Google Analytics Expert - Advanced e-commerce tracking, Product & options reporting, transaction/conversion reporting, Google Adwords conversion & profit reporting, goal & funnel reporting, event tracking, site search tracking, multi-store compatibility, EU Cookie Law compliance and works with any theme or checkout! Easy vqmod install. Get it here
I will pm you FTP if you need it.
Thanks
Code: Select all
vq2-catalog_controller_product_category.php
Google Analytics Expert - Advanced e-commerce tracking, Product & options reporting, transaction/conversion reporting, Google Adwords conversion & profit reporting, goal & funnel reporting, event tracking, site search tracking, multi-store compatibility, EU Cookie Law compliance and works with any theme or checkout! Easy vqmod install. Get it here
I have the same conflict as keether (sub category images) - I've pm'd you the same file you requested from him.
I've temporarily removed the xml file so I can continue to work on the site.
Thanks and look forward to hearing from you.
1.5.2 added the option to set product count from the category module configuration area for the module count
1.5.3 added the option to set product count for the top category menu in the system->setting->server tab
So you wont need this script in future versions.
Google Analytics Expert - Advanced e-commerce tracking, Product & options reporting, transaction/conversion reporting, Google Adwords conversion & profit reporting, goal & funnel reporting, event tracking, site search tracking, multi-store compatibility, EU Cookie Law compliance and works with any theme or checkout! Easy vqmod install. Get it here
Users browsing this forum: No registered users and 25 guests