Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

changing the width of columns in shopping cart


acbatchelor

Recommended Posts

i want to change the width of a certain column in the shopping cart. probably the "remove" column.

 

the "products" column is a little too small and the product name and attributes are cluttered together.

 

i don't care if it is a percentage change or a set width. i may even change all the columns except the "products" column to keep them the same width, but i don't know for sure until i change and see it.

 

if someone can get me started on this i can probably finish it own my own.

Link to comment
Share on other sites

/catalog/shopping_cart.php

 

    $info_box_contents[0][] = array('align' => 'center',
                                   'params' => 'class="productListing-heading" [color="#FF0000"][b]width="5%"[/b][/color]',
                                   'text' => TABLE_HEADING_REMOVE);

   $info_box_contents[0][] = array('params' => 'class="productListing-heading"',
                                   'text' => TABLE_HEADING_PRODUCTS);

   $info_box_contents[0][] = array('align' => 'center',
                                   'params' => 'class="productListing-heading" [color="#FF0000"][b]width="5%"[/b][/color]',
                                   'text' => TABLE_HEADING_QUANTITY);

   $info_box_contents[0][] = array('align' => 'right',
                                   'params' => 'class="productListing-heading" [color="#FF0000"][b]width="5%"[/b][/color]',
                                   'text' => TABLE_HEADING_TOTAL);

I haven't actually tried that but I think it will work.

 

Just backup the file before beginning.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

thanks!

 

at first it didn't work, so i decided that something was blocking it. i found that the width was already being controlled in the stylesheet(something i did a while back to make all the columns even).

 

once i removed that it worked. i decided that i wanted the columns an exact width so i replaced the percentage with pixels

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...