Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

How do I add a new row to shopping cart?


Recommended Posts



I have modified OSC ALOT and for this reason, my shopping cart now has many extra columns on it. I have recently added a drop down menu to the cart which contains email addresses to make use of some of my new functionality. This is causing problems amongst the 800x600 users :rolleyes:


Basically, because some email addresses are long, the drop down can get very wide and on a small screen, the squashed effect looks rubbish. I need to add a new row under the existing one per product. My dropdown would then be on the new row and not mess up the horizontal display. I have been playing for the last few hours but I cannot seem to get it to work. I have come close but with the many padding and spacing and backgrounds on the various tables, it never seems to look quite right!!


All I need to somehow do is add


drop down here


to show after the last column which I believe is 'price'.


I can add columns to my hearts content but rows seems to all go amiss. It uses this thing called


new productListingBox($info_box_contents);


I have tried to modify $info_box_contents but the array seems to link column wise not rows. Here is what I put so far:


$info_box_contents[$cur_row][] = array('align' => 'center',
                                            'params' => 'class="productListing-data" valign="top"',
                                            'text' => '<tr><td  width="100%" colspan="8" bgcolor="#F8F8F9">drop down</td></tr>');


As you can see, I have eight columns currently so I need the row to span 8 columns. It works except it leaves a gap to the right of the whole table ?? This shows the background image which makes the display look messy. I think that it is only working because of how Firefox interprets my messed up table structure. I annot see that a column could accept a row within it. This is probably why it is wrong. I cannot find the function that uses productListingBox to modify it. I think this is what I need to do. Anyone got any ideas. It should be soooo simple but I all out of ideas!!


Any help will be greatly appreciated.





always here to offer some useless advice....

Link to comment
Share on other sites

  • 4 weeks later...


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

  • Create New...