Forums / Templates, Stylesheets, Page Layout / Also purchased 1 item per line

Also purchased 1 item per line

Locked

Views: 657

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
16 Mar 2010, 5:20 PM
#1
damiantaylor avatar

damiantaylor

Zen Follower

Join Date:
Aug 2009
Posts:
244
Plugin Contributions:
0

Also purchased 1 item per line

Hi all!
I've only just noticed that on my product info page, if I have more than 1 item in the 'also purchased' box, each item appears on a separate line in a separate box.

I've set my admin values as follows:
Product Info->Also Purchased Products Columns per Row = 6
Minimum Values->Also Purchased Products = 1
Maximum Values->Also Purchased Products = 6

Which I though would give me up to 6 items in a single also purchased box but it doesn't!
Am I missing something or is it a bug?

A link to my test site is here
http://snow.byethost8.com/shop/RepairTools/BreakRetainerRubber

If you can throw any light on this I'd really appreciate it. It's pretty much the last thing I need to do :clap:

16 Mar 2010, 5:29 PM
#2
damiantaylor avatar

damiantaylor

Zen Follower

Join Date:
Aug 2009
Posts:
244
Plugin Contributions:
0

Re: Also purchased 1 item per line

Looking at also_purchased_products.php it references a variable called SHOW_PRODUCT_INFO_COLUMNS_ALSO_PURCHASED_PRODUCTS

Do you know where that value comes from? I can't find it anywhere

16 Mar 2010, 7:28 PM
#3
damiantaylor avatar

damiantaylor

Zen Follower

Join Date:
Aug 2009
Posts:
244
Plugin Contributions:
0

Re: Also purchased 1 item per line

Sorted it :clap:
I had a border around my centerBoxContentsAlsoPurch class in the stylesheet.
What I didn't know is left and right borders must add a pixel to the width of the <div>.
Because the <div> was styled inline to be 50%, the left and right borders were making it so only 1 would fit on a line!

Fix was to get rid of the left and right borders :)