to clear cart

Please post any feature requests here

to clear cart

Postby sklep@.....pl » Thu Jan 05, 2017 12:12 pm

Hi

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

Radek
sklep@.....pl
 
Posts: 32
Joined: Sat Aug 06, 2016 10:39 pm

Re: to clear cart

Postby admin » Tue Jan 10, 2017 12:55 pm

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
admin
Site Admin
 
Posts: 2624
Joined: Wed Jan 06, 2010 11:43 pm

Re: to clear cart

Postby gestion@.....com » Tue Jan 17, 2017 9:59 am

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.
gestion@.....com
 
Posts: 127
Joined: Wed Feb 13, 2013 1:34 pm

Re: to clear cart

Postby gestion@.....com » Tue Jan 24, 2017 5:41 pm

Solved by Stan's help,

Issue was solved by disabling plugin System - OPC RuposTel Cart Auto Reload Plugin
gestion@.....com
 
Posts: 127
Joined: Wed Feb 13, 2013 1:34 pm


Return to Feature Request

cron