Guest Posted July 4, 2003 Posted July 4, 2003 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
xempel Posted July 4, 2003 Author Posted July 4, 2003 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.
Guest Posted July 4, 2003 Posted July 4, 2003 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
xempel Posted July 4, 2003 Author Posted July 4, 2003 no the picture will be above the totalamount i whant it to be at the bottom but in the box.
Guest Posted July 4, 2003 Posted July 4, 2003 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.