Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Quick Help needed - How to I add a link to shopping cart box to go to Checkout?


Recommended Posts

Hi All,


Can someone give me a quick hand for adding a link to go to check-out that I want to place into the Shopping Cart info box.





Link to comment
Share on other sites

using this will make the header of your shopping cart box a link (if its an image):

	<td colspan=3 width="100%">  <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" >
<img border="0" src="images/boxes/table_shopping_cart.gif" alt="check out">


Then you just create a graphical header that is called table_shopping_cart.gif


OR you can find the text that is in the header and do this:


<a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" >
Shopping Cart

A great place for newbies to start

Road Map to oscommerce File Structure

DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways!


HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you


Proud Memeber of the CODE BREAKERS CLUB!!

Link to comment
Share on other sites

The shopping cart box in a default osc is in inlcudes/boxes/shopping_cart.php.


To put a link to checkout find in the above mentioned file towards the bottom

  new infoBox($info_box_contents);

Just above that add

  $info_box_contents[] = array('align' => 'left', 
						   'text' => '<a href="' . tep_href_link(FILENAME_CHECKOUT, '', 'SSL') . '">' . HEADER_TITLE_CHECKOUT . '</a>';);

If you want that an image make it

  $info_box_contents[] = array('align' => 'left', 
						   'text' => '<a href="' . tep_href_link(FILENAME_CHECKOUT, '', 'SSL') . '">' . . tep_image(DIR_WS_IMAGES . 'your_image.gif', HEADER_TITLE_CHECKOUT) . '</a>';);

Link to comment
Share on other sites

  • 1 year later...


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

  • Create New...