Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Checkout and cart button in my shoppingcart box.


xempel

Recommended Posts

Posted

If you just want to add something to the top or bottom of the box inserting the approptiate html to includes/boxes/shopping_cart.php will do the trick.

(right before the line <?php or after ?>)

 

If you want to add anything to another place you will have to change $cart_contents_string in the same file.

 

Hope this helps,

Rob

Posted

thx for the help!

 

having some trubbel with the $cart_contents_string.

 

i can add i picuture above the line between price and product but i cant add it under the price as i whant..

what am i doing 4 wrong.

Posted

Change this:

      }

   }

   $cart_contents_string .= '</table>';

 } else {

   $cart_contents_string .= BOX_SHOPPING_CART_EMPTY;

 }

 

To something like:

 

      }

   }

   $cart_contents_string .= '<tr><td>' . 'YOUR_HTML_FOR_ADDING_IMAGE' . '</td></tr>';

   $cart_contents_string .= '</table>';

 } else {

   $cart_contents_string .= BOX_SHOPPING_CART_EMPTY;

   $cart_contents_string .= 'YOUR_HTML_FOR_ADDING_IMAGE';

 }

 

Be sure to include the table code into the first occurrence otherwise your layout will be borked.

 

As usual I didn't test this code but it should work.

 

Good luck,

Rob

Posted

You are right I didn't look close enough. See my sig ;-)

 

You should back out thechanges in my last post and try:

Change:

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

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

 }

 

to:

 

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

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

 }

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

 

Should work, if it doesn't your out of luck because I'm done for the day. ;-)

 

Later,

Rob

Archived

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

×
×
  • Create New...