Magento order products by SKU - sorting

I would like my store products to be displayed in SKU (ascending) order by default when looking at the category product listing pages. Can someone please tell me how to:
Make this the default sort option.
Add SKU as a user selectable option on the product listing pages.
Can anyone help please?
Cheers!

I hope this works the same for 1.4.0.1 as it does for 1.6.0.0 because it is really easy and you don't have to touch any code:
In the admin panel, go to Catalog > Attributes > Manage Attributes
Find the attribute labeled SKU
In it, under Frontend Properties, change the "Use for Sorting in Product Listing" to "Yes" and save
Go to System > Configuration and click on the Catalog section
Under Frontend, change the "Product Listing Sort by" to "SKU" and save
You can also change the default product listing for each category in Catalog > Manage Categories under the Display Settings tab of your selected category.

Having been around this issue a little, I found out that you can add SKU as an option in the Manage Attributes menu in Admin. Having done that, and then set it to be the default in System > Configuration > Catalog > Catalog > Product Listing Sort By.
It turns out that the company I hired to produce my website template had overridden the toolbar.php file, and there was a hardcoded list of order by options in there.
Commenting that list out (basically reverting that function back to the default template version) now shows up the SKU option in the list.
I next need to figure out how to make that be the default - something else I guess is over-riding that as it should be the default based on the settings I have in place now.
Thanks for all the help here.
Cheers,
Rob

See this question and answer Magento Category Product List Sort By Bestseller Options. Because sku is table column, you don't need extend setCollection() method.

Related

add 2 more attribute values to the magento order view page section

in the magento admin panel, if we go for Orders section
and if we click on one order, we can see the Product name and sku at the bottom.
i want to add 2 more attributes to the order section.
please help me to find solution.
thanks in advance.
Name and Sku attributes are added in the file app\design\adminhtml\default\default\template\sales\items\column\name.phtml
So you need to make changes there to add any other product attribute.

make configurable product options independent on product view page --Magento

I am working on a Magento project and I need to know if there is a way to make a product's options independent to each other or unrequired. I need to use one of several at a time (I have 6 dropdowns).
I have tried add to cart by query string but all dropdown values were still required. I also tried to make all the options default, then modify the selected options in the observer, but I did not meet with success. See the screenshot below for more details.
Any help will be appreciated
Screenshot http://secure.justhost.com/~sharpwe1/img/imf.png
Configurable Products in Magneto are only parent products of Simple Products. Whatever you have as an attribute of a Configurable - a Simple Product has to be present for each. To do this out of the box in Magento, you should be looking into setting up a Simple Product with Custom Options.

magento import product to default category

I am using Amartinez Custom Import/export extension.
I am trying to insert to magento 1.6.2 a list of products through a .csv file. I can insert categories just fine, but the problem is that my products don't get added in the "Default category", only in the subcategories of the default category. I have searched as to where i can set that, but i havn't found anything yet.
I've tried adding the "Default category" in the csv, on a new row, and when i ran the cron, it said that a new category called "Default category" was created, but i can't see it anywhere in the categories, and the product is still in the same categories as before.
Any help is greatly appreciated.
Thank you.
Check to see if Default Category is set to be an anchor, under Catalog > Manage Categories > Select Default Category and click the display settings tab...it's the third dropdown change it to yes.
Greetings from Itera Research,
I am happy to share reply from our Magento team lead.
Please check below,
add "category_ids" column to your CSV file and set "Default category" id to this column
you can lookup Default category id in admin > Catalog > Manage Categories
Happy to chat,
Jen Zorina
Itera Research

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