[MOD] Sales Page as menu tab.

For Articles relating to more than one ISC version
Post Reply
Martin
Site Admin
Site Admin
Posts: 1854
Joined: Wed Jun 17, 2009 6:30 pm
Location: South Yorkshire UK
Contact:

[MOD] Sales Page as menu tab.

Post by Martin »

(Authored by Harvey Goldman)

This mod creates a page that shows a sale category as a tab at the top.

From tech support I learned of the panel called Panel.HomeSaleProduct . By default it is limited to 5 items. To get it to display as many as you want ( I only go to 30), you need to do the following:

edit the file /includes/display/HomeSaleProducts.php

Near the top of the file.
Find:

Code: Select all

$query .= $GLOBALS['ISC_CLASS_DB']->AddLimit(0, GetConfig('HomeNewProducts'));
Replace with:

Code: Select all

$query .= $GLOBALS['ISC_CLASS_DB']->AddLimit(0, 30);
Plug your own max products in where it has "30".

To display my page I used the WYSWIG page creation method and along with some text I added the html %%Panel.HomeSaleProduct%%

That's all there was to it. You can see it at here
The Impossible can be on your desk by lunchtime, Miracles will take a little longer
SnailSolution Interspire Mods/Hacks store
kurt
Posts: 147
Joined: Fri Jul 02, 2010 5:09 am

Re: [MOD] Sales Page as menu tab.

Post by kurt »

I'm not sure what you mean by using wysiwyg editor and adding some text with the panel snippet?

So far I've done this:

1. Copy the category.html file to the template folder and name it _category-onsale.html
2. create a new category called On Sale and select that new template.

Now I assume I need to modify that template file but I'm not sure what to do to make it look like a normal category page and show my items which have sales price. Could you let me know how you did it as your page is exactly what I'm after. If your post above has the answer then I must of missed soemthing :oops:
Post Reply