Problems with template manager

General Support for technical Issues relating to AlegroCart
Post Reply
Delpfine
Posts: 142
Joined: Fri Feb 08, 2013 3:47 pm
Location: Austin, TX

Problems with template manager

Post by Delpfine » Fri Feb 15, 2013 2:11 pm

I used the template manager to put the cart in the header. Now I've removed it from the header and added it to the left column using the template manager. It doesn't show up, though, in the left column and I can still see it in the header.

User avatar
Brent
Site Admin
Posts: 4459
Joined: Sat Dec 12, 2009 3:35 pm
Location: Canada eh

Re: Problems with template manager

Post by Brent » Fri Feb 15, 2013 2:20 pm

Where exactly did you do all this, as in template manger pages.
If you did something in the default and then something different on a particular page, the specific page over rules the default.
Also, make sure you don't have the cart in 2 places. I would probably only load the first instance.

Delpfine
Posts: 142
Joined: Fri Feb 08, 2013 3:47 pm
Location: Austin, TX

Re: Problems with template manager

Post by Delpfine » Fri Feb 15, 2013 2:29 pm

I only loaded the cart using the template manager. I did not added it on a specific page. In template manager, the controller is the default. I tried Top Header and Sub Header. The cart module now is currently only in Left Column under categories. But the cart shows up in the top header. Is there a tpl that I need to reload?

User avatar
Brent
Site Admin
Posts: 4459
Joined: Sat Dec 12, 2009 3:35 pm
Location: Canada eh

Re: Problems with template manager

Post by Brent » Fri Feb 15, 2013 3:00 pm

No, there is nothing to change in tpl. It is all done in the template manager.
Please check the default in template manager and make sure the cart is not in the header. It is also screwing up the menu.
you can't access any of the menu items because the cart is blocking access.

Delpfine
Posts: 142
Joined: Fri Feb 08, 2013 3:47 pm
Location: Austin, TX

Re: Problems with template manager

Post by Delpfine » Fri Feb 15, 2013 3:11 pm

The cart is not in header in template manager. Just header and navigation are there.

Yes, I saw that about it blocking the menu.

User avatar
Brent
Site Admin
Posts: 4459
Joined: Sat Dec 12, 2009 3:35 pm
Location: Canada eh

Re: Problems with template manager

Post by Brent » Fri Feb 15, 2013 5:39 pm

The problem is the HTML code or Css. If you look at the page source, the mini cart is contained in the column div.
Yet for some reason, it is positioned in the header.

User avatar
Brent
Site Admin
Posts: 4459
Joined: Sat Dec 12, 2009 3:35 pm
Location: Canada eh

Re: Problems with template manager

Post by Brent » Fri Feb 15, 2013 5:53 pm

Have you made any changes in the module/cart controller or tpl files.
The mini cart when loaded, checks its position to see if it is in the header or not.
If it is in the header, it uses absolute positioning to put it at the top of the header.
If it is not in the header, it uses relative positioning so it can be placed in either column.
something in the code has been changed that is forcing absolute positioning.

Delpfine
Posts: 142
Joined: Fri Feb 08, 2013 3:47 pm
Location: Austin, TX

Re: Problems with template manager

Post by Delpfine » Sat Feb 16, 2013 7:09 am

Ah, yes. I did change it to position: absolute. Changing it back to relative fixes the problem. Thanks!

User avatar
Brent
Site Admin
Posts: 4459
Joined: Sat Dec 12, 2009 3:35 pm
Location: Canada eh

Re: Problems with template manager

Post by Brent » Sat Feb 16, 2013 8:44 am

Did you add the positioning to the CSS. As I remember, it is not required because positioning is done in the cart.tpl. Try commenting it out and I think it will work as it was designed. Anyway, if it works, that's all matters.

Delpfine
Posts: 142
Joined: Fri Feb 08, 2013 3:47 pm
Location: Austin, TX

Re: Problems with template manager

Post by Delpfine » Sat Feb 16, 2013 10:24 am

Thanks, Brent!

Post Reply