VP-ASP :: Shopping Cart Software

Shopping Cart Software Solutions for anywhere in the World

US/Canada(Toll Free): +1 888 587 2278
Europe/UK: +44 (020) 7193 9408
Australia/New Zealand: +61 3 9016 4497

VP-Cart StoreFront Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Save Password
Forgot your Password?

 All Forums
 VPCart Forum
 Different shoppage_header depending on resolution
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

VP-ASP Expert

590 Posts

Posted - May 02 2008 :  04:05:25  Show Profile  Reply with Quote

I have been going through our logs and it appears we have a fair few visitors using 800x600 resolution (and below). but our site doesn't look fantastic in those resolutions.

So I would like to have a set up where depending on the users resolution they get different shoppage_header and shoppage_footer files used. That way we can create a number of different files for different resolutions and hopefully pick up more customers.

Does anyone have any idea if this is possible?


Sex toys from a UK sex shop

VP-ASP Super User

256 Posts

Posted - May 02 2008 :  09:36:37  Show Profile  Visit elammers's Homepage  Reply with Quote
I would bet yes.

The SHOPHEADERS.ASP file contains the short routine that pulls in the SHOPPAGE_HEADER.HTM file. Right near the top you should find Sub ShopPageHeader. Add some code to check for resolution and then load the appropriate header file. Repeat for ShopPageTrailer.

Sorry, but I don't know the code at the moment to do the resolution check.

Eric in Maine
Go to Top of Page

VP-ASP Expert

590 Posts

Posted - May 02 2008 :  13:40:15  Show Profile  Reply with Quote
I've found out you can't do as I would like as you would need to get the screen width client side, whereas asp pages are ceated server side.

I'm going to add javascript into the headers and have a copy of the site in a sub folder.

Sex toys from a UK sex shop
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000