Magento : Store View Theme - php

I have two store view (Default English and German) with two different- different theme. I am Changing my home page English to German. Home page showing German Store Theme. From German Store i am viewing a category page, this page again showing with default English store theme. While this category is attach with both Stores (German and English)

Go to Catalog >> Manage Category
Select That Category and go to design tab.
Here check have you selected any theme.
If yes then unselect that design and save it.

I assume you have set a different domains for your store? The URL has to be different, either:
www.yourstore.com (for english) and www.youstore.com.de (for German)
www.yourstore.com/en/ and www.yourstore.com/de/
By doing this, you can set in your .htaccess file or nginx config file to select the correct store. something like this:
SetEnvIf Host www\.yourstore\.com MAGE_RUN_CODE=yourstore_en
SetEnvIf Host www\.yourstore\.com\.de MAGE_RUN_CODE=yourstore_de
If you want to run your website on 1 domain, you will need to use cookie to set the correct store. There are modules available. I can recommend this open source module:
https://github.com/aligent/Aligent_WebsiteSwitcher
Let me know if this helps

This is a problem with my browser cookie setting. On browser Opera this functionality not running proper but on fire fox This is running as required.
any one can suggest how i solved problem with on opera browser...

Related

Opencart: Multiple domains - one site / installation?

We have two domains:
the .gr
and the .com
But we want our opencart shop to be working on both of these domains
with the same products/ layout/ settings but the language
Currently our opencart is installed at .gr and uses an alias domain for the .com.
But we want a different default language for the .com
And sure you can enter from the .com domain once you click any link for example a category link it redirects back to .gr because all links pont to .gr
probably because .gr is set for the catalog url in the config
One solution is to make a second multistore entry with different catalog url and language setting
but this will require to recreate the layout and the theme settings to our site and asign the products/categories to the new store and this can be mass-done from the database.
But in maintenance a change will need to be done in both stores
Is multistore the right way?
Do you have a more efficient way to mirror our site to the .com?
We use opencart v3.0.2.0
Thanks in advance!
Domain points to some folder on server, point both domains to that one folder with opencart installation.
Now create two stores from the admin panel and in the url of store settings provide the exact url of both stores.
Opencart matches the Current Url with store settings URL and displays the store.
You can set different languages,themes and many other settings are separate for both stores, you can find those in store settings in admin panel .
Products and other data will be shared.
Even you can control if product / category needs to be shown on both or not.

magento 1.8 multi language storeview with custom theme set up

I am new to Magento. I am working on Magento 1.8 and having problem while creating multi-store-views for different language's. I have done some configuration from backend, I gpt the multiple-store-view. Its converted from English to French but its not converting to Malaysia language. my steps are as follows
Note: I am using responsive custom theme.
Go to the site: http://www.magentocommerce.com/translations and download the proper language that you are looking for.
Extract and upload the files you downloaded to your Magento’s root directory. Keep in mind it will upload files to your app folder in Magento, but unless you try with a language that you already have there, it won’t overwrite anything as it’s a new language.
Once you finish uploading, go to your Magento’s Admin.
Go to: System>Manage Stores.
Click on “Create A Store View”.
Once there comes the really important thing: Put the name you want for the “Name” field, but in your “Code” field, make sure you enter your main theme followed by a “_” (underscore) and then the name of the language you want to use. Even if you used a new template that you did or purchase it would be under a main template type (default or base). Let’s say you have a new template you purchased called “MAG0873″ and its folder resides under “default”. Also, let’s say you installed Spanish language, then you would put “default_spanish” in this field.
Save it and now go to: System>Configuration.
There, select your new Store View name from the “Current Configuration Scope” item in the top left column.
Now, go to the option: General>Locale.
After that, uncheck the option “Use Website” and make sure you change “Locale” field to the language you downloaded (be specific according to the dropdown list!).
Save it after changing it and now clean your cache and refresh your FrontEnd.
Now, few important things:
If you didn’t deactivate the original Store View a new dropdown will appear in the FrontEnd to change the language and the new Store View’s Name will appear there. Once you select it, the entire template should switch its language.
It might happen it switches language but, it also shows old/default template, well, no worries, this means you need to set up your new Store View to use the proper template according to your design set up. The next steps are specific for the persons who install templates through the System>Design option as I do (which I think is the easier and faster way).
Go to System>Design
Add a new Design.
In the “Store” field, select the new Store View you recently created.
.Now select the “Custom Design” you previously installed in your system.
Save it.
Now, your store should be using the proper design in the proper Store View (language).
Ok, now it happens that the hoe page doesn’t show exactly as you had it on the original (English) language? Well, it might be happening that the Home page is set up for an specific Store View. To fix it, just go to CMS>Pages, now click on the “Home” record (assuming you are using default settings that come with Magento) and then in its options make sure you have “Store View” field set up to “All Store Views”. Save it now.
What's mistake i have done here.
Thanks in advance
If you'd like to have a well configured multi-language Magento setup you need to follow the steps below:
Setup a separate Store View for each language (System -> Manage
Stores -> Create store view);
Apply a Locale for each Store View (System -> Configuration ->
General -> Locale Options, select Desired Store View in "Current
Configuration Scope" drop-down in left-side navigation);
Make sure that you have translated all of your CMS pages to all of
your languages. You need to create a unique CMS page for each store
view;
If you'd like to use a separate theme for each language just do it in
System–>Configuration–>General under the Design tab;
In case you need to make a different set of categories in Navigation
menu for each store view, you may control it by "Include in Navigation
Menu" category attribute (Just choose a category for edit and go to
General Information tab). Change all text attributes in Catalog Products and Categories for
each store view
The more detailed guide find here:
http://sherodesigns.com/magento-tutorial/magento-tutorial-creating-multi-language-stores/

How to make Opencart 1.5.6 urls use product name

Currently when you choose a product (Business cards) the url looks like this
http://smoothprint.co.uk/index.php?route=product/category&path=59
What would I have to change so the Url would be
http://smoothprint.co.uk/business-cards
Is the url saved in the database attached to the product?
Normally I would mark Your question as an Off Topic as it is hell clear You did not use GOOGLE before asking here... As there are many tutorials (and I believe also some similar questions regarding this here on SO).
First of all You would have to go to Your OC and rename htaccess.txt file to just .htaccess (yep, with the dot in the front)
Second, go to Your administration -> System -> Settings -> click edit Your store and on tab Server (I guess) You'll find option Allow SEO friendly URLs (or something similar) - check the checkbox and hit on Save
Now You can walk around the administration of categories, products, informations and manufacturers and all of these have an option SEO keyword (when editing/inserting one) - this field then is used for Your fancy SEO URLs...
Enjoy!
Here is a detailed tutorial about this: http://www.templatemonster.com/help/opencart-how-to-enable-and-use-seo-urls.html
Remember that just will not leave your site more "optimized" for SEO. Include data-vocabulary, unique descriptions, and internal links.

Magento Multilanguages

currently I have a Magento website installed on http://www.mywebsite.com, I have about 150 products in the catalog and only one language: the english.
Now I need to install another language in my website, the german. But the german store will have only about 30 products in the catalog and its domain is http://www.mywebsite.de.
I never handled a situation like this, is it long and difficult? Can anyone give me some suggestions on how to proceed?
I think this is a classical scenario for a Magento developer.
This is not difficult i think, You need to create another store from manage store section, you should have complete idea about multi-store. for different domain.
after cnfiguring two store then you need to install german language pack from connect manager. then you have to select language from configuration->general->local section of admin section. then you have to import product for two different store english and german.
thanks
download the language pack from http://www.magentocommerce.com/translations and then unpack it to your magento directory. When the system ask if the folder "app" will be replaced, click "yes to all"
Then go to System -> Configuration.
Click the Create Store View link on top right, and type these in store
Store: Main Store
Name: "Language name"
Code: any
Status: Enabled
Sort order is optional.
Here, you can also disable any store view by disabling its status.
Save, go back to System > Configuration. In Current Configuration Scope dropdown box, you now see there’s new store view. Click that link.
On Locale options tab on the left, uncheck the “use website” checkbox then change the locale to the name of the storeview you just recently created. Save.
Now you can have your website in your selected language.
You can do this step to configure other existing store views, too.
Enjoy!

How do I make a single WordPress installation seem to power two sites?

I'd like to set up a single WordPress installation at siteA.com with 2 static pages and a blog. I have two domain names and I would like to set it up so that siteA.com shows page 1 as its home page, and siteB.com would show page 2 as the homepage. Both sites would share the blog contents.
Since the Wordpress installation resides at site A, how can I create a seamless experience for the user who visits site B?
Say they type in http://siteB.com/. What should I do to show page 1 at this address? PHP include? Redirect? Mess with .htaccess?
You could make use of Wordpress' RSS feeds to show the blog posts of site A on site B.
However, from a SEO point of view having the same content on two sites might not be a good idea (duplicate content: http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=66359).
Install them on two servers and use 1 database.
Is Wordpress MU what you're looking for? It's now in the full release and can be found here http://codex.wordpress.org/Create_A_Network
Tricky, but probably doable, though I'm not sure why you'd want to do it this way, to be honest. You'll need to modify each WordPress install to use some different tables for different things, i.e. site info (base URL, etc.). Note that at runtime you can also use the HTTP_HOST header to determine which "site" you're displaying things for, but I suspect noodling with the tables will get you most of what you want.
See http://wordpress.org/support/topic/share-certain-parts-of-a-wp-database-over-2-domains for some more info.

Categories