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-ASP Shopping Cart Customer Forum

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

 All Forums
 VPCart Forum
 General help me questions
 v7 Layout Manager Issues
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

seanfitzpatrick
Starting Member

14 Posts

Posted - March 10 2010 :  15:06:27  Show Profile  Reply with Quote
Looks like I posted this in the wrong place before.. sorry admins.

I currently use two versions of ShopPageHeader and ShopPageTrailer:

shoppage_header_front / shoppage_trailer_front
shoppage_header / shoppage_trailer

I am currently using the default 3column template provided with VP-ASP 7 because I need the 3 col option on the frontpage. In the subpages of the site, I revert to a single column layout because I need the full width of the container for products.

The problem I am running into is, when I drop the right/left sidebar in the shoppage_header / shoppage_trailer, I lose these columns within the Layout manager as well.

I believe it is a problem with my asp within shopheaders.asp:

sub ShopPageHeader
   if GetConfig("xaffheaders")="Yes" then
      dim filename, affid, rc
      affid=GetSess("affid")
      if affid<>"" then
         filename=xMySite2 & "/templates/" & getconfig("xtemplate") & "/aff" & affid &"_header.htm"
         Shopspecialheader filename, rc
         if rc=0 then exit sub
      end if
   end if
   
   setsess "fromquickorder",""
   '700 - Moving to template
   dyninclude xMySite2 & "/templates/" & getconfig("xtemplate") & "/shoppage_header.htm"
end sub
sub ShopPageHeaderFront
   if GetConfig("xaffheaders")="Yes" then
      dim filename, affid, rc
      affid=GetSess("affid")
      if affid<>"" then
         filename=xMySite2 & "/templates/" & getconfig("xtemplate") & "/aff" & affid &"_header_front.htm"
         Shopspecialheader filename, rc
         if rc=0 then exit sub
      end if
   end if
   
   setsess "fromquickorder",""
   '700 - Moving to template
   dyninclude xMySite2 & "/templates/" & getconfig("xtemplate") & "/shoppage_header_front.htm"
end sub

sub ShopPageTrailer
   if GetConfig("xaffheaders")="Yes" then
      dim filename, affid, rc
      affid=GetSess("affid")
      if affid<>"" then
         filename=xMySite2 & "/templates/" & getconfig("xtemplate") & "/aff" & affid & "_trailer.htm"
         Shopspecialheader filename, rc
         if rc=0 then exit sub
      end if
   end if

   '700 - Moving to template
   dyninclude xMySite2 & "/templates/" & getconfig("xtemplate") & "/shoppage_trailer.htm"
end sub
sub ShopPageTrailerFront
   if GetConfig("xaffheaders")="Yes" then
      dim filename, affid, rc
      affid=GetSess("affid")
      if affid<>"" then
         filename=xMySite2 & "/templates/" & getconfig("xtemplate") & "/aff" & affid & "_trailer_front.htm"
         Shopspecialheader filename, rc
         if rc=0 then exit sub
      end if
   end if



Is this an issue with my code or the actual Layout Manager?

It also seems that ShopPageHeader is referenced within shopfileio.asp as well as adminfileio.asp. Possibly I need to make an addition here I am missing?


Thanks in advance!


Sean Fitzpatrick
Support Team
Krack Media, LLC
***********************************
http://www.KrackMedia.com

Building More Than Web Sites
. . . Building a Web Presence

ironhawker
VP-ASP Super User

USA
260 Posts

Posted - March 11 2010 :  20:27:04  Show Profile  Visit ironhawker's Homepage  Reply with Quote
Here is a workaround I have used several times
I would make a copy of your 3 column parsed frontpage and name it index.asp
Set your webconfig to read that first.
Then you can edit it and manually FTP over to the server.
This also allows some javascript that sometimes interferes with the VPAsp system on your intro page.
Step 2
Lose the 3 column config.. in VPAsp
Set your VPAsp terminal to the template you wish and control it normally for all the additional pages.
default.asp should be renamed default2.asp or something else and noted in your menu manager

~-~-~-~-~-~-~-~-~-~
Randy "RC" Corn
[email protected]
http://www.ironhawker.com
425-828-0738
Go to Top of Page

seanfitzpatrick
Starting Member

14 Posts

Posted - April 12 2010 :  10:44:16  Show Profile  Reply with Quote
"The problem I am running into is, when I drop the right/left sidebar in the shoppage_header / shoppage_trailer, I lose these columns within the Layout manager as well."

I solved this issue by still using two templates one for front and one for the subpages, but I kept the call in the template for the sidebars and simply added another class to the div containing this sidebar. This had display:none; applied to the sidebar and allowed the layout manager to still show the needed boxes. Hope this helps someone.


Sean Fitzpatrick
Support Team
Krack Media, LLC
***********************************
http://www.KrackMedia.com

Building More Than Web Sites
. . . Building a Web Presence
Go to Top of Page

seanfitzpatrick
Starting Member

14 Posts

Posted - December 22 2011 :  01:35:47  Show Profile  Reply with Quote
Well this problem came up again and the issue did not resolve itself as before. I found out the reason was is because I had renamed the divs that encapsulate the individual layout manager items. For example, footer's div is vp_footer and if you rename that to something different, you lose that box in the layout manager.

If you want to keep that new name, simply jump into /youradminfoldername/shophpmgrsubs.asp and search for the old div name and replace with your new name.

Hope this helps someone.

Sean Fitzpatrick
Support Team
Krack Media, LLC
***********************************
http://www.KrackMedia.com

Building More Than Web Sites
. . . Building a Web Presence
Go to Top of Page

diegomilito
VP-ASP Expert

Argentina
723 Posts

Posted - January 06 2012 :  04:05:57  Show Profile  Reply with Quote
Sean, just to share my thought, if you change the div in the templates file, with new div name, the styles/layout will possibly also missing.

Diego.
Go to Top of Page

seanfitzpatrick
Starting Member

14 Posts

Posted - January 06 2012 :  08:29:17  Show Profile  Reply with Quote
@diegomilito

Absolutely if you are using the default stylesheets. Normally after every install I blow out everything from layout.css and keep shop700.css. Then start building the site from scratch with layout.css. Thats just me though because normally our carts have such custom styling that they require more than the default layout styling.

Sean Fitzpatrick
Support Team
Krack Media, LLC
***********************************
http://www.KrackMedia.com

Building More Than Web Sites
. . . Building a Web Presence
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000