I have one problem with this solution. If we use the function remove_all() in this case the items not delete from table customers_basket and if the customer login again, the content of basket will appear...
I tried to replace the function to cleanup() , but it doesn't work.
I'm waiting for the comments.
Thank you! Helpfull post.
Here is the code of the new button:
<span class="buttonAction"><?php echo tep_draw_button(IMAGE_BUTTON_REMOVE_CART, 'trash', tep_href_link(FILENAME_SHOPPING_CART, tep_get_all_get_params(array('action')) . 'action=clear_cart')); ?></span>
Hi all,
I would like to add a new button to shopping_cart.php, which delete all products from my basket (shopping cart) with one click. I searched in the topics, but didn't find any solution for this feature.
Can anybody help me?
Kind regards,
Tamas