Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

adding text to shopping cart


akosh

Recommended Posts

includes/boxes/shopping_cart.php

 

find:

if ($cart->count_contents() > 0) {

$info_box_contents[] = array('text' => tep_draw_separator());

$info_box_contents[] = array('align' => 'right',

'text' => $currencies->format($cart->show_total()));

}

 

new infoBox($info_box_contents);

 

 

 

Change to:

if ($cart->count_contents() > 0) {

$info_box_contents[] = array('text' => tep_draw_separator());

$info_box_contents[] = array('align' => 'right',

'text' => $currencies->format($cart->show_total()));

}

 

$info_box_contents[] = array('align' => 'YOURALIGN',

'text' => 'YOURTEXT');

 

new infoBox($info_box_contents);

Link to comment
Share on other sites

You can use a table

 

You would just need to change

'text' => 'YOURTEXT');

to something like this

'text' => '<table><tr><td>YOURTEXT</td></tr></table>');

 

and you can do all your table or cell attributes as well

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Link to comment
Share on other sites

You can use a table

 

You would just need to change

'text' => 'YOURTEXT');

to something like this

'text' => '<table><tr><td>YOURTEXT</td></tr></table>');

 

and you can do all your table or cell attributes as well

 

How would you get php code to work in the table?

Link to comment
Share on other sites

It all depends on what you are trying to do, as I stated above. Why not tell us what you want to add to the box? I am sure someone could better help you then.

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...