/** * Shopping constructor * * @return void **/ public function __construct() { // Set the database table to use $this->_table = ShoppDatabaseObject::tablename('shopping'); if (Shopp::is_robot()) { return; } // Initialize the session handlers parent::__construct(); add_action('shopp_init', array($this, 'unlock'), 100); add_action('shopp_cart_updated', array($this, 'savecart')); }
/** * @deprecated Use Shopp::is_robot() **/ function is_robot() { return Shopp::is_robot(); }