Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Continue Shipping button to ALSO Update Cart


Guest

Recommended Posts

In catalog/shopping_cart.php I'd like the "Continue Shopping Button" to also Update the Cart at the same time...

 

I tried replacing the code around lines 189-198 ie

 

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

    }

?>

 

with the following code

 

<?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_draw_form('cart_quantity', tep_href_link(FILENAME_SHOPPING_CART, 'action=update_product')),

    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 then when I access the shopping_cart.php page via my browser, I get the following warning:

 

Error!

Unable to determine connection method on a link!

Known methods: NONSSL SSL

 

And my "Continue Shopping" button disappears

 

 

Anyone got any ideas re: this?

 

Thanks,

J

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...