Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Image icon overlays for specials, bestsellers, featured etc products

Image icon overlays for specials, bestsellers, featured etc products

Locked

Started by possum on 30 Oct 2007, 11:14 AM · Views: 1,573

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
30 Oct 2007, 11:14 AM
#1
possum avatar

possum

New Zenner

Join Date:
Sep 2007
Posts:
58
Plugin Contributions:
0

Post #1 by possum

Hi,

As a marketing tool I'd love to be able to highlight bestsellers, featured and on-special products whenever they appear in a product listing, not just when the user specifically goes to the appropriate page. Ideally I was imagining somthing like the ability to define a small icon that would be put on the top left (or similar) of the product's image whenever it is shown. I'd also love to hear any other ideas that people might have had to achieve this.

The closest thing I've found so far is the watermarking feature of IH2. This is unfortunately just one image which is always on for all images, rather than a selection of icons that are associated with different products.

Has anyone tried to do something like this before?

Thanks!

Possum.

30 Oct 2007, 12:44 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Post #2 by kuroi

It's been talked about before, but I don't know of anybody who's actually done it. It's not that difficult, just a bit fiddly.

Here's how I'd do it.

  1. Create three new functions that take products_id as a parameter and return true if the product is new, featured or on special
  2. create three small icons to mark each situation
  3. go through the code that builds the listing's pages (there's quite a lot of it) and each time the product image is prepared for inclusion in a listing, call those new functions and if they return true also include the relevant icons each with their own class
  4. style the links that surround the product image images and icons with position:relative
  5. style the icons with position:absolute and then position them so that they don't overlap (as more than one may apply to a particular product)
    I'd rate this as needing intermediate knowledge of Zen Cart's structure, intermediate PHP skills and a specific understanding of positioning with CSS.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

31 Oct 2007, 9:52 AM
#3
possum avatar

possum

New Zenner

Join Date:
Sep 2007
Posts:
58
Plugin Contributions:
0

Post #3 by possum

Hi Kuroi,

Thanks for your thoughts. Unfortunately I'd describe myself as "beginner" on Zen Cart's structure and "beginner" on PHP, so I might have to come up with another plan.

:smile:

Cheers,

Possum.