Magento product details page not loading after search result - magento

In my magento website, whenever i am trying to view the product details page from search result (means product list is generated from the search query) its not loading the product details page properly. After the breadcrumbs its not displaying anything.The sample url is given below.
https://www.example.com/index.php/test.html
And the breadcrumbs is displaying like Home/test.html
If I go the category page and view the same particular product then it shows perfectly with below url.
https://www.example.com/index.php/category1/test.html and breadcrumbs looks like Home/category1/test.html.
Any help will be greatly appreciated.

Truncate the url_rewrite table.
Delete all files from var/locks.
Reindex and i think it should work.

Actually problem was on my catalog/product/view.phtml page. I have a magento store with 30k products and I have used a theme which have functionality to displaying Pre/Next product in details page for this details page was taking lot of time to execute. I have just removed the pre/next functionality from catalog/product/view.phtml page and it works fine.I have also truncated the core_url_rewrite table and Reindex Catalog URL Rewrites.

Related

How to solve duplicate content issues in Magento?

On magento Site that i am working on certain products have minor changes in the product setup, except the product description.How do i solve the duplicate content issue without creating variable product?
Canonicalization may be your best bet. This tells search engines which version of the page you want to be indexed.
For example:
If you have /productCategory/product001 as well as /newProducts/product001 you would want to add <link rel=”canonical” href=”http://www.domain.com/productCategory/product001”> to the new product page to tell search engines to give all ranking authority to the new product page to the actual page for that product.
This product will still rank, you're just going to be showing users the product under its category rather than the product under the new products page.

magento search not showing single product on manufactuer list page

Magneto search not showing single product on manufacturer list page,
it redirecting product on product page.
I don't want to redirect it, i am notable to find ta redirect code.
I am using search landing page for show listing of brand vise product
thanks in advance

adding product listing on magento homepage with description

I need to show my new products on the home page as a list view. I have used a Magento widget, but it is not returning the description of the product. How can I fetch the whole details of the product in the home page as shown in the image below?
First find out(template hint) the file from where your widget is rendering products. It's located in app/design/frontend/<yourpackage>/<yourtheme>/template/catalog/product/widget/new/content/new_grid.phtml/new_list.phtml
Go look in that file, you will see how and what values are the widgets printing. So if you want description within the foreach loop you can get by printing $_product->getShortDescription() or $_product->getData('short_description')
Similarly to get other stuff like in list page, please take reference from template/catalog/product/list.phtml see how the other details are being printed and get those here on widget phtml file.

Add page number in page title - magento

Have one issue which don't like google for seo.
All the categories having the same title if going by pages in that category, so I want to add page number in page title. Is any solution?
Copy file from /app/code/core/Mage/Page/Block/Html/Head.php to app/code/local/Mage/Page/Block/Html/Head.php modify with the following code which is getting default page number.
Mage::getBlockSingleton('page/html_pager')->getCurrentPage();

Magento Out of stock product SEO

I hope many of you gone through this issue/problem.
When we setup magento store with 1000 products. Each will hold a unique URL, and when its gets scraped by google(search engines) then the product always should be in-stock if not then magento store will return 404 page.
For example:
www.magestore/unique-url.html
This gets daily 100's of hits towards site even the product was out of stock and not able to view in store so its returning 404.
Solution
URL rewrite is the solution that's what am trying daily, but if the products getting out of date is really high and cant able to do rewrite means then in most of points loosing SEO hits which leads to 404.
If I enable Out of stock visibility true then the product list also included the out of stock items, but I don't need that,need only direct URL Access.
Am sure, many of you could solved it, please tell me a way to show these products only on direct URL Access but not in the regular product list view page.
Thanks
Enable Out Of stock visibility and have your extension redirect all out of stock items to wherever you redirecting those now

Resources