magento link product to specific store view - magento

I have 6 languages defined using store views.
i have 6 simple products - one product for each language.
I did not create those products using attributes or configurable product or so, since this is the main product in my store and i would like to promote the product in each language separately.
now, I try to link a productX to default store view X (means if someone clicks to view that product, he will move to the store view with the language of the product.
example:
- store view_EN
- store view_IT
product X_EN
product X_IT
being in store view_EN, clicking product x_IT should redirect to store view_IT/product X_IT...
is that possible with little tweaks only?
thanks!

First of all, you don't need 6 different products, one for each language. You can have the same product, and translate the text fields to all the languages (like name, description, short description, ...).
You can do that by changing the scope from the top-left dropdown on the product edit page, in admin.
Now here is how you can get a product url for a specific store. Let's say that the product id is $productId, and the store id is $storeId
$url = Mage::getModel('catalog/product')->setStoreId($storeId)->load($productId)->getProductUrl()

Related

I want to create a category just to show products in a particular attribute

Hope you can help Magento users,
I have a clothing store selling big mens clothing. One of my best categories in my old store was allowing the customer to view all the products in his size in one feed. Whilst I am aware they can choose the top level category (menswear) and use the attributes down the left side to select their own size, I would like to have a specific category for instance (All 3xl products) all ready setup in the mega menu. So far I have been able to set a category up and set a url rewrite to the required url attribute. Works fine but I can not add text at the top of the page (for seo purposes).
I was considering if it is possible to create a static block with only 3xl products in, then I can design the page around the static block?
Depending upon category structure if you are using anchor categories you could create a link directly to an attribute filter.
i.e
I have an attribute called material
and the value of polycarbonate id is "4"
you can append the values of layered navigation/anchor categories to the end of the url
mysite.com/vehicles.html?material=4
Say for example, you have an attribute of "size", with the id of 3xl = "10"
and mens was your anchor category. It would look like
yoursite.com/mens.html?size=10
Then you would just create a simple html link to http://yoursite.com/mens.html?size=10

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

Magento 2 stores with different product url

Here is my situation, my company buy product with no brand and sell them in its own brand.
We have 2 websites and 2 brands, some products exist in both of our brand with different name.
Example : product A of brand A named BrandA Product Premium and the same product on the other site is named BrandB Product Super.
But on both website the url-key is the same (the name of the product in the default view) so on site1 I have :
http://www.site1.com/brand-a-product-premium.html that is very good.
On site2 I have http://www.site2.com/brand-a-product-premium.html If you type in the correct url : http://www.site2.com/brand-b-product-super.html you are redirected to the bad url.
I can correct this by creating a custom url_rewrite, but there are thousands of product in this case, so I may have done something wrong and there should be a better solution for this.
May I have some help ?
Best regards.
If you are using one instance of Magento in a multistore setup you can override the url key as well as any other product attribute for each store view. Select the store view for site 2 from the dropdown on the left hand side of the edit product page and then override the required fields for that store view.
I have a multistore site where I sell some products on both but not all and using the above method gives me full control over every aspect of the same product for each store view. e.g. Custom name, description, images, categories etc. To ensure that a product is not shown on a particular site via catalog or search, I disable that product in that store view by setting visibility to none.
Do not use the URL rewrite option this will come back to haunt you!

Magento. Redirect to specific store view

We have multi-website(5) multi-store-view(13) shop.
What we need is that only 3 store view from 1 shop are allowed to checkout. Therefore the problem is how to redirect users from other shops to the same products on specified store view.
For example user watches product on mk_nn_eng and click #Button#, after that he is redirected to mu_aa_ENG AND sees the same product, he was observing but on specified store view.
How to perform such redirect?
If it's the same item, it will have the same id. And you can link to an item by it's id using the format (assuming you have different domains set up for each view):
www.DomainForStoreViewYouWant.com/catalog/product/view/id/{{product.id}}
Where you would get the id with something like $product->getId(); depending on the product object in the file you're looking at.
So the button you mentioned would just be the above link.
Is this what you had in mind?
Update:
If it's the same domain for each view, you could add the storecode to the end: ?___store=storecode

Site, Store, View. product visibility

I have searched and searched and can’t seem to find much on this that helps me out , so I have given up and decided to post. What I am looking for is to have:
4 different web stores all with only one associated view.
The aim is that each of these different stores will be maintained by different people. The products in one store will not be viewable in another store, etc.
To top it all off I would like to have a 5th store that has the ability to show all of the products from all stores and which store they are from. eg if you browse the catalog in this store you will be shown the catalogues from all the 4 other stores combined.
I thought I had it, but I don’t seem to be able to. If someone can point me in the right direction here for how to set this up, I am open to purchasing an extension if it is required…
Any help appreciated.
Cheers,
4 different web stores all with only one associated view.
The aim is that each of these different stores will be maintained by different people. The products in one store will not be viewable in another store, etc.
You create one website then 4 stores (e.g. English, French, German, Italian) for each store you create only one store view, you define a top category (e.g. Top Category English, top Category French, etc) in each store (not store view).
See in backend System > Manage Stores.
You set your products inside of a subcategory of the top category wished. E.g. you want a product only in the French Store, you set this product in a subcategory of the Top Category French. You can set the category in the Product Edit Page, in the tab "Category" or in the Category Edit Page itself
To top it all off I would like to have a 5th store that has the ability to show all of the products from all stores and which store they are from. eg if you browse the catalog in this store you will be shown the catalogues from all the 4 other stores combined.
The only way I see now is that you have to create a 5th store with a new top category and you set all of your products into this Top category too. You will have your products for example in the Top Category English + in the Top Category 5th Store. You set the product in this 5th top category in the same way as my previous paragraph.
The drawbacks with this solution, you can only display a product in one language. It will be the default one. The products management will be difficult too if you have a big catalog.
Maybe a module exists for that but I don't think.
You have to know that the search is global and search per Website and not per store.

Resources