Shopping Basket

 x 

Cart empty


Log In

Find Us Elsewhere

SSL

Forum Search

Keyword

Search Index setting in the plugin seems to be getting ingnored.

  • 2ndrendermedia
  • 2ndrendermedia's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
6 months 1 week ago #3884 by 2ndrendermedia
2ndrendermedia created the topic: Search Index setting in the plugin seems to be getting ingnored.
I have the search module on my site and in the plugin settings, the Search Index is set to "Video Games", however when i do a search it brings up results for many things that are definitely not games. For example, i searched for "gears" and 1 of the results is the game "Gears of War" (which is to be expected) and the rest are being pulled from other categories (like a literal bag of gears).

Please Log in or Create an account to join the conversation.

More
6 months 1 week ago #3886 by boggler
boggler replied the topic: Search Index setting in the plugin seems to be getting ingnored.
Sorry about this, yes the product search module is a bit basic, it just does a search of the entire database. We will improve this in the next release.

In the meantime you could do a simple fix by overriding the template for the module, by forcing a value for the search index in the form code, you just need this
<?php
/**
* 
* 
* @copyright	Inspiration Web Design
* License GNU/GPL
*/

// no direct access
defined('_JEXEC') or die('Restricted access');
?>
<form action="<?php echo JRoute::_('index.php'); ?>" method="get">
<input size="20" name="keywords" id="keywords" class="input-small search-query" type="search" placeholder="<?php echo JText::_('ASC_PRODUCT_SEARCH'); ?>"/>
<input type="hidden" name="option" value="com_amazonws" />
<input type="hidden" name="view" value="productsearch" />
<input type="hidden" name="Itemid" value="<?php echo $mitemid; ?>" />
<input type="hidden" name="displaykeys" value="1" />
<input type="hidden" name="searchIndex" value="Video Games" />
</form>

Please Log in or Create an account to join the conversation.

  • 2ndrendermedia
  • 2ndrendermedia's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
6 months 1 week ago #3887 by 2ndrendermedia
2ndrendermedia replied the topic: Search Index setting in the plugin seems to be getting ingnored.
That worked a treat. Thanks for your help.

Please Log in or Create an account to join the conversation.

Moderators: boggler
Time to create page: 0.247 seconds