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.
Related
I am running Magento Multi-store (store views) with parked domain for different countries (e.g. .com.au, .co.nz)
When I am navigating around in the admin panel of .com.au (which is the main store view), sometimes the domain will get changed to .co.nz which disabled me to perform certain actions like changing order status.
Also while customers are navigating in .com.au site, sometimes it bring them to .co.nz shopping cart after clicking "add to cart".
Does anyone have any solution or idea what might have went wrong? Please help.
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...
I've got a desktop joomla site which uses the database called 'mydatabase'. However, I've created another site for mobile version in a folder in the same host. Then:
www.mysite.com is my desktop webpage.
www.mysite.com/mobile is my mobile webpage.
Both sites, mobile and desktop, are single and independent joomla instalaltions, but they use the same db.
Then when I try to configure the default template to render my contents, I`ve got to choose between mobile contents or desktop contents, but not the two.
How can I render my both templates, so both sites work and live together?
Joomla stores most of its configuration options in the database, thus your question requires some coding to handle it. But let me get one step back.
1. The Joomla approach
Joomla allows you to define which pages show which menus. You could have a simple Joomla installation with SEF turned on, where the main menu is as it is currently in the root.
Then all you need in order to have a /mobile page with a different layout is
Create a new menu (not menu item, menu type) and name it SEF or Hidden; this will not be published anywhere.
Create a menu item with alias "mobile" in that menu.
This ensures your users will be able to surf to the page /mobile and access that menu item.
Now create a menu for the mobile part of your site, add menu items and choose the default template for each, and create a module to display it. Assign it to "Show only on the selected pages" and choose the /mobile page you just created and any others contained within the menu.
Then go back to the main menu module, and configure it to "Show on all pages except", and make the same pages selection.
Now you will have two menus, one for the desktop and the other for the mobile. Aside for the template assignment, they will be identical.
2. Third party extensions
There are third party plugins which allow you to define a different template based on several parameters: country, useragent, screen size etc.
In addition to what you find on the JED, many templates (mostly commercial ones) have a feature to define a custom layout for mobile users.
Whether you handle this with a plugin or with a template is a matter of personal choice; either will work very effectively and be more appropriate than the Joomla answer I outlined above as they will help you prevent duplication. Duplication in content or menu items is costly as maintenance and testing will be harder.
I think that the way you are doing it is very different from the normal Joomla approach (which would be have a responsive template or have the index.php of the template load different subfiles depending on device), but let's assume you have your reasons.
So you have the same database which means all of the menus are the same, all of the module assignments are the same, all of the template assignments are the same and the default template style is the same.
Now, in Joomla template styles are also stored. This is a json string of pairs with various template options.
Simple case, let's assume that both the mobile and desktop template have the same options.
Now in the templates folder of the mobile site we'll have the mobile template.
Call that mytemplate.
In the desktop site you have a the desktop template. Call it mytemplate. Install it ONCE.
So these templates have the same name but because they are in two different physical sites they are in two different physical templates folders, one in the mobile site and one in the desktop.
Now we make mytemplate style-1 the default.
In the mobile site this is always going to load the mobile template while in the desktop site it will always load the desktop template.
Now say we assign mytemplate style-2 to the news menu item. Again the appropriate template is used based on the actual site it is called from.
Now the trickier thing is if you do not have identical parameters. This is likely since the settings you need will be different. In this case, what you will need to do is make sure that the parameters defined in templateDetails.xml include both sets. So if you make a new style you need to always set the parameters for both templates. This is actually going to be helpful since you won't have to configure it twice.
Long story short - I'm trying to restore my ver1.4 store (multi-store) but am doing so to a test environment first. (Production has one site working and I don't want to lose it entirely.)
On my test environment, I continue to get the following error message when I try to reindex the Catalog URL Rewrites:
An error occurred while saving the URL rewrite.
Before doing that, I had emptied the core_url_rewrites table in the database, cleared the var/cache, var/locks and var/session folders and cleared my browser cache.
I've done it repeatedly to see if I could figure out what was going on. I had read that there was often a problem with url rewrites in multi-store setups when products were in more than one root category. I had a lot of those, so I went through my cata.logs and products and limited each product to just one root category (store/domain.)
My configuration settings are as follows:
System -> Configuration -> Web
URL Options
Add Store Code to Urls No [GLOBAL]
Redirect to Base URL if requested URL doesn't match it No [GLOBAL]
Search Engines Optimization
Use Web Server Rewrites Yes [STORE VIEW] (all store views set to use Website)
System -> Configuration -> Catalog
Frontend
Use Flat Catalog Category No [GLOBAL]
Use Flat Catalog Product No [GLOBAL]
Allow Dynamic Media URLs in Products and Categories Yes [STORE VIEW]
Search Engine Optimizations
Autogenerated Site Map Enable [STORE VIEW]
Popular Search Terms Enable [STORE VIEW]
Product URL Suffix .html [STORE VIEW]
Category URL Suffix .html [STORE VIEW]
Use Categories Path for Product URLs Yes [STORE VIEW]
Create Permanent Redirect for old URLs if Url key changed yes [STORE VIEW]
Page Title Separator - [STORE VIEW]
Use Canonical Link Meta Tag For Categories No [STORE VIEW]
Use Canonical Link Meta Tag For Products No [STORE VIEW]
I confirmed that I have the proper .htaccess file in each of my directories (the root and each of the folders with symlinks denoting the various stores/domains.) I also double-checked my index.php files.
Each time I run the Reindexing, it indexes one more item. I have over 2500 items so am inclined to not want to go through it 2500 times. I feel I must be missing something, but I can't figure out what it is.
When I add a new product, it usually gives me an error message that it failed because it couldn't create a url rewrite, but the item is added. Then the next time I reindex, the new item is indexed for all four stores.
This didn't seem to be a problem with my previous setup so it might simply be the goofy way that my test environment is set up.
If anyone has any ideas of how I might identify and/or fix the problem, I'd be MOST appreciative!
Cheers!
Penny
Need more information about the error message. Look in the var/log folder or var/report folder for further information on the exact error and hopefully there is something there that will shed some light. Could be due to a variety of reasons so detailed message is required.
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!