Create a custom page to display featured products

Create a custom page to display featured products

You can easily create a new page to display your featured products using the following snippet of code:.

1. First open a blank page in your text editor.

2. Copy the following code and paste it into your blank page:

<%option explicit%>
<%shopopendatabase dbc%>
<!-- #include file="shop$db.asp" -->
<!-- #include file="shophash.asp" -->
<%
shoppageheader
displayhpmgrrandomproducts "3,6", "6", "OUR FEATURED PRODUCTS"
shoppagetrailer
%>
<%shopclosedatabase dbc%>

The "3,6" are the categories to pull the products from
The "6" is th enumber of products to display
"Our featured Products" is the caption.

Change the above to suit your requirements.

3. Save the page as shopfeaturedproducts.asp

4. Upload to your server and test.

5. To link to the new page from your top menu open up the Layout manager in the admin, create a new menu item and point to this new page.

You can see more options in our Design Guide in Chapter 2.2.11. "Display Random Products Box Somewhere in Your Site"


Times Viewed:
3669
Added By:
Cam Flanigan
Date Created:
1/30/2011
Last Updated:
1/30/2011