Post by bigmuz » Wed Mar 14, 2012 11:40 am

Thanks Spitos for some awesome behind the scenes help with this.

Could not be any more helpful(considering it is probably something on my site that is causing the issue!)

Cheers

Murray

Newbie

Posts

Joined
Fri Feb 17, 2012 12:05 pm

Post by spitos » Wed Mar 14, 2012 5:21 pm

maccadon wrote:I also get an error:

Code: Select all

Undefined variable: product_total in ../vqmod/vqcache/vq2-catalog_controller_product_category.php on line 328
I modified the the category with this code to display category images

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 don't know what you are asking me here??

I'll send a PM.

Image
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


User avatar
Active Member

Posts

Joined
Mon May 23, 2011 6:19 pm
Location - UK

Post by bigmuz » Thu Mar 15, 2012 4:11 am

Spitos has been a great help with this- he logged on to my site and fixed my small issue (due to me stuffing up an exisiting opencart file.)

Ten out of ten- mod works great and support is incredible.

Thanks heaps Spitos.

Newbie

Posts

Joined
Fri Feb 17, 2012 12:05 pm

Post by thbr02 » Thu Mar 22, 2012 4:09 am

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.
Last edited by thbr02 on Thu Mar 22, 2012 3:41 pm, edited 1 time in total.

Active Member

Posts

Joined
Wed Jun 22, 2011 10:30 pm
Location - Sweden

Post by rph » Thu Mar 22, 2012 2:32 pm

You can turn off product counts in OpenCart 1.5.2.x though it doesn't apply to the page header.

-Ryan


rph
Expert Member

Posts

Joined
Fri Jan 08, 2010 5:05 am
Location - Lincoln, Nebraska

Post by spitos » Thu Mar 22, 2012 8:15 pm

thbr02 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.
I've sent a PM with the latest file

Image
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


User avatar
Active Member

Posts

Joined
Mon May 23, 2011 6:19 pm
Location - UK

Post by evilfx » Mon Apr 16, 2012 3:46 am

can you check your PM's please ?

New member

Posts

Joined
Fri Mar 23, 2012 8:28 am

Post by Green Machine » Sat Apr 21, 2012 3:10 am

Hi

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

Newbie

Posts

Joined
Wed Apr 18, 2012 7:40 pm

Post by gti2756 » Sun May 06, 2012 12:49 am

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!

Newbie

Posts

Joined
Mon Apr 30, 2012 10:56 pm

Post by expanism » Wed May 09, 2012 5:15 pm

rph wrote:You can turn off product counts in OpenCart 1.5.2.x though it doesn't apply to the page header.
Hi Ryan,

Where can I find that option in the back-end?

New member

Posts

Joined
Fri Sep 30, 2011 8:43 pm

Post by keether » Tue May 15, 2012 9:33 pm

I am getting this error:

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.

New member

Posts

Joined
Sat Sep 18, 2010 9:13 am

Post by keether » Wed May 16, 2012 8:50 pm

I sent a PM 3 days ago AND posted in this forum. Havnt heard a thing

New member

Posts

Joined
Sat Sep 18, 2010 9:13 am

Post by spitos » Wed May 16, 2012 9:12 pm

keether wrote:I sent a PM 3 days ago AND posted in this forum. Havnt heard a thing
So the other extension you have installed is conflicting with this one?

What happens when you remove the other extension?
Last edited by spitos on Wed May 16, 2012 9:18 pm, edited 1 time in total.

Image
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


User avatar
Active Member

Posts

Joined
Mon May 23, 2011 6:19 pm
Location - UK

Post by spitos » Wed May 16, 2012 9:17 pm

gti2756 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!
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 mod

Image
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


User avatar
Active Member

Posts

Joined
Mon May 23, 2011 6:19 pm
Location - UK

Post by keether » Wed May 16, 2012 10:04 pm

Yes, it is conflicting with subcategory images mod. URL is http://brokenheartpetmemorials.com

I will pm you FTP if you need it.

Thanks

New member

Posts

Joined
Sat Sep 18, 2010 9:13 am

Post by spitos » Wed May 16, 2012 10:13 pm

Please PM me this file from the vqcache folder:

Code: Select all

vq2-catalog_controller_product_category.php
Thanks

Image
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


User avatar
Active Member

Posts

Joined
Mon May 23, 2011 6:19 pm
Location - UK

Post by daisybeedesign » Fri May 18, 2012 6:37 pm

Hi Spitos

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.

New member

Posts

Joined
Wed Jan 18, 2012 12:44 am

Post by Qphoria » Fri May 18, 2012 9:07 pm

FYI this is added to the core in 1.5.3

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.

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by spitos » Fri May 18, 2012 9:22 pm

FYI I will still support this for anyone who has purchased and is needing help.

Image
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


User avatar
Active Member

Posts

Joined
Mon May 23, 2011 6:19 pm
Location - UK

Post by RMVW » Thu May 31, 2012 11:47 pm

Hello Spitos,

I think I have the same problem as others have (sub category images). I PM you the file, but I do not see that it was sent. Can you please respond if you got it or not?

Greeting,

Raymond

New member

Posts

Joined
Thu Dec 15, 2011 3:43 pm
Who is online

Users browsing this forum: No registered users and 3 guests