theme_uc_empty_cart

函数theme_uc_empty_cart()位于uc_cart.module模块中:

<?php
  theme_uc_empty_cart()
?>

 

描述:

当用户访问购物车页面时,购物车中还没有商品的情况下,所显示的信息,由这个函数负责。

返回值:

一个字符串,包含了空购物车页面的HTML输出。

 

例如:

<?php
// Default function from uc_cart.module
function theme_uc_empty_cart() {
  return '<p>'. t('There are no products in your shopping cart.') . '</p>';
}
?>

 

相关链接: http://ubercart.org  Think in Drupal

论坛:

Drupal版本: