Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Border around shopping cart and attributes

Border around shopping cart and attributes

Locked

Views: 1,213

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
10 Feb 2010, 11:07 AM
#1
endre avatar

endre

New Zenner

Join Date:
Dec 2008
Posts:
38
Plugin Contributions:
0

Border around shopping cart and attributes

Hi all!
I have moved the attributes function closer to shopping cart function on the product_info_display page, and have put the border around the two functions. Works great when products have attributes assigned to them, but when the products do not have any attributes, the shopping cart doesn't have a border around it anymore.
I did manage to get a border around the shopping cart when no attributes, but then there is a shopping cart box with a border within the attributes box when products have attributes.
Hope this made sense to someone, probably not well explained.

I want a border around shopping cart when no attributes, but no border when attributes.
Both functions are in #div addCart

Can anyone point me in the right direction?

Thanks in advance.

Endre

10 Feb 2010, 11:17 AM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Border around shopping cart and attributes

Sounds like you hard-coded a border into the php file... and your border is only appearing when the html <tags> are properly opened and closed. If there are no attributes, then it's likely that there is no closing tag... I don't know for sure because I can't see your edits.

Don't hack the code like this. Remove the edits you did to render borders and use the stylesheets to add borders. As the divs are nested, this should be a relatively straight forward border: 1px solid #000; declaration

21 Feb 2010, 3:40 PM
#3
endre avatar

endre

New Zenner

Join Date:
Dec 2008
Posts:
38
Plugin Contributions:
0

Re: Border around shopping cart and attributes

Hi,
Thanks for the reply, schoolboy.

I haven't hard coded this, added the cartAdd div to attributes in product_display file.
I have moved the attributes block hogher up on that page, to appear above the add to cart box.
But, no problem anymore, decided to go with a background colour instead of a border, and that works fine even without attributes.

Cheers
Endre