Page 1 of 1

to clear cart

PostPosted: Thu Jan 05, 2017 12:12 pm
by sklep@.....pl
Hi

I'm wondering if OPC offers clearing the cart by customers. I can't find such option.

Radek

Re: to clear cart

PostPosted: Tue Jan 10, 2017 12:55 pm
by admin
hello radek, the simplest solution is to create a "custom html module" and if using OPC the clear cart is available at this URL:

index.php?option=com_onepage&task=clearcart

just enter this URL within the link, format the link so it looks like a button, or leave it as a link and once this is clicked the cart contents gets cleared.


if you wish to add this into OPC theme, this is how to do it:
1. install OPC Theme positions at the OPC Extensions
2. create the custom module with html like:
Code: Select all
<p><a class="button btn btn-active" href="index.php?option=com_onepage&amp;task=clearcart">Clear Cart</a></p>

3. associate the module to "opc_op_basket_under" + hide the title + publish

this will then show the module right under the cart on your there. if the position is not correct, you can try some other starting with "opc_" .

best regards, stan

Re: to clear cart

PostPosted: Tue Jan 17, 2017 9:59 am
by gestion@.....com
Hi Stan

Thanks for pointing me to this thread.

Code worked for us but only for logged in users.

For unlogged no products are removed from cart, there is a redirect to

carro.html?nosef=1&error_redirect=1 in both cases but unlogged can't remove all products.

Re: to clear cart

PostPosted: Tue Jan 24, 2017 5:41 pm
by gestion@.....com
Solved by Stan's help,

Issue was solved by disabling plugin System - OPC RuposTel Cart Auto Reload Plugin