Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Shopping cart changes


imoore

Recommended Posts

Posted

Any idea where to editing the shopping cart on the top of my page so it just has (for example) .. CART I 1 ITEM I SUBTOTAL : €15 and doesnt list the all the product info ?

 

Would be a great help .

Thanks.

Posted

language file:

define('TEXT_IN_CART', 'CART | %s %s | SUBTOTAL %s');
define('ITEM_1', 'ITEM ');
define('ITEM_NOT_1', 'ITEMS ');

 

header:

<?php echo sprintf(TEXT_IN_CART, $cart->count_contents(), $cart->count_contents()== '1' ? ITEM_1 : ITEM_NOT_1 , $cart->display_total()); ?>

Posted

cheers mate. Is there any text that I need to overwrite with this or any particularly section it needs to be stuck in ???

Ian.

 

language file:

define('TEXT_IN_CART', 'CART | %s %s | SUBTOTAL %s');
define('ITEM_1', 'ITEM ');
define('ITEM_NOT_1', 'ITEMS ');

 

header:

<?php echo sprintf(TEXT_IN_CART, $cart->count_contents(), $cart->count_contents()== '1' ? ITEM_1 : ITEM_NOT_1 , $cart->display_total()); ?>

Posted

That information is included in the post. One bit in the language file, the other in your header to suit your design.

Posted

I neglected to mention that i have the last STS pack installed so this probably confused the whole. Maybe this wasnt the place to pose the question.

Archived

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

×
×
  • Create New...