Horje
GetShopped (wp-ecommerce): if() test is shopping cart empty? - Wordpress Solution
I've built an e-commerce site and I'm using the plugin from GetShopped to manage the shopping cart. I've placed the shopping cart in the template with this it of code:
<?php echo nzshpcrt_shopping_basket(); ?>
However, I actually want this only to appear if there is something in shopping cart. In pseudo code, what I want looks like this:
<?php if (!shopping_cart_is_empty()): ?>

    <?php echo nzshpcrt_shopping_basket(); ?>

<?php endif ?>
How can I achieve this?

Solution - 1

Hi, you should use code: cheers.





Wordpress

Related
Custom Sidebar - Slightly Buggy - Wordpress Solution Custom Sidebar - Slightly Buggy - Wordpress Solution
Creating A Tricky/Complex Custom Post Type Navigation - Wordpress Solution Creating A Tricky/Complex Custom Post Type Navigation - Wordpress Solution
Filtering taxonomy archive by custom post type - Wordpress Solution Filtering taxonomy archive by custom post type - Wordpress Solution
Order By Multiple Meta Fields - Wordpress Solution Order By Multiple Meta Fields - Wordpress Solution
Updating class-snoopy.php widget to http.php - Wordpress Solution Updating class-snoopy.php widget to http.php - Wordpress Solution

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7