Guest Posted May 6, 2006 Posted May 6, 2006 Hi I am trying to increase the column width within my cart, at present they are a little bunched up. I have changed mine to read item_____price___qty___remove I would like to increase the width between price, qty, and remove. Thanks for any advice. I have looked in the catalog/shoppingcart.php file but the cart does not appear to be based on a table, just an array. W
Terra Posted May 6, 2006 Posted May 6, 2006 Hi I am trying to increase the column width within my cart, at present they are a little bunched up. I have changed mine to read item_____price___qty___remove I would like to increase the width between price, qty, and remove. Thanks for any advice. I have looked in the catalog/shoppingcart.php file but the cart does not appear to be based on a table, just an array. W It is table-based - the infoBox functions create a table based on the input (just look into /includes/classes/boxes .php to see how it's done). To change the column order you'd have to rewrite the PHP, i.e. the order in which the array is put together, e.g. for the headings you'd have to re-arrang this code: $info_box_contents = array(); $info_box_contents[0][] = array('align' => 'center', 'params' => 'class="productListing-heading"', '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"', 'text' => TABLE_HEADING_QUANTITY); $info_box_contents[0][] = array('align' => 'right', 'params' => 'class="productListing-heading"', 'text' => TABLE_HEADING_TOTAL); but dont' forget that you'd also need to need to rewrite the code order in which the content is pulled in! Setting a column width is going to be hard, as you can't set a width on a cell (at least not in modern compliant browsers) but you'd have to work with colgroup and that would involve a re-write of the infoBox classes (colgroups are not part of the standard osCom table structure). Maybe though you can achieve what you want just by using the text-align functions (center, right, left as defined above) to give it more spacing - these are already part of the code as you can see above, so it's easy to change that. Terra don't forget to back up before making any code changes! My code for combining PayPal IPN with ** QTPro 4.25 ** osC Affiliate ** CCGV(trad) and how to solve the invoice already paid error General info: Allow customer to delete order comment ** FTP Programs & Text Editors ** Amending order email **
Recommended Posts
Archived
This topic is now archived and is closed to further replies.