PDA

View Full Version : Featured Retailers


Bud
19-06-07, 16:23
Hopefully this is a simple one.....

I would like to add some 'Featured Retailers' on my index page, as they are shown on the 'category' pages. Can this be done simply? And if so, how?

Thanks
Bud

Ajax2000
27-06-07, 11:31
I've looked at the version on ShopWindow, looks Hard Coded. I'll be doing a version via an PHP ad server, seems a logical solution, you can then click track etc

Andy
27-06-07, 14:01
If you're wanting to add the featured merchants block to your front page, look for the include line in the category.tpl and copy it to your index.tpl just below where the nav list is displayed.

But, you may want to feature your own merchants somewhere.

You are able to create a page in your API that lists all the merchants products, just by linking to it.

the link should be similar to this:
category.php?m=MID

(MID = merchant ID)

that's it, no category parameter or anything else. this will list EVERYTHING.

You may notice that the merchant links in "featured merchant" block have category IDs in the link, this page would show everything that merchant has in that category. But, some people just like to browse what Woolworths have got, so this linking method is Ideal.

You can create a featured merchant by either hardcoding an area into you index.tpl, or by creating a separate tpl file in elements and adding the include to index.tpl

jonnyplatt
27-06-07, 14:03
Hopefully this is a simple one.....

I would like to add some 'Featured Retailers' on my index page, as they are shown on the 'category' pages. Can this be done simply? And if so, how?

Thanks
Bud

By default the file isn't called in index.php. IF you want to include it you will need to add this to your index.php:

$oFeaturedMerchantsParams->iCategoryId= 36; // swap 36 for the category you wish to pull merchants from
include_once(HOME_PATH.DIRECTORY_SEPARATOR.'includ es'.DIRECTORY_SEPARATOR.'elements'.DIRECTORY_SEPAR ATOR.'hot_picks.php');


You may need to add something to your template file, but i'm pretty sure this will just spit out the list wherever you put the lines in (eg before/after your include(category tree), include (.... search box )etc)