Product options and Add To Cart button don't appear on some pages in Magento - magento

I have this issue where on some products the Add To Cart button and product options do not show up on the page. I have traced the code and have determined the problem is with the isSaleable attribute.
Tracing the code it seems like it should be returning true and if I hard code true in the isSaleable function everything shows up correctly. It seems to only be doing this for configurable products. Looking at the code and it looks like to me that the Config product bases the isSaleable on whether the product is enabled or disabled.
My question is, am I missing something else here and what would the repercussions would be if I were to just make that function return true all the time? We do not really use stock tracking.

It's been a while since I've worked with Magento CE, but I think isSaleable is tied to the stock management system. I think you need to check the stock options and mark it in stock (with, of course, the product set to enabled). I would avoid hardcoding any of the functions if possible.
Edit: Did you try Inventory -> Manage Stock to "No" ? This is kind of a no-brainer, but products are set to be disabled by default, so General -> Status to "Enabled" is also required.

Products not displaying and/or displaying "out of stock" is a common Magento "gotcha".
To help myself and others troubleshoot this frustrating issue, I've compiled this checklist from this excellent SE answer:
Magento products will not show in category
and have added #7, to address a possible Magento Enterprise Edition cause of the hidden / out of stock products problem.
The products must be Visible in Catalog.
The products must be Enabled.
Product must have a stock Quantity.
The product must be set to In Stock. If the product is set not to track stock, it still has to have a stock Quantity and be set to In Stock.
The product must be assigned to the target Category.
If using multi-website mode (or if you imported the products through Data Flow), the products must be assigned to the target Website.
Check Admin > Catalog > Categories > Catalog Events - make sure there is not a "closed" Catalog Event applying to your Categor(y/ies) or Product(s)
Refresh your Cache / Indices.

Related

Products not showing up in Magento search, but are on website

I'm having major issues with my search function in Magento, the products are showing up in some searches, in the main categories, but when I search for the specific product model number (which most customers will search for).
For example searching for a YAMAHA PSR-E233 61-KEY PORTABLE KEYBOARD if I type in Keyboard it comes up under that category, but if I search 'PSR' which most people would search, it says 'no products to show' - which is areal issue for our site.
Apologies I am new to web development in generally and am learning Magento, I have spent all afternoon searching for this and have not been able t fix it, I have tried all the obvious settings in Magento that I have come across, such as
Please check following settings are done for your product
The products must be Visible in Catalog.
The products must be Enabled.
Product must have a stock Quantity.
The product must be set to In Stock.
If the product is set not to track stock, it still need to have a stock Quantity and be set to In Stock.
The product must be assigned to the target Category.
If using multi-website mode (or if you imported the products through Data Flow), the products must be assigned to the target Website.
You must refresh your “var/Cache” & rebuild all indexes from admin > system > index management
Any help would be greatly appreciated
Thanks
You need to set the visibility attribute on the product to catalog, search. That will make sure the product can be found.
You also need to set which attributes are searchable. Go into the attributes admin page under catalog. Then find the attribute you want (SKU I'm guessing). Inside that change the Use in Quick Search and Use in Advanced Search options to Yes

Magento 1.9 Custom Math Pricing / Simple Product Issue with Price

I've installed an extension, Custom Math Pricing by Mico Solutions, and I am experiencing 2 issues with my site now.
Issue 1: When I customize the product, the price is updated correctly on the product page, however, when the product is sent to the cart, a portion of the price is missing (length x price per foot). I checked in the database to look for the price and could only find records of the wrong price so the price is only showing for the product page. The portion of the calculation that is missing from the price includes an attribute which is set as a variable rather than custom options. The custom options calculate perfectly.
Issue 2: When I customize a simple product and add it to the cart, I cannot go back to that product page and customize it a second time, the price remains fixed on the "base" price. Let's say the product has a base price of $10.00. When I customize it, the price stays at $10.00 but is different in the cart. I have to delete my browser cache and cookies in order to customize it again and by doing that, my cart is emptied.
So my question is, where in the code can I find the pricing that is being sent to the sales_flat_quote table in the database. Additionally, how can I debug or correct the issue of customizing a product a 2nd time?
It seems like you've got an issue with conflicting extensions. Your best bet is to go to the Admin modules section (Admin > System > Configuration > Advanced > Advanced) and disable anything else that appears to deal with product pricing. Reset the cache and index and try again. I am somewhat familiar with this extension and it's not compatible with configurable products... make sure your products are simple product types when adding products.

Magento category page displays no products

When I view a category page (ie. url.com/category.html) the page shows the category title, description but no products. Doesn't seem to be loading them since I get this message "There are no products matching the selection."
The products are enabled, visible in catalog & search, have quantity and are in stock and product categories are listed under a root category called "Default Category". I have a featured products listed on the home page by category ID which display fine and individual product detail pages display as they should as well.
I have tried refreshing cache/indexes and searching Google all to no avail. I thought it may be an issue caused by a customization I made to the theme but switching to the default theme made no change so it would seem I must be missing something in the product or category configurations.
Possibly related? – searching always returns no results even if by product name
I am using magento ver 1.5.1
Please check following settings are done for your product
The products must be Visible in Catalog.
The products must be Enabled.
Product must have a stock Quantity.
The product must be set to In Stock.
If the product is set not to track stock, it still need to have a stock Quantity and be set to In Stock.
The product must be assigned to the target Category.
If using multi-website mode (or if you imported the products through Data Flow), the products must be assigned to the target Website.
You must refresh your “var/Cache” & rebuild all indexes from admin > system > index management
Hope this helps you.
Next time if you have same problem you can try two things:
1 - Reindex catalog and products
2 - Check user permissions
If you move your database from one server to another or you restore the database you might want to check the customer_group table. More specifically you should check the "NOT LOGGED IN" records and its ID, it should be "0" if it is not the products won't be visible for that group of users which is pretty much all users on most Magento shops.
How many attributes do you have? Too many attributes marked as "Visible on product listing page" can break the indexes. Are there records in the catalog_product_flat_* table(s)?
OK after I looked up the records and replaced my theme's list.phtml file with the default one (for about the 100th time) products started displaying. Not sure what changed but as long as they continue to display I'm happy.

Configurable Products not visible on Front end - Magento 1.5

I have approx 30k Simple SKU with 950 Configurable products. I have used MAGMI to upload the inventory on my website. The inventory is successfully added to my website, I can see my simple products associated with configurable products properly. But the main problem is they wont show on the frontend.
I have done the following things
Checked the status if the item is in stock or not
Simple products have inventory in them
The main surprise is when I add the configurable product manually then it shows in the frontend. I am not sure what is the reason behind it. can someone help?
To make a configurable product visible in the front end you should only have to do the following.
On the inventory tab, mark availability as 'In Stock'.
Ensure there is a simple product associated.
Ensure the simple product has availability marked as 'In Stock'.
Ensure the simple product has qty set above the out of stock quantity
threshold.
Ensure both the simple product and configurable product is associated to the correct website.
On the General tab of the configurable make sure Visibility is set to
something other than not visible individually.
Re-index (System > Index Management > Select All > Submit.
This usually happens with custom product importing when a key attribute is missed. To prove this, try the following things:
Select a configurable product via the Magento Admin and save it. Then go to one of it's simple products and save that too.
Manually add the configurable product (you have already done this)
If either - or both - of these fix the issue, you know that the import has not worked correctly
Re-index (System > Index Management > Select All > Submit.
Problem Solved..

Why are my related products not displaying on my product page?

I have gone to admin -> manage product -> product information page -> related products
Then I added a product that is related, and saved.
I went to that product and refreshed the page, but nothing changed. Why not?
Also, be sure to check that the product you're trying to see in 'Related Products' is not already in your cart. Magento has a default filter applied that removes items in the cart from the related products collection.
Solution:
Login to Admin
Go to System -> Index Management
Select All checkboxes
Select 'Reindex Data' from Actions selection list
Click Submit button
Reference: Magento Up-sells Cross-sells and Related products are not showing up
Related Products appear in product info page, in the right column.
Cross Sell items appear in the shopping cart.
Upsells for this product are items that your customers would ideally buy instead of the product they’re viewing.These appear on the product info page underneath the product description.
As a result, I understand that you would show products bottom of the product info page, you should choose upsells instead of related products.
If you want related products ( which I can misunderstanding you ) do following things :
Check related product status is enabled.
Check visibility status set "Catalog" or "Catalog Search"
If everything is fine, check the inventory of related products.Stock should be greater than 0.
Last thing, related products must be include a category. Click "categories" link to check and see if the product added in a category.
Click on the "Reset Filter" button on top of the related product listing. It will list all products in table. Or you can clear cache + reindex data.
I had the same issue. After some time ago, I found that the products are not made to be visible in the visibility section, and that the products are not set to be in any website.
Hope this is the answer, and should be, because if you set up everything right there is nothing that can make problems.
Make sure the product and related product are under the same website. This isn't apparent when adding the relating products.
One possible pitfall you can run into is that you use a template without a right column. In that case you have to use unsetChild and insert to move the related product block.

Resources