Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Continue Shopping


Properkids

Recommended Posts

I have found the following code for oscommerce;

 

<?php

$back = sizeof($navigation->path)-2;

// BOF FWR Mod category based continue button

$count = count($products);

if( isset($products[$count-1]['id']) ) {

$continueButtonId = tep_get_product_path(str_replace(strstr($products[$count-1]['id'], '{'), '', $products[$count-1]['id']));

}

if( isset($continueButtonId) ) {

?>

<td align="center" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=' . $continueButtonId) . '">' . tep_image_button('button_continue_shopping.gif', IMAGE_BUTTON_CONTINUE_SHOPPING) . '</a>'; ?></td>

<?php

// if (isset($navigation->path[$back])) {

} elseif (isset($navigation->path[$back])) {

// EOF FWR Mod category based continue button

?>

<td align="center" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue_shopping.gif', IMAGE_BUTTON_CONTINUE_SHOPPING) . '</a>'; ?></td>

<?php

}

?>

 

The code works, but it uses the function tep_image_button, instead of tep_draw_button for oscommerce 2.3.2.

When i change;

 

<td align="center" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=' . $continueButtonId) . '">' . tep_image_button('button_continue_shopping.gif', IMAGE_BUTTON_CONTINUE_SHOPPING) . '</a>'; ?></td>

 

into

 

<td align="center" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=' . $continueButtonId) . '">' . tep_draw_button(IMAGE_BUTTON_CONTINUE_SHOPPING) . '</a>'; ?></td>

 

Al it does it refreshes the shopping cart and not taking you to the proper URL.

 

Can someone help with the above code, and make the changes needed for the function tep_draw_button?

 

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...