Dear @PiLLaO
I am testing your addon Clear Cart Button In Shopping Cart (https://apps.oscommerce.com/hTxnj)
in OsCommerce version 2.3.4.1 BS Edge
But I get the following error:
Error!Unable to determine connection method on a link!
Known methods: NONSSL SSL
The installation instructions are:
2. You need to add two lines of code into /includes/application_top.php
Around line #418 Find:
---------------------
case 'cust_order' : if (tep_session_is_registered('customer_id') && isset($HTTP_GET_VARS['pid'])) {
.
.
.
break;
Right after it add these lines:
------------------------------
case 'clear_cart' : $cart->reset(true);
break;
3. Add this line to /shopping_cart.php
======================================
Around line #136 Find:
---------------------
<div class="buttonSet">
<div class="text-right"><?php echo tep_draw_button(IMAGE_BUTTON_CHECKOUT, 'fa fa-angle-right', tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'), 'primary', NULL, 'btn-success'); ?></div>
</div>
Right before it add this line:
-----------------------------
<div class="buttonSet row">
<div class="col-xs-6"><?php echo tep_draw_button(IMAGE_BUTTON_CLEAR_CART, 'fa fa-trash', tep_href_link(FILENAME_SHOPPING_CART, 'action=clear_cart', 'NOSSL'), 'secondary', array('params' => 'onclick="return confirm(\'' . CLEAR_CART . '\');"')); ?></div>
<div class="col-xs-6 text-right"><?php echo tep_draw_button(IMAGE_BUTTON_CHECKOUT, 'fa fa-angle-right', tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'), 'primary', NULL, 'btn-success'); ?></div>
</div>
4. Add this line to /includes/languages/english.php
===================================================
define('IMAGE_BUTTON_CLEAR_CART', 'Clear Cart');
define('CLEAR_CART',' To empty stand of purchases? ');
But I get the following error:
Any idea that would be wrong? Maybe this addon needs to be updated?
Saludos
Valqui