latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Hide shopping cart when empty

Home Forums Community Forum Hide shopping cart when empty

This topic contains 3 replies, has 2 voices. Last updated by  Cristián Lávaque 4 years ago.

Topic Author Topic
Posted: Sunday Dec 9th, 2012 at 11:49 pm #34103

Hi. Simple question. I want to hide the shopping cart widget when the user’s cart is empty. I have the function:

if ( ! is_user_logged_in() ) {
// show nothing if the user is not logged in
} else {
echo s2member_pro_login_widget();
//show the my profile widget
}
?>
to hide the profile widget if the user is logged in. I need the equivalent of ‘s2member_pro_login_widget’ for the shopping cart. Something like ‘s2member_pro_shopping_cart_widget.’ Nothing I’ve tried has worked.

Thanks.

List Of Topic Replies

Viewing 3 replies - 1 through 3 (of 3 total)
Author Replies
Author Replies
Posted: Monday Dec 10th, 2012 at 7:53 am #34131

Billy, s2Member doesn’t have a cart, or a widget for it. Maybe you’re confusing s2Member with a shopping cart you also have installed in your site?

Posted: Wednesday Dec 12th, 2012 at 2:03 pm #34397

Yeah, that’s it. It’s WP e-Commerce.

Posted: Thursday Dec 13th, 2012 at 6:21 pm #34491

Got ya. Thanks for the update. :)

Viewing 3 replies - 1 through 3 (of 3 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.