Shop made Simple: Search Terms

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
zappodrom
Forum Members
Forum Members
Posts: 91
Joined: Wed Apr 23, 2008 11:38 am

Shop made Simple: Search Terms

Post by zappodrom »

Hi guys,

I want to add some additional search terms to each product within Shop-made-Simple. Most likely they should not appear in the Productdescription. I tried with the Image-Description and with Attributes, but no success. Did'nt these fields indexed by the search module? Is there a way to get an extra field for search terms for example?

Hope someone could help.

Regards...
Regards,
Christian

----
[X] <--- Nail here for new Monitor!
Duketown

Re: Shop made Simple: Search Terms

Post by Duketown »

zappodrom,

I used 'AddWords' as search criterium on this forum. I found at least the following:
http://forum.cmsmadesimple.org/index.php?topic=33025.0.

I think that if you push the following code in an UDT (copied and changed from mentioned topic):

Code: Select all

$modulename = 'ShopMadeSimple';
$module =& $this->GetModuleInstance('Search');
if ($module != FALSE)
  {	
	$text = 'search argument to a product';
	$module->AddWords($modulename, $product['product_id'], 'product', $text, NULL); // the last one is the expiry date
}
Duketown
Last edited by Duketown on Tue Sep 28, 2010 3:51 pm, edited 1 time in total.
User avatar
zappodrom
Forum Members
Forum Members
Posts: 91
Joined: Wed Apr 23, 2008 11:38 am

Re: Shop made Simple: Search Terms

Post by zappodrom »

Thanks, Duke.

If I understand the code, I have to add something like this in every Productdescription?

Code: Select all

{ProductSearch text='FooBar, Blah, Boing'}
Am I right?
Maybe it's possible to get an additional contentfield within the Articeldetail-Tab (just for usabillity of course ;) )?

Regards...
Regards,
Christian

----
[X] <--- Nail here for new Monitor!
Duketown

Re: Shop made Simple: Search Terms

Post by Duketown »

zappodrom,

That will (I've not tested it) add search words each time a visitor checks the details of a product on the front end. Not exactly what you want I would say.
You will have to do something more manually:
- Prepare the UDT with a variable for product id and text to search for;
- Use the UDT on a hidden page on the front end;
- Request the page each time you added a product or want to add new search criteria.

Hardly a nice solution. Best way to get this solved is indeed something like a text field in which one could fill in additional search criteria per product. Either you have to extend the module your selve (if you need the function now or put in a feature request so I know that at least you want something like this as a function in the module.

Duketown
User avatar
zappodrom
Forum Members
Forum Members
Posts: 91
Joined: Wed Apr 23, 2008 11:38 am

Re: Shop made Simple: Search Terms

Post by zappodrom »

Duketown,

maybe it's easier to make the Search-module crawl the Picture-Description Field or something else?
Regards,
Christian

----
[X] <--- Nail here for new Monitor!
Post Reply

Return to “Modules/Add-Ons”