Is there a way on an external page outside of CS-Cart that I could setup a search query that would give me the results as if I’m on my CS-Cart site?
[quote name=‘tweaker’]Is there a way on an external page outside of CS-Cart that I could setup a search query that would give me the results as if I’m on my CS-Cart site?[/QUOTE]
You can setup a form or similar doing
```php
```
just for sh**s and giggles, i threw this together and it actually works from an external page
```php
Search Back Issues |
|
![]() |
```
couple of quick notes i think i see...
line 1-use index.php if you don't use SEO or Catalog
Line 10-change the bgcolor and/or the width to suit your taste
I commented out the category option box, BUT you can use it if you like, just hardcode it.
EDIT:
I setup a quick test page for ya.
[URL="http://www.xnat.com/test_search.html"]http://www.xnat.com/test_search.html[/URL]
Also added one with the categories:
[URL="http://www.xnat.com/test_search2.html"]http://www.xnat.com/test_search2.html[/URL]
(Femlin will not show up in a few of these categories though)
This is awesome!! How do I code it with the categories? Any example?
Try this…
View Source on your site…
Find the Search Template
Copy and Paste everything between the as indicated below (using your values of course):
paste that into the page where it belongs right after this line:
You can always View Source on the 2 test pages I have up to help you locate where to put the categories.
Mike,
I modified your first posted code a little and it works great with CS-Cart 3.0.2
```php
Thanks!