I am new to magento. i am have one problem , i have to modify search terms insert query. but i am not able to find it in magento. i am using magento 1.8 version. so if any one have any idea please share. one more thing, if i have to add more field in search query. where and which file i have to modify. please mention the path for files.
In this file remove save code and update your query.
/app/code/core/Mage/CatalogSearch/controllers/ResultController.php
Related
Does anyone in the Parse Platform community know if it's possible to rename a Parse class? E.g. I've got a class called Products and I'd like to rename it to Product.
Is this possible or do I need to do a full migration of all the data?
I found this github issue which was super helpful and lead me to the answer: https://github.com/parse-community/parse-server/issues/617
All I had to do was:
Rename the collection in the db (db.Products.renameCollection('Product')
Find the schema (db.getCollection("_SCHEMA").findOne({_id: "Products"})) and make a copy, update the _id and insert it.
Write a quick script to update all pointers in my Product records to point to className of "Product" rather than "Products".
Remove the old Products schema
Everything seems to be working as expected.
After updating our 6k+ products in Magento 1.7 using CSV import with Magmi the url_keys for all product get 4-digit numbers as suffix.
e.g. before it was www.domain.com/productname.html
after update it's www.dmain.com/productname-5363.html
This happens although the url_key in CSV is set as "productname"
Only way to fix it is to clear all urls from database and reindex - but after next import it's happening again.
Has anyone an idea how to prevent this on import?
The number suffix will be added when one or more url's get the same url. Since that is not possible Magento adds the suffix. Do you know if this occurs?
You try to make product names unique before processing. For example adding a color or a model or something else from your datasource
Or you could automate the step of emptying and reindexing the core_resource table (also take a look at the Magmi plugin On the fly indexer)
My website is http://www.godaam.com. I want to improve my search functionality. I did some changes in magento app code, but I am not able to improve it a lot. Is there any free search engine for my product I can incorporate in Magento, please help me out here?
The magento built-in search is pretty good and you just need to tweak the settings. Do this:
Make sure only the attributes such as SKU, Title, Description and Quick Description are enabled for searching (unless you need others like color etc needed)
Tweak search settings in System > Configuration > Catalog > Catalog Search.
Rebuild the indexes and test it out.
In my experience FULLTEXT search returns more relevant results in comparison to "LIKE" or the "COMBINED" option.
One of the features lacking most from Magento's search is refinement. If you search for multiple terms, it will return a bigger set of products rather than smaller. Our free extension fixes that, just a note: in order for it to work you must set the search config settings to LIKE and not FULLTEXT:
Catalog Search Refinement FREE
I'm trying to develop a Magento plugin which involves using coupons. Apparently after looking around I found a source that mentions use of a 'salesrule' table for coupons. However when I looked at my database i couldn't find it. However I did find 3 tables that had mention 'coupon' called 'coupon_aggregated', 'coupon_aggregated_order', and 'coupon_aggregated_updated'.
I just wanted to know what is the difference between the 3 tables so I can start using them? I am on the latest version of Magento.
The table you're looking for is indeed named
salesrule
There's also a table named salesrule_coupon, which contains specific coupon codes linked back to the main salesrule definition.
If your database is missing this table, something bad has happened to your system. Go to
Promotions -> Shopping Cart Price Rules
and create a new coupon code with a distinct title. Then dump your database content and search for the text of your distinct title. That will let you know which table your system is storing salesrules in.
The tables you mentioned above are aggregate data tables used for reporting only.
I am working on a Magento site, and i would like to edit the default search result.
Editing search result is not editing the appearance of search result but the actual search results generated.
The idea is, if the Magento search does not return any value then i need to do a search in my custom table to fetch some relative products.
Could anyone help me to edit the default Magento search??
Thanks a lot in advance.
You will need to modify some of the models in catalogsearch module, this link has a good explanation of how to override Core classes. In your case you will need to add your logic somewhere in the Query model or its resource or collection models.
This CMS Search extension will provide an excellent example of how to extend the default search. It adds extra content into the search index and allows you to control how those results are presented to the searcher.