Guest Posted October 13, 2008 Share Posted October 13, 2008 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. Cheers, Richard Link to comment Share on other sites More sharing options...
lindsayanng Posted October 13, 2008 Share Posted October 13, 2008 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"> </a></td> 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> 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 More sharing options...
Guest Posted October 13, 2008 Share Posted October 13, 2008 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 More sharing options...
gruntstyle Posted April 19, 2010 Share Posted April 19, 2010 I've tried all of the different methods that you quote above. I keep getting the same error: Parse error: syntax error, unexpected ';', expecting ')'" This is my signature. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.