Contrib type:
Theme/TemplateStatus:
Initial uploadCompatibility:
Ubercart Beta 4I was looking for something to tie the users in a bit more than .... "the cart is empty".
This is a very simple submission.
You will have to modify the theme function to match your them.
Instructions:
1) in the theme folder for the theme that you are using (i.e. /themes/iron_picket_red/) create a file called template.php.
2) open file and paste these contents in.
3) find "iron_pickets_red" and replace with your actual theme name.
<?php
// $Id: template.php,v 1.4.2.1 2007/04/18 03:38:59 drumm Exp $
function iron_pickets_red_uc_empty_cart ()
{
return '<p>'. t('There are no products in your shopping cart.') . '</p>' .
'<br /><p>At <strong>IronPickets.Com</strong> we appreciate the opportunity to help you with your home improvement needs. If you are having trouble getting started, check out our catalog below:</p>'
. theme_uc_catalog_browse ();
}Now you will have a catalog displayed on the cart page when it is empty.
Check it out: http://www.ironpickets.com/cart
| Attachment | Size |
|---|---|
| template.php_.txt | 570 bytes |


Re: Show the product catalog in cart when empty
Great idea and contribution. Thanks for posting.