Forums / Templates, Stylesheets, Page Layout / Adding hyperlinked images to summary index listings

Adding hyperlinked images to summary index listings

Locked

Views: 1,044

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
20 Nov 2006, 11:19 AM
#1
ajrabbitt avatar

ajrabbitt

New Zenner

Join Date:
Nov 2006
Posts:
3
Plugin Contributions:
0

Adding hyperlinked images to summary index listings

Hi,

I've already asked this question at http://www.zen-cart.com/forum/showthread.php?t=51847 but I suspect I've posted in the wrong place, so please accept my apologies for the repetition!

I'm setting up an online music store and I want to have a 3 links on the index/new/all (etc) listing pages. One link needs to play a 30second sample of the track, one to link to an external, configurable url and one which goes to the "more info" product page.

Is there any way of doing this so that the layout looks like:

http://www.clampaway.co.uk/catalog/i...age_sample.bmp

If anyone has any idea how to do this, I would really appreciate your assistance!

Thanks,

Andrew

21 Nov 2006, 1:32 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Adding hyperlinked images to summary index listings

Unfortunately, there is no add on module to do what you want. Mostly due to this being mostly desired by you

Fortunately, ZenCart is very customizable and you can add custom code or get another to custom code this for you.

If you want a look. start with tpl_module_product_listing.php and as I assume that you will want a similar look on the actual product page see tpl_product_info_display.php. These are both in /includes/templates/template_default/templates/
If you know the html method to code this you are half way there, as ZenCart creates the pages dynamically from what is referred to as templates, the actual references will have to be relative calls to the current product.

Zen-Venom Get Bitten

22 Nov 2006, 4:18 PM
#3
ajrabbitt avatar

ajrabbitt

New Zenner

Join Date:
Nov 2006
Posts:
3
Plugin Contributions:
0

Re: Adding hyperlinked images to summary index listings

Thanks Kobra!

Of course I'm the only one who wants this feature - thats because I'm awkward :laugh:

I've had a quick look at the files you mentioned, but I'm lost already. Can you recommend anyone who may want some work? I'm a new startup so don't have crazy amounts of money, but I'm willing to pay for the help.

Answers on a postcard please!!

Andrew

3 Dec 2006, 5:22 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Adding hyperlinked images to summary index listings

Pardon the very brief post ...

You'd need to modify
/includes/modules/YOURTEMPLATE/product_listing.php
to prepare the 3 links (by coding the logic behind determining what they are)

The output is then handled by the default templates.
You might need to get creative in order to have them display beneath the price as your image shows. Determining the "where" for display is less of a challenge than actually preparing the links to be displayed.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.