nadim900
Forum Replies Created
-
Hello,
Thank you for your replay. Actually on thank you page product details section products item image does not display. Please check that link https://prnt.sc/qq78p4. I have indicate that with read arrow. Aslo i want to inform you that i have used lernpress courses plugin and integrate this with woocommerce plugin.
Please give me a quick solution on this.
Thanks
- This reply was modified 4 years, 10 months ago by nadim900.
Forum: Plugins
In reply to: [WooCommerce] Woocommerce – Clear cart on user logoutHello,
Thank you i have use “clear_auth_cookie” and its working for me.
Below is the code:function log_function_cart() {
global $woocommerce;
$woocommerce->cart->empty_cart();
}
add_action(‘clear_auth_cookie’, ‘log_function_cart’);Forum: Plugins
In reply to: [WooCommerce] Woocommerce – Clear cart on user logoutHey There!
Thanks for your replay. I have already used this code
/*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();
}
}This is working for me. Now its clear my cart But now my main problem is when a user still login and click home button from main menu then card is going to zero. But it should only work when any user logout or close browser. Not this should happen when user is still login. Am i clarify this to you. It is better if you replay quickly.
Thanks
NadimThank you for your replay. Please let me know if any way to do this.
Hello,
Thanks for your replay. Actually in my site i have 4 course. When anyone as a guest (Not login user) click on the “add to cart” button he will redirect to “Cart ” page. When he/she click on proceed button it will redirect him/her to checkout page. That page you know there have by-default option “RETURNING CUSTOMER? CLICK HERE TO LOGIN” option. And user can login here before buy course. But my question is, if this course already bought by this user, he/she should not able to buy this again. There should be some message or something for this. Presently this user can buy this course again.
I think i can clarify this to you in details. If anything more need to explain please inform me. I need that solution urgently.
Forum: Plugins
In reply to: [LearnPress - WordPress LMS Plugin] Lernpress Course ColumnThank you for your replay. It’s worked for me.