Page 1 of 1

[MOD] Sales Page as menu tab.

Posted: Wed Jun 17, 2009 7:26 pm
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

Re: [MOD] Sales Page as menu tab.

Posted: Tue Nov 22, 2011 11:15 pm
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: