Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

change cartbox


andyshep

Recommended Posts

Hi all.

 

The default cartbox shows a list of items in the cart with a title of the items and then a total price.

 

i would like to edit this so it just shows the total no of items and the total price( no item title )

 

think its the shopping_cart.php i have to edit am i right?

Anyone done this? if you had the code i would be grateful. would save me much time since im only a novice at php.

 

cheers.

Link to comment
Share on other sites

Hi again,

 

ive edited shopping_cart.php to this.

 

<!-- shopping_cart //-->
	  <tr>
		<td>
<?php
 $info_box_contents = array();
 $info_box_contents[] = array('text' => BOX_HEADING_SHOPPING_CART);

 new infoBoxHeading($info_box_contents, false, true, tep_href_link(FILENAME_SHOPPING_CART));

 $cart_contents_string = '';
 $cart_contents_string = '<table border="0" width="100%" cellspacing="0" cellpadding="0">';
  $cart_contents_string .= '<tr><td align="center" valign="top" class="infoBoxContents"><strong>';
 $cart_contents_string .= ($cart->count_contents());
 $cart_contents_string .=' Items ';
 $cart_contents_string .= $currencies->format($cart->show_total());
 $cart_contents_string .='</strong></span></td></tr></table>';
 $info_box_contents = array();
 $info_box_contents[] = array('text' => $cart_contents_string);

 new infoBox($info_box_contents);
?>
		</td>
	  </tr>
<!-- shopping_cart_eof //-->

 

Do i need to add any code for the cookies.

im a novice at php and never used cookies before.

 

cheers

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...