Post by corneliusrodes » Wed Jan 22, 2014 11:21 pm

Hi
Banging my head against the wall at the moment with my shopping cart. My remove item button keeps wrapping to the next line making my shopping cart look naff (see attachment)!!

I have altered the code to try and solve which seems to work if I only put one item in the shopping cart. However, as soon as I place additional items into cart it starts misbehaving again.

Here's my altered code in the cart.tpl file. All I've altered is the addition of style="dispay:inline" after the image code. Any help would be gratefully recieved. Be gentle, I'm not a coder by trade....... :crazy:

Code: Select all

<td class="quantity"><input type="text" name="quantity[<?php echo $product['key']; ?>]" value="<?php echo $product['quantity']; ?>" size="1" />
              &nbsp;
              <input type="image" src="catalog/view/theme/default/image/update.png" alt="<?php echo $button_update; ?>" title="<?php echo $button_update; ?>" />
              &nbsp;<a href="<?php echo $product['remove']; ?>" ><img src="catalog/view/theme/default/image/remove.png" style="display:inline" alt="<?php echo $button_remove; ?>" title="<?php echo $button_remove; ?>" /></a></td>

Attachments

cartsnapshot.JPG

Cart Snapshot - cartsnapshot.JPG (16.69 KiB) Viewed 455 times



Posts

Joined
Wed Jan 08, 2014 3:05 am

Post by ogun » Thu Jan 23, 2014 12:07 am

Could maybe give the quantity td a temporary background colour so that you can see exactly what's wrapping where. Would guess that the td isn't wide enough for the elements - maybe making it a little wider would fix the problem.

Active Member

Posts

Joined
Tue Aug 14, 2007 6:04 am

Post by corneliusrodes » Thu Jan 23, 2014 12:34 am

Thanks ogun

All sorted with a bit of custom css as follows:

Code: Select all

.cart-info .quantity {width:130px;
}
I just needed a prod in the right direction :laugh:

Image attached showing result ;D

Attachments

cartsnapshot.JPG

cartsnapshot.JPG (26.37 KiB) Viewed 442 times



Posts

Joined
Wed Jan 08, 2014 3:05 am
Who is online

Users browsing this forum: No registered users and 16 guests