Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Continue Shopping Link


BigMike7801

Recommended Posts

Posted

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

Posted

<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

Posted

<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

Posted
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........

Posted

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
}
?>

Posted
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.

Posted

Replace all the code you originally posted with *exactly* what I posted and it will work :-"

 

Matti

Archived

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

×
×
  • Create New...