Problem with layout - MiniCart

General ShopSite user discussion

Problem with layout - MiniCart

Postby Brandon Eley » Tue Jan 03, 2006 11:51 am

I'm creating a page template for an all-CSS layout and it's working
great, except when I add the MiniCart.

When I add the MiniCart code, it breaks the entire layout. I've checked
and there is nothing in the stylesheet that would be breaking the
layout. Can you see what could be causing this to break?

http://server.rackdata.com/~carpet/index.php

The images won't display, but you can see the layout problem. There is a
2 column layout and the minicart shoudl be just below the navigation.

Any thoughts?


--

Brandon Eley
*********************
EleyTech Web Development
207 N. Lewis Street, Suite E
LaGrange, Georgia 30240
*********************
brandon@eleytech.com
www.eleytech.com
Phone: (706) 883-7078
Mobile: (706) 668-0174
Toll-Free: 1-800-682-2550
Brandon Eley
 

Re: Problem with layout - MiniCart

Postby jim » Tue Jan 03, 2006 9:27 pm

The shopping cart relies on cookies. The site you list below is
server.rackdata.com but in the code you are referring to the order.cgi
at www.carpetile.com. So www.carpetile.com will set the cookie and it
will be unreadable by server.rackdata.com since cookies can only be read
by the domain they are written by.

Jim

Brandon Eley wrote:
I'm creating a page template for an all-CSS layout and it's working
great, except when I add the MiniCart.

When I add the MiniCart code, it breaks the entire layout. I've checked
and there is nothing in the stylesheet that would be breaking the
layout. Can you see what could be causing this to break?

http://server.rackdata.com/~carpet/index.php

The images won't display, but you can see the layout problem. There is a
2 column layout and the minicart shoudl be just below the navigation.

Any thoughts?

jim
 

Re: Problem with layout - MiniCart

Postby jim » Tue Jan 03, 2006 10:48 pm

When I said "> The shopping cart " I meant the MINI cart.

Jim

jim wrote:
The shopping cart relies on cookies. The site you list below is
server.rackdata.com but in the code you are referring to the order.cgi
at www.carpetile.com. So www.carpetile.com will set the cookie and it
will be unreadable by server.rackdata.com since cookies can only be read
by the domain they are written by.

Jim

Brandon Eley wrote:
I'm creating a page template for an all-CSS layout and it's working
great, except when I add the MiniCart.

When I add the MiniCart code, it breaks the entire layout. I've
checked and there is nothing in the stylesheet that would be breaking
the layout. Can you see what could be causing this to break?

http://server.rackdata.com/~carpet/index.php

The images won't display, but you can see the layout problem. There is
a 2 column layout and the minicart shoudl be just below the navigation.

Any thoughts?

jim
 

Re: Problem with layout - MiniCart

Postby Brandon Eley » Wed Jan 04, 2006 12:29 am

Jim, I've got the hosts file altered on my machine so I just access
www.carpetile.com. We had to do that since they have a website up now
(though horrible).

Anyway, the cookies should be set correctly on my machine, since I
access it from the "www.carpetile.com" address. It's still broken,
regardless of which domain it's accessed from.

Any other thoughts?

Brandon Eley
*********************
EleyTech Web Development
207 N. Lewis Street, Suite E
LaGrange, Georgia 30240
*********************
brandon@eleytech.com
www.eleytech.com
Phone: (706) 883-7078
Mobile: (706) 668-0174
Toll-Free: 1-800-682-2550

jim wrote:
When I said "> The shopping cart " I meant the MINI cart.

Jim

jim wrote:

The shopping cart relies on cookies. The site you list below is
server.rackdata.com but in the code you are referring to the
order.cgi at www.carpetile.com. So www.carpetile.com will set the
cookie and it will be unreadable by server.rackdata.com since cookies
can only be read by the domain they are written by.

Jim

Brandon Eley wrote:

I'm creating a page template for an all-CSS layout and it's working
great, except when I add the MiniCart.

When I add the MiniCart code, it breaks the entire layout. I've
checked and there is nothing in the stylesheet that would be breaking
the layout. Can you see what could be causing this to break?

http://server.rackdata.com/~carpet/index.php

The images won't display, but you can see the layout problem. There
is a 2 column layout and the minicart shoudl be just below the
navigation.

Any thoughts?

Brandon Eley
 

Re: Problem with layout - MiniCart

Postby Jim » Wed Jan 04, 2006 9:22 am

Try running the page through an html validator and look for nesting
issues. I use the one at http://www.htmlhelp.com/tools/validator/

Jim


Brandon Eley wrote:
Jim, I've got the hosts file altered on my machine so I just access
www.carpetile.com. We had to do that since they have a website up now
(though horrible).

Anyway, the cookies should be set correctly on my machine, since I
access it from the "www.carpetile.com" address. It's still broken,
regardless of which domain it's accessed from.

Any other thoughts?

Brandon Eley
*********************
EleyTech Web Development
207 N. Lewis Street, Suite E
LaGrange, Georgia 30240
*********************
brandon@eleytech.com
www.eleytech.com
Phone: (706) 883-7078
Mobile: (706) 668-0174
Toll-Free: 1-800-682-2550

jim wrote:
When I said "> The shopping cart " I meant the MINI cart.

Jim

jim wrote:

The shopping cart relies on cookies. The site you list below is
server.rackdata.com but in the code you are referring to the
order.cgi at www.carpetile.com. So www.carpetile.com will set the
cookie and it will be unreadable by server.rackdata.com since cookies
can only be read by the domain they are written by.

Jim

Brandon Eley wrote:

I'm creating a page template for an all-CSS layout and it's working
great, except when I add the MiniCart.

When I add the MiniCart code, it breaks the entire layout. I've
checked and there is nothing in the stylesheet that would be
breaking the layout. Can you see what could be causing this to break?

http://server.rackdata.com/~carpet/index.php

The images won't display, but you can see the layout problem. There
is a 2 column layout and the minicart shoudl be just below the
navigation.

Any thoughts?

Jim
 

Re: Problem with layout - MiniCart

Postby Brandon Eley » Sat Jan 07, 2006 10:46 pm

Thanks, it ended up being an issue with the JS code output by the
minicart. There were 2 closing DIV tags if there were no items in the
cart (and only one opening tag). Since the layout was CSS based, it
broke it. In table based layouts it probably wouldn't even make a
difference.

Where the JS checks to see if there are items in the cart, if present it
proceeds with the cart. If not, it echoes a </div> even though there is
another </div> at the end of the script that echoes regardless of the
conditional.

Brandon Eley
*********************
EleyTech Web Development
207 N. Lewis Street, Suite E
LaGrange, Georgia 30240
*********************
brandon@eleytech.com
www.eleytech.com
Phone: (706) 883-7078
Mobile: (706) 668-0174
Toll-Free: 1-800-682-2550

Jim wrote:
Try running the page through an html validator and look for nesting
issues. I use the one at http://www.htmlhelp.com/tools/validator/

Jim


Brandon Eley wrote:

Jim, I've got the hosts file altered on my machine so I just access
www.carpetile.com. We had to do that since they have a website up now
(though horrible).

Anyway, the cookies should be set correctly on my machine, since I
access it from the "www.carpetile.com" address. It's still broken,
regardless of which domain it's accessed from.

Any other thoughts?

Brandon Eley
*********************
EleyTech Web Development
207 N. Lewis Street, Suite E
LaGrange, Georgia 30240
*********************
brandon@eleytech.com
www.eleytech.com
Phone: (706) 883-7078
Mobile: (706) 668-0174
Toll-Free: 1-800-682-2550

jim wrote:

When I said "> The shopping cart " I meant the MINI cart.

Jim

jim wrote:

The shopping cart relies on cookies. The site you list below is
server.rackdata.com but in the code you are referring to the
order.cgi at www.carpetile.com. So www.carpetile.com will set the
cookie and it will be unreadable by server.rackdata.com since
cookies can only be read by the domain they are written by.

Jim

Brandon Eley wrote:

I'm creating a page template for an all-CSS layout and it's working
great, except when I add the MiniCart.

When I add the MiniCart code, it breaks the entire layout. I've
checked and there is nothing in the stylesheet that would be
breaking the layout. Can you see what could be causing this to break?

http://server.rackdata.com/~carpet/index.php

The images won't display, but you can see the layout problem. There
is a 2 column layout and the minicart shoudl be just below the
navigation.

Any thoughts?

Brandon Eley
 


Return to User Forum

Who is online

Users browsing this forum: No registered users and 155 guests