BigMike7801 Posted December 19, 2005 Posted December 19, 2005 Does Anybody know how to make this a link back to my home page? I found the code in shopping_cart.php <?php $back = sizeof($navigation->path)-2; if (isset($navigation->path[$back])) { ?> <td class="main"><?php echo '<a href="' . tep_href_link($navigation->path[$back]['page'], tep_array_to_string($navigation->path[$back]['get'], array('action')), $navigation->path[$back]['mode']) . '">' . tep_image_button('button_continue_shopping.gif', IMAGE_BUTTON_CONTINUE_SHOPPING) . '</a>'; ?></td> <?php } ?> but I'm not sure how to manipulate it. I've tried a couple of things that don't work so any suggestions would be appreciated. Thanks - Big Mike
Guest Posted December 19, 2005 Posted December 19, 2005 <td class="main"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue_shopping.gif', IMAGE_BUTTON_CONTINUE_SHOPPING) . '</a>'; ?></td> :) Matti
BigMike7801 Posted December 19, 2005 Author Posted December 19, 2005 <td class="main"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue_shopping.gif', IMAGE_BUTTON_CONTINUE_SHOPPING) . '</a>'; ?></td>[code] :) Matti So I'm guessing where it says FILENAME_DEFAULT that's where I puut the link? If not could you explain it a little more? Thanks - Mike
Guest Posted December 19, 2005 Posted December 19, 2005 So I'm guessing where it says FILENAME_DEFAULT that's where I puut the link? If not could you explain it a little more? Thanks - Mike FILENAME_DEFAULT = index.php - (e.g. http://yoursite/catalog/index.php) or if you install your oscommerce at the main directory of your site then it should be like this "http://yoursite/index.php" hope it helps. regards........
BigMike7801 Posted December 19, 2005 Author Posted December 19, 2005 I used it on my test site and got it to work perfectly but when I was looking at my real site I noticed that the button was gone all together. I tried a few things to get it to work but no luck. Maybe you could like at my code and see if you notice anything for that part or have any suggestions on how to fix it. Thanks guys. <?php $back = sizeof($navigation->path)-2; if (isset($navigation->path[$back])) { ?> <td class="main"><?php echo '<a href="' . tep_href_link($navigation->path[$back]['page'], tep_array_to_string($navigation->path[$back]['get'], array('action')), $navigation->path[$back]['mode']) . '">' . tep_image_button('button_continue_shopping.gif', IMAGE_BUTTON_CONTINUE_SHOPPING) . '</a>'; ?></td> <?php } ?>
Guest Posted December 19, 2005 Posted December 19, 2005 I used it on my test site and got it to work perfectly but when I was looking at my real site I noticed that the button was gone all together. I tried a few things to get it to work but no luck. Maybe you could like at my code and see if you notice anything for that part or have any suggestions on how to fix it. Thanks guys. <?php $back = sizeof($navigation->path)-2; if (isset($navigation->path[$back])) { ?> <td class="main"><?php echo '<a href="' . tep_href_link($navigation->path[$back]['page'], tep_array_to_string($navigation->path[$back]['get'], array('action')), $navigation->path[$back]['mode']) . '">' . tep_image_button('button_continue_shopping.gif', IMAGE_BUTTON_CONTINUE_SHOPPING) . '</a>'; ?></td> <?php } ?> put your shop address(website url of your shop) here.
BigMike7801 Posted December 19, 2005 Author Posted December 19, 2005 put your shop address(website url of your shop) here. the url to my shop is www.habfgiftshop.com or http://habfgiftshop.com/osCommercehabfgiftshop/catalog/ the url to the shoppingcart is http://habfgiftshop.com/habfgiftshoponline...opping_cart.php the url to the test one that I got to work is http://habfgiftshop.com/osCommercehabfgift...opping_cart.php
Guest Posted December 19, 2005 Posted December 19, 2005 Replace all the code you originally posted with *exactly* what I posted and it will work :-" Matti
Guest Posted December 19, 2005 Posted December 19, 2005 I think all of them are working. the url to my shop is www.habfgiftshop.com or http://habfgiftshop.com/osCommercehabfgiftshop/catalog/ the url to the shoppingcart is http://habfgiftshop.com/habfgiftshoponline...opping_cart.php the url to the test one that I got to work is http://habfgiftshop.com/osCommercehabfgift...opping_cart.php
BigMike7801 Posted December 19, 2005 Author Posted December 19, 2005 I think all of them are working. http://habfgiftshop.com/habfgiftshoponline...opping_cart.php Isn't working because when you put something in the cart the "Continue Shopping" Button doesn't appear.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.