/** * Determines if the requested page is the cart page. * @deprecated Use is_shopp_cart_page() * @param WP_Query $wp_query (optional) will use the global wp_query by default if false, or the WP_Query object to evaluation **/ function is_cart_page($wp_query = false) { return is_shopp_cart_page($wp_query); }
/** * Track the URL as a referrer from catalog pages (collections, taxonomies, products) * * @author Jonathan Davis * @since 1.2 * * @param object $wp The main WP object from the 'wp' action * @return void **/ public function trackurl(WP $wp) { if (!is_shopp_catalog_page() || is_shopp_cart_page()) { return; } // Track referrer for the cart referrer URL $referrer = get_bloginfo('url') . $_SERVER['REQUEST_URI']; $this->referrer = user_trailingslashit($referrer); }