Paid work, or free work? If paid work, then it should have been posted in HaF with proper budget. If free work, I recommend doing it in the thread instead of in the PM.Hey,
I got in a issue with WooCommerce cart and checkout, If anyone has knowledge please hit me.
Will appreciate !!
Thanks
what is your problem? .. just describe it here
You could try sending an ajax request on "onbeforeunload" JS event that clears the cart, but then it could have negative effect if user goes to another page instead of closing the browser.Well i need some arrangement through which i can empty the cart as soon as some returns back in the browser. I don't want to remove the cart i just want it empty when someone returns to the store. Is this possible?
/*empty cart if user come to homepage*/
add_action( 'init', 'woocommerce_clear_cart_url' );
function woocommerce_clear_cart_url() {
global $woocommerce;
if ($_SERVER['REQUEST_URI'] === '/') {
$woocommerce->cart->empty_cart();
}
}