Magento CE 1.7.0.2 – Imported products do not show up in frontend - magento

I've been battling with this issue for the last week now, and am really hoping someone here might be able to help me with it.
After repeatedly importing products from a CSV generated by a different (and slightly older) Magento store, using both the Import and the Dataflow/Import All Products tools, I can get them to show up in the backend, seemingly with all the data intact and with images and everything, but they simply will not show up in the frontend.
It seems that the only way to make them show up in the frontend is to save them from the admin product page, which I'd rather not make the client do on 1922 products. They do not show up if I add them to categories from the category manager, only (as far as I know) if I save them from the product manager page.
Also note that all products
are enabled
have stock quantity > 0, weight > 0 and price > 0
have stock availability = In Stock
have visibility = "Catalog, search"
have the correct website assigned to them
have the right tax class associated with them
In addition, the cache has been entirely disabled and I've re-indexed everything at least two dozen times. I've also tried running the following snippet of PHP:
$products = Mage::getModel('catalog/product')
->getCollection()
->addAttributeToSelect('*');
foreach ($products as $product) {
if ($product->isSaleable())
Mage::log("Sellable product: {$product->getId()}");
else
Mage::log("Unsellable product: {$product->getId()}");
}
and the log file subsequently contains nothing but "Sellable product: ...". I've also used the same product loop to set the website ID of the product and then save it, which also makes no difference. I've tried outputting the attribute values of various invisible products (using $product->getData()) both before and after saving through the product manager, but I cannot locate any differences whatsoever. I have not examined every MySQL table before and after saving, and frankly, I'd rather not have to do that.
I'm at wits' end. I don't know what else to try. I could re-import the product list for the umpteenth time, but I doubt it'll make a difference. I could try mass-updating the products again (using the product manager's "Actions" dropdown set to "Update Attributes"), but it's probably not going to help this time either. Does anyone have any ideas whatsoever?
My apologies if this is not the correct venue for this kind of question; feel free to point me in the right direction if that's the case.
UPDATE
Turns out that the products did not actually have the right website set, even though the admin panel clearly claimed so for all the products I looked at (none of which showed up in the frontend).
Solution: Manage Products > Select All, then select the action Update Attributes and add the products to the correct website(s). Don't forget to rebuild the indexes.

I had the same problem, so thank you for this answer you provided in your post:
UPDATE
Turns out that the products did not actually have the right website set, even though the admin panel clearly claimed so for all the products I looked at (none of which showed up in the frontend).
Solution: Manage Products > Select All, then select the action Update Attributes and add the products to the correct website(s). Don't forget to rebuild the indexes.

Just to add to this - I also had the same problem, however mine turned out to be the is_in_stock was either 0 or set to a qty value. Needs to be 0 or 1.
Just incase anyone has that issue.

Do you have gd php extension?
Install it (in CentOS):
yum install gd gd-devel php-gd
After execute this
service httpd restart
Best Regards

Related

Why is Magento only showing 22 products on the front when I have 409 configurable products?

Im getting incredibly annoyed with my magento website, I have 4900 products 409 of them are configurable products, when I make a category in this case carpets and try and save the 4900 products to that category it makes a duplicate category called the exact same as the previous, now whats confusing is that I dont know how this is happening usually magento panics when it has 2 things the same, both these categories have the exact same ID its incredibly annoying and to top it off its only showing 22 products on the front in the category carpets, any ideas ??
I disabled the theme and just had the default theme to see if that was the problem its not.
You can check out this annoying website at http://192.163.235.139/carpets.html
Right, this answer makes no sense whatsoever, but Ive managed to fix it it had something to do with the qty and that all the simple products had nothing for quantity not even 0 so what you had to do was go into the simple product individually and just click save and thats it the products now appear on the page. its the biggest load of crap I have ever seen in my life.
so if your having this issue with your products go into a simple product change nothing and just click save and it works.
I had the same issue.
In my case it was a frontend bug. It's not possible to have two categories with the same id.
May be upgrade your version.

Why is my wish list limited to one item?

Im using magento 1.9 and im having an issue with the wishlist, for some reason it will only let me have one item in my wishlist and when I goto add another item to the wishlist it replaces the item that was already in my wishlist, there is nothing in the configuration to limit the wishlist item im just a bit confused at why it would be doing this, any ideas ?
Right!!, after hunting the web to try and find a solution I have found a solution, you have to edit the file app/code/core/Mage/Wishlist/Model/Wishlist.php
find:
public function getItemCollection()
and change
$this->_itemCollection = Mage::getResourceModel('wishlist/item_collection')
->addWishlistFilter($this)
->addStoreFilter($this->getSharedStoreIds($currentWebsiteOnly))
->setVisibilityFilter();
to
$this->_itemCollection = Mage::getResourceModel('wishlist/item_collection')
->addWishlistFilter($this)
->addStoreFilter($this->getSharedStoreIds($currentWebsiteOnly));
this worked for me and im using magento 1.9.0.1
the source for this fix is here: http://www.magentocommerce.com/boards/viewthread/291225/
This is an out of the box feature, you do not need to edit any core code to fix this. Correction: You don’t have to edit any code
I had the same issue and found it was from an improper import of products and that website availability was incorrectly set.
It seems that Magento added a website filter on the wishlist collection to prevent items not available in a website from appearing in a customer's wishlist.
It also seems that items may not have a website value => which prevents wish list items from appearing (or just 1 item, the last one added).
How to fix it : Simply select your store products on catalog page, select ‘Update Attributes’ action and click on submit.
Select Websites panel and check your website in ‘Add Product To Websites’ block.
Reindex your data if necessary.
You can now add your products to your wishlist and see all of them in your wishlist. This is the proper solution and does not remove functionality from your Magento webstore.
Simply reindex everything in: System > Index management

Magento 1.5.0.1 configurable products attributes not showing in front end

We have a Magento store on 1.5.0.1 Community Edition which uses configurable products with attribute sets to allow customers to select their preferred size and colour for a specific item (e.g., a shirt).
Each clothing range has its own attribute set, which was used to create the product, with simple products for each permutation of the product for stock keeping purposes.
We've compared all of the product's settings, and can't see any discrepancies between them, and yet one product range does not display the attribute drop-downs and add-to-cart button in the frontend, despite appearing in the frontend fine other than that.
I don't know if you have already found a solution, but after searching for a whole day, I've found what's causing the missing attributes in the front end for me... After deleting and readding simple products for a dozen times and making notes on the way I was quite sure that I correctly added simple and configurable products, so the problem has to be somewhere else. A casual look at the console in FireBug revealed a conflict in prototype.js... that's strange, since Magento comes with it. And I sure have not changed anything in it!
Did you at one point added jQuery to your Magento installation? If so, you HAVE to add 'jQuery.noComflict;' to the end of your jQuery file and the critical point is, to include the jQuery file BEFORE the prototype.js: The prototype.js is loaded by Magento in default/layout/page.xml at the beginning, so you have to add this line befor the prototype.js
jquery/jquery-1.2.6.noConflict.min.js
If you don't do that the drobdown item is shown but with not selectable entries, that's because the js/varien/product.js relies on the prototype.js to work. Without it your list won't be populated!
Hope it helps anyone searching for this mysterious problem... (the problem is also described here: Weird Chrome prototype/jQuery conflict)
Usually when the add-to-cart button does not display it is because your product has no inventory set. Remember that the configurable product needs to be set to in stock and the associated simple products have to have at least one item with non-zero inventory and be set as 'in stock'.

Magento: Shopping cart price rule gets applied, but discount not subtracted from subtotal

I have created a shopping cart price rule in my Magento store (version 1.4.1.1), and it seems to get applied without issue on the frontend, but the discount isn't actually reflected in the subtotal or final total. The original item price is $45.00, and the discount should be $35.00, making the final price $10.00. Here are some screenshots of the setup. (Sorry, because I'm a new user it won't let me post images directly in this posting.)
http://imgur.com/a/hdYDb
Main rule page
Actions page
Cart showing that promotional code was applied
Reviewing order (last step before submitting order)
This particular item has some custom options set, which set the pricing for four individual options. The price for the product is $0.00, and then each option has it's own price (I didn't set this part up, so I'm not sure if I'm missing something from here too). Here's a screenshot of the product custom options page: http://imgur.com/uO9HG
Any thoughts? I'm fairly new to Magento, so it's possible I'm just missing something obvious. Thanks in advance for any help or guidance!
I actually JUST figured out what was going wrong, or at least, I figured out a solution, though not sure exactly why this was affecting the shopping cart price rules. You're right that I wasn't even able to get a simple price rule to work - it simply wasn't working no matter how I changed the rule. Anyway, while working on another issue, I realized that I was missing the Subtotal/Grand Total box on the front-end of the shopping cart (I installed a clean copy of version 1.4.1.1 on my localhost, which is when I noticed it was missing from my live site). When I re-enabled the Subtotal/Grand Total box, the rules started working again. (I suppose now that Magento has a place on the front-end to show the discount, it actually applies it, whereas before it would just do nothing.)
So, to re-enable the subtotal/grand total box, in the back end, I went to System > Configuration > Advanced > Enable the Mage_Tax module. Again, not sure why it was disabled in the first place, and I'm not sure if this affects anything else on the site, but it's been up for awhile now and I haven't noticed anything awry. Here's a screen capture of it working: http://i.stack.imgur.com/kjl6S.png
I think the problem comes from using SKUs with your custom options combined with restricting your price rule to the product SKU. Magento combines them using a hyphen - place a test order to see if this is the problem.
The SKU in a test order I made comes out something like this;
[ORIGINAL_PRODUCT_SKU]-[CUSTOM_OPTION_SKU]
At least, that's the result I'm getting from version 1.5.0.1
The quickest solution I could find was to match the rule on the product url key rather than SKU. It isn't the most intuitive solution, but since you wouldn't change the URL on the product (I hope), it will work where SKU's with custom options fail.
In version 1.4, the URL key should be available to choose instead of SKU already. So you can just select url key instead of sku and insert your product's correct url key in your shopping cart price rule. Just replace "SKU is ..." with "URL key is ..." inserting the correct url key for your product.
In version 1.5 I had to enable "Use for Promo Rule Conditions" on the url_key attribute like this;
Log in to Magento admin area
Navigate to Catalog > Attributes > Manage Attributes
Locate the Atrtibute Code "url_key" and click to edit it
Change "Use for Promo Rule Conditions" to Yes
Save the changes
you may need to reindex the Product Flat Data index at this point
Then I could use it in my price rule.
Had this same exact problem on CE 1.9 running PHP7, applying the Inchoo "PHP 7 compatibility extension for Magento 1" solved the issue!
https://github.com/Inchoo/Inchoo_PHP7

Magento: Configurable product options not showing on a view page?

I have multi-store Magento system and strange things happen when i try to see a configurable product on my main store - the options select lists don't show up at all! And that is the case for the 95% of the products on the main store.
But on the other stores it works fine?!
I can't see what am I doing wrong. All my products are configurable, all have set simple products with options attached to them, all are set to be visible on all stores (WebsiteIds attribute), all are enabled on all stores, all simple products are in stock and have some stock quantity set.
I think if I've done something wrong it would be like that on all stores, not just the main one. I'm totally clueless, please help. I've attached couple of images to see the difference.
http://img51.imageshack.us/img51/3224/59155765.jpg
http://img196.imageshack.us/img196/8145/98963713.jpg
Have you tried clearing cache and rebuilding indexes? I would rebuild all indexes related to products (Product Attributes, Product Flat Data, Stock Status, etc).
I think maybe something goes wrong with your template. Please check this file:
app/design/frontend/your_theme/default/template/catalog/product/view/type/options/configurable.phtml.
The following code is existed or not?
var spConfig = new Product.Config(getJsonConfig() ?>);
Or check carefully your javascript in console debug of Chrome.
Good luck :)

Resources