Post by Qphoria » Sat Aug 22, 2009 12:10 am

EDIT: catalog/view/theme/default/template/product/product.tpl

Additional Images Count:
FIND:

Code: Select all

<?php echo $tab_image; ?>
REPLACE WITH:

Code: Select all

<?php echo $tab_image; ?> (<?php echo count($images); ?>)

Related Count:
FIND:

Code: Select all

<?php echo $tab_related; ?>
REPLACE WITH:

Code: Select all

<?php echo $tab_related; ?> (<?php echo count($products); ?>)

Attachments

addimcount.jpg

addimcount.jpg (5.65 KiB) Viewed 4301 times

Last edited by i2Paq on Mon Mar 29, 2010 3:19 pm, edited 1 time in total.
Reason: Title fix

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by gavin m » Sat Aug 29, 2009 4:13 am

Excellent, thanks.

I missed this for a few days.

Active Member

Posts

Joined
Thu Jun 04, 2009 3:23 pm

Post by Miguelito » Wed Jan 20, 2010 2:14 am

Works perfectly :-)

Could this be included in the core (Daniel)?

The Finnish OpenCart Forum
"Real programmers don't document. If it was hard to write, it should be hard to understand."


Active Member

Posts

Joined
Sun Jan 10, 2010 10:11 pm

Post by allenshea » Wed Jan 20, 2010 8:33 am

Thanks Q, good help!

I know nothing about PHP and SQL, but I still try my best to understand it.


Active Member

Posts

Joined
Mon Dec 14, 2009 10:01 pm

Post by Miguelito » Wed Jan 20, 2010 2:37 pm

Great work, Q :)

The Finnish OpenCart Forum
"Real programmers don't document. If it was hard to write, it should be hard to understand."


Active Member

Posts

Joined
Sun Jan 10, 2010 10:11 pm

Post by sizzlingscience » Sun Mar 28, 2010 10:43 pm

Thank you very much for sharing this Q!

New member

Posts

Joined
Tue Jan 12, 2010 6:03 am

Post by MrConn » Tue Mar 30, 2010 2:47 am

Thanx! Great addition!
Should be included by default! :)

Image
Nemmelig.no - Billige Gadgets!


Active Member

Posts

Joined
Tue Mar 23, 2010 8:08 am

Post by pepiw » Tue Apr 06, 2010 6:51 pm

Excellent work Q, thanks.

I missed this!

Newbie

Posts

Joined
Thu Mar 25, 2010 7:17 pm

Post by JasonSGN » Wed Apr 07, 2010 7:17 am

This is a nice small addition. While it only takes seconds to implement, I'd love to see it added to the core so there would be one less thing to remember to add after upgrading to a new version.

New member

Posts

Joined
Fri Jan 01, 2010 12:15 am

Post by zerojinx » Sat May 08, 2010 12:33 am

this is great. thanks!

Michael Bielaczyc
http://www.aradanicostumes.com
http://www.aradani.com


New member

Posts

Joined
Fri May 07, 2010 11:17 am

Post by smorelli » Wed Jun 30, 2010 3:17 am

I would like to make the image count stand out with a font color if more than 0. Does anyone know how to do this?

New member

Posts

Joined
Wed Jan 27, 2010 6:28 am
Who is online

Users browsing this forum: No registered users and 8 guests