Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Search queries via a URL in version 4.0.x!!

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #11  
Old 02-14-2007, 05:06 AM
  connie's Avatar 
connie connie is offline
 

Advanced Member
  
Join Date: Jul 2004
Posts: 88
 

Default Re: Search queries via a URL in version 4.0.x!!

I use 4.1.2, why it doesn't work?
It still shows
http://www.domainname.com/shop/search.php?mode=search&page=1
__________________
connie
x-cart4.0.14
x-affilate
Reply With Quote
  #12  
Old 02-14-2007, 06:14 PM
  CobaltCat's Avatar 
CobaltCat CobaltCat is offline
 

Senior Member
  
Join Date: Jul 2003
Location: Southern Orygun
Posts: 153
 

Default Re: Search queries via a URL in version 4.0.x!!

Connie -

The link still shows in the browser the same in a straight search, that doesn't change. It's the URL you use in a link that dictates a search. Take a look at the #1 post here, Carrie gives link examples at the bottom of that post.
__________________
Thanks -
CobaltCat

I would love to change the world, but they won't give me the source code.
Reply With Quote
  #13  
Old 02-14-2007, 07:11 PM
  connie's Avatar 
connie connie is offline
 

Advanced Member
  
Join Date: Jul 2004
Posts: 88
 

Default Re: Search queries via a URL in version 4.0.x!!

Thanks for your reply.
The problem is if the search result is more than one page, then the 2nd page link shows
http://shop.com/search.php?mode=search&page=2
I have the problem when first search "monkey" , the page 1 is correct, the page 2 is correct.
Then I search for "rabbit", the page 1 is correct, the page 2 shows monkey's items because the page 2 link is the same http://shop.com/search.php?mode=search&page=2
xcart gives the old searched page
__________________
connie
x-cart4.0.14
x-affilate
Reply With Quote
  #14  
Old 02-15-2007, 02:04 AM
  connie's Avatar 
connie connie is offline
 

Advanced Member
  
Join Date: Jul 2004
Posts: 88
 

Default Re: Search queries via a URL in version 4.0.x!!

I think just post the search result link, then the page 2 can't get search string from METHOD="POST" , how to fix this problem?
Thanks!
__________________
connie
x-cart4.0.14
x-affilate
Reply With Quote
  #15  
Old 02-15-2007, 09:17 PM
  connie's Avatar 
connie connie is offline
 

Advanced Member
  
Join Date: Jul 2004
Posts: 88
 

Default Re: Search queries via a URL in version 4.0.x!!

anybody knows "Search queries via a URL" can also use in search result page 2, page 3 in cart version 4.1.x?
__________________
connie
x-cart4.0.14
x-affilate
Reply With Quote
  #16  
Old 02-20-2007, 01:05 PM
 
stevekem stevekem is offline
 

Senior Member
  
Join Date: Dec 2006
Posts: 111
 

Default Re: Search queries via a URL in version 4.0.x!!

I am having the same problem with 4.1.3 as well. When I use link:

www.domain.com/search.php?search=widget

and it brings back more than 1 page of results & I then use the same link again but change widget to another item that you know will bring back more than 1 page of results, it skips the first page of results on the second search.
__________________
X-Cart Gold v4.4.1
Reply With Quote
  #17  
Old 03-16-2007, 07:56 PM
 
brickholio brickholio is offline
 

Member
  
Join Date: Mar 2007
Posts: 14
 

Default Re: Search queries via a URL in version 4.0.x!!

Did anyone figure out how to fix the multiple page issues for the search strings?

Matt
__________________
4.1.6
Reply With Quote
  #18  
Old 04-11-2007, 01:50 AM
 
alru111 alru111 is offline
 

eXpert
  
Join Date: Dec 2005
Posts: 244
 

Default Re: Search queries via a URL in version 4.0.x!!

For paginated results
www.domain.com/search.php?search=widget&page=2
www.domain.com/search.php?search=widget&page=3


To display search substring in the page title :


in skin1/customer/home.tpl

add something like this:
{elseif $mode eq "search"}
{$smarty.get.search}
__________________
X-Cart version 4.0.19
Reply With Quote
  #19  
Old 04-29-2007, 08:17 AM
  BCSE's Avatar 
BCSE BCSE is online now
 

X-Guru
  
Join Date: Apr 2003
Location: Ohio - bcsengineering.com
Posts: 3,060
 

Default Re: Search queries via a URL in version 4.0.x!!

Quote:
Originally Posted by brickholio
Did anyone figure out how to fix the multiple page issues for the search strings?

Matt


Anyone still having troubles with this for 4.1.x and multiple pages? It just worked for me on a 4.1.3 site using only the code I posted in the original thread.

Let me know!

Thanks,

Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002!

We support X-cart versions 3.x through 5.x!

Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more!


Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com

Please E-Mail us for questions/support!
Reply With Quote
  #20  
Old 05-21-2007, 04:15 PM
 
xcart.com@webguydesign.co xcart.com@webguydesign.co is offline
 

Newbie
  
Join Date: Mar 2005
Location: Madison, WI
Posts: 2
 

Default Re: Search queries via a URL in version 4.0.x!!

How do I get the "search=widget" added to the page links?
Also, search results seem to be off. I have fewer results using this method, than the plain search.

TIA, Jerry
__________________
jerry
x-cart ver: 4.0.12
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:18 AM.

   

 
X-Cart forums © 2001-2020