knifeman Posted January 21, 2010 Share Posted January 21, 2010 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: 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 More sharing options...
♥mdtaylorlrim Posted January 21, 2010 Share Posted January 21, 2010 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 More sharing options...
knifeman Posted January 21, 2010 Author Share Posted January 21, 2010 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.