CMS MADE SIMPLE FORGE

Products

 

[#5866] Include all parameter of action 'do_search' to url of the very first result page

avatar
Created By: Andrius Pečiūra (Peciura)
Date Submitted: 2010-12-18 19:24

Assigned To:
Resolution: Won't Fix
State: Closed
Summary:
Include all parameter of action 'do_search' to url of the very first result page
Detailed Description:
If search action returns only one page of products there is no way to save link
of search results. Also all search results  could be tracked by Google
analytics.

It could be done like this:

if(empty($params['page'])){
	$params['page'] = '1';
	$this->RedirectForFrontEnd($id, $returnid, 'do_search', $params, FALSE);
}

History

Updates

Updated: 2013-09-05 18:00
state: Open => Closed

Updated: 2012-12-01 20:34
resolution_id: 5 => 8

Updated: 2010-12-18 19:50
description: If search action returns only one page of products there is no way to save link of search results. Also all search results could be tracked by Google analytics. It could be done like this: if(empty($params['page'])){ $params['page'] = '1'; $thi => If search action returns only one page of products there is no way to save link of search results. Also all search results could be tracked by Google analytics. It could be done like this: if(empty($params['page'])){ $params['page'] = '1'; $thi
resolution_id: => 5