Magento: Different products in the different store views under the same store? - magento

I have multi website, multi stored Magento shop, and I have a need to make some products available in one store_view, but not available in the other, where both store_views are part of the same store and website.
All my products are configurable with simple products attached to them. Only way I could think of solving this is registering a new product attribute through which I control where each product goes. That works great for the catalog and lists of products, but I have huge problems with single product view and choosing the configurable product options.
I can't seem to find where in Magento core those option are generated, so I could override that and strict some options for each store view. Basically, I need to know where is this
generated. My last resort would be managing this through AJAX, but there is already a lot of AJAX code and calls in that page that it would be confusing.
Any help or tip would be very appreciated.

I am pretty sure that the way above is not working because the attribute enable/disable product has impact at website level and not store or store view!
So if you do like tomakun says the product will be disabled at the whole website and not just for the store view you choose first!
I have the same problem that I want to assign different products all to one website but to different stores.
So far I just found the solution above to change the visibility at store view level.
But I think this not the optimal solution. It should be possible to disable a product on store level!

This feature is already available by default in Magento.
For bulk enabling/disabling products for a particular store view, do the following:
Go to your Catalog > Products
Select a store view above the product list.
You are now viewing all products included in THIS store view.
Once you have the correct store view selected, select the products you want to Enable or Disable using the checkbox on the left.
Now, using the Actions dropdown menu on top right of the product list, choose 'Change Status', select 'Disabled' or 'Enabled' and hit the Submit button.
Doing this will Enable or Disable the selected products from the selected store view (step 2). This is good for bulk actions but you can also do the same for all products one by one:
Open your product, select the relevant store view on top left of the page. Then in the General Tab, you have status: Enabled or Disabled. Choose the option that you want to apply for the current store view and hit Save.
That's it!

Related

Translate Magento Shop Categories

I want to translate categories in magento but I didn't found any way but only to add products multiple times and set different store view but that is really very time consuming if I have lots of categories and lots of site views.
Any short way to translate categories?
Yeah, that one is one of these things that can be done without extensions but are not intuitive. I had to check a video from youtube to get to the solution, which is:
Go to Catalog->Manage categories.
Select the category you want to translate. I am assuming that this category applies to the whole store, all store views included.
Then at the top left box select the store view that you want to display the category in a different language, i.e. "English".
Now the general information tab of the category shows checkboxes with the option "Use default value". Uncheck the checkbox for the field "Name" and change the name for the translated text.
Save category.
In case you find difficult to follow my instructions check this video:
https://www.youtube.com/watch?v=VppfnO14jfE

How to remove information in Magento catalog, but only for specific product type

I am wondering how can I delete this two divs -
in Magento catalog, but only for specific product type. In short, I would like to have product type which would appear in catalog only with product-image and product-name, without - price, Out of stock, Add to Wishlist, Add to Compare.
It's possible to load different layout updates depending on loaded product type. You can see an example of how it's done in Magento for configurable products here: https://github.com/LokeyCoding/magento-mirror/blob/magento-1.7/app/design/frontend/base/default/layout/catalog.xml#L275-L287
It's possible because view action of product controller makes this to be executed: https://github.com/LokeyCoding/magento-mirror/blob/magento-1.7/app/code/core/Mage/Catalog/Helper/Product/View.php#L59-L60
You can change the design for any product from the admin.
You need to create a separate theme with a different product page which will have only the attributes you would like.
Then you can select the design for that specific product. Please see the screenshot, how you can change design for any product

Getting configurable product options pre selected from the layered navigation

I have several configurable products (with many simple products associated to them).
When browsing the super attributes through the layered navigation, you can filter down to all products that have (for instance) size= medium, Colour = Red.
I have set my simple products to not be visible and showing my configurable products, however, when you select the configurable product, the product options do not default to what has been filtered in the layered navigation.
Is there a way to get the relevant product options pre-selected on the product page?
suppose the user selected the filters from the listing page as size ="medium" colour ="red"
Now when user selects the configurable product from listing page after applying filter corresponding values must be pre selected on product detail page.
There is no ready-made way to do this. When the request is made for the product that product knows nothing of the layered navigation state. In theory you could add in some server side code to do that however this might have a performance penalty as you might not be able to use cache effectively.
You could do something on the front end in javascript. Add an event listener to the links in the filtered navigation and store an object in local storage, e.g. with size and colour.
On the product page you could then set the configurable product according to those values by waiting for the configurable product options to be built, then load the options object from local storage and then update the configurable product accordingly. You will need to then fire off events so the product page knows that options have been selected and can do things like update the price accordingly.
Internally Magento uses attribute option values that have numerical ids. These can be a bit complicated to work with, so you may want to put some logic in to read the labels instead, e.g. 'Red' instead of e.g. '461'.
There is no prototype specific way of working with local storage and you don't need some layer of jquery, normal javascript should suffice when it comes to storing/retrieving your size/colour object.
I found the following article to be the head start needed for doing things with the configurable product drop-downs:
http://inchoo.net/ecommerce/magento/how-to-make-configurable-options-autoselected-on-configurable-product-view-page/

Magento cant associate simple to configurable product

I created a configurable product and went to the associated products tab and used the quick create product feature to create a bunch of products based on my configurations. However non of these products appear in the list of associated products.
I noticed that the attributes I created don't even show up on the edit product page, on either the simple, or the configurable product.
I started first by creating 3 new attributes for a configurable product I want to add, I setup the options for each one and created a new attribute set based on default that included the new attributes I created.
When I create a new simple product or configurable product, you cannot see the attributes I have created. I have tried with the attributes in the general tab as well as on their own tab. But they are never visible when you try to edit the product.
I'm suspecting the reason I can't associate the products is due to this strange problem
I'm using 1.4.2
[edited to add my work flow/screen grabs]
http://www.buggyonpurpose.com/magento/configurable_products/01-attirubte_set.png
http://www.buggyonpurpose.com/magento/configurable_products/02-create_configurable.png
http://www.buggyonpurpose.com/magento/configurable_products/03-setup_configurable.png
http://www.buggyonpurpose.com/magento/configurable_products/04-quick_create.png
http://www.buggyonpurpose.com/magento/configurable_products/05-associate_product.png
http://www.buggyonpurpose.com/magento/configurable_products/06-manage_products.png
http://www.buggyonpurpose.com/magento/configurable_products/07-edit_product.png
It took a while but finally figured it out. When I created my attributes, in Attribute Properties where it says "Apply To:" I had only assigned it to configurable products, but you must also assign to simple products as well. (or just apply to all)
Keep in mind you will have to recreate your original configurable product before it will work.
Assuming you have created attributes with options and attribute set.
Can you please createConfigurable product again
Manage products -> Add Product select your default attribute set and Configurable product option.
The next window will be to choose the attributes that you have have created.
Lets say that there are three attributes color, fragrance, and volume as three different attributes and you pick fragrance here to associate the Configurables to the simples which you will be creating.
After you successfully created the Configurable product.
Create simple products based on the same attribute set default
you must be able to see all the attributes you created(color, fragrance, and volume).
Please pick any option for the Fragrance attribute.
Go to the Manage Products ->select to edit the Configurable product you have just created.
Go to the "Associated Products" tab and select "Any" from the drop down on the extreme left.
You must be able to see the Simple which you have created now
you must also be able to see the parent-child linking attribute "fragrance" present above the grid of products.
Make sure the simple is in "In stock" before you see whether they appear in front end.
Its not necessary for the attribute to appear in the Configurable product edit page.
Follow the above steps, hope it will guide you.
Please let me know if you unable to follow any of the above steps.
You can also read the below link, which is very useful to create a config product.
http://www.magentocommerce.com/knowledge-base/entry/tutorial-creating-a-configurable-product/
Cheers
I had the same issue.
A possible workaround is to add the attributes in the single products and after they become available through the configurable product at "Apply To:".

Please specify the product's option(s) in Magento

Actually i am using Elias_configurablebundle plugin for the configurable product as associated of the Bundle Product and to display GRID* for the configurable associated products i am using magento mechanics grid. here i have merged both of the extensions it showing GRID on bundle view page but showing Please specify the product's option(s)* on click of the **Add To Cart.
Although everything is fine, no required field left to fill out, i have applied any single custom options for any of the product.
so here i want to remove this validation so then it will directly redirect to shopping cart page.
Thanks
Configurable products need to have their options chosen (say, color or size) in order to be added to the cart. Otherwise, there is no way to decide which simple product should be decremented from the inventory. So there is no way for you to "skip" selecting this information, other than hardcoding the selections for the configurable product.
If you do that, just use the simple products instead, and skip all the headache.
Thanks,
Joe
Another thing to check is that the options fields are actually inside the tags. Its fairly easy in Magento to move the option selects to a different column and not realize that you are moving them outside the add to cart form tags.
if the options are selected outside the form tags, then as far as the form is concerned no options have been selected.
Hope this helps someone down the road.

Resources