Print Page | Close Window

A useful tip - creating multiple headers

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Using ProductCart
Forum Description: Running your store with ProductCart
URL: https://forum.productcart.com/forum_posts.asp?TID=2709
Printed Date: 27-February-2025 at 10:16am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: A useful tip - creating multiple headers
Posted By: intour
Subject: A useful tip - creating multiple headers
Date Posted: 03-May-2009 at 5:25pm
I've been meaning to share this one with other productcart users for a while (I've no doubt the older members are already familiar with this technique).
 
I was frequently asked the question  'can I make my content pages look different to my productpages?'
 
This question wasn't referring to the dynamic content but the whole page style. For example they would want 3 columns for the product pages and only 2 for the content pages.
 
You can achieve this easily by creating an additional set of header.asp and footer.asp pages.
 
Both the product pages and the content pages have 2 lines of code that looks like this:
 
<!--#include file="header.asp"-->
<!--#include file="footer.asp"--> (about line 69)
 
The content pages use a file called viewcontent.asp which is found in the productcart/pc folder. You'll find the above lines of code at about line 48 and 69.
 
Create your new content page style and then create an additonal set of header and footer files but name them differently. I renamed mine headercontent.asp and footercontent.asp
 
Then in the viewcontent.asp page change the code to this:
 
<!--#include file="headercontent.asp"-->
<!--#include file="footercontent.asp"-->
 
Upload both sets of header and footer files together with your amended viewcontent.asp pages and you can have different styles for both pages.
 
This technique can of course be applied to other pages (if you're feeling really adventurous).
 
Nigel
 
 


-------------
http://www.innerview.co.uk - Innerview
Productcart Platinum Reseller
Web Design/Hosting/Virtual Tours



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net