Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

shopping cart is crowded.


knifeman

Recommended Posts

Hi,

 

My site sells Kitchen knives and the images are short and wide. I also added two mods to my shopping cart page. (order max dropdown, and a delete image) No more update button.

 

Here is my problem. After adding several items to the cart, it begins to get hard to tell which item is on which line:

cart_shot.JPG

 

It can be confusing which drop down box affects which item. I need a simple way to add horizontal lines between rows or shading for alternate rows, but I do not know where to make the changes. I noticed in shopping_cart.php that there is code for odd and even classes:

 for ($i=0, $n=sizeof($products); $i<$n; $i++) {
     if (($i/2) == floor($i/2)) {
       $info_box_contents[] = array('params' => 'class="productListing-even"');
     } else {
       $info_box_contents[] = array('params' => 'class="productListing-odd"');

But as shown in my image, there are no distinctions between odd and even items. Am I missing something in the stylesheet? Or is there a simple way to implement a change?

 

Thanks,

Tim

Link to comment
Share on other sites

Using the code shown you would have to put the line in twice. If you show more code there is likely a spot to put one line of code that would affect both lines at the same time.

 

Put your code in just below each $info_box_contents[] = line and see what you get. It might affect things elsewhere though...

Community Bootstrap Edition, Edge

 

Avoid the most asked question. See How to Secure My Site and How do I...?

Link to comment
Share on other sites

Using the code shown you would have to put the line in twice. If you show more code there is likely a spot to put one line of code that would affect both lines at the same time.

 

Put your code in just below each $info_box_contents[] = line and see what you get. It might affect things elsewhere though...

Thanks Mark,

 

I feel stupid for asking now. I finally found in the stylesheet that both odd and even classes had the same color. I skimmed through the sheet earlier, but product listing is lumped in with a dozen others. After looking closer, I found them and changed one.

 

Tim

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...