I have a multistore (Version 1.5.6) with 3 stores:
eshop.example.gr
eshop.example.com.cy
eshop2.example-new.com
The 1st and the 2nd stores have greek as their default language and english as a second language.
For the 3rd store I have set up english as the default language. The problem is that it also has greek as a second language! I dont want that. I need the 3th store to be only in English.
Is that possible? Can anyone help me on how to do that??? Please help me
Thanks in advance
Code: Select all
<?php echo $language; ?>
Code: Select all
<?php if ($this->config->get['config_store_id') != 3) { ?>
<?php echo $language; ?>
<?php } ?>
I haven't tested this, but it should remove the option for the customer to select the language and only display in the default language for that store.
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool
If you're not living on the edge ... you're taking up too much space!
I don't use the default theme, so in my custom theme header template file I have this:
Code: Select all
<?php echo $language.$currency; ?>
Code: Select all
<?php if ($this->config->get['config_store_id') != 2) { ?>
<?php echo $language.$currency; ?>
<?php } ?>
Thank you so much for your time
Wrapping both the language and currency in the "if" statement would also remove the currency selection for that store - not good.
Try this instead. Replace:
Code: Select all
<?php echo $language, $currency; ?>
Code: Select all
<?php if ($this->config->get['config_store_id') != 2) { ?>
<?php echo $language; ?>
<?php } ?>
<?php echo $currency; ?>
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool
If you're not living on the edge ... you're taking up too much space!
I did what you said and.. nothing I get a message in dreamweaver, above the code of the header.tpl that says:
Do you think that this is the reason why your suggestion does not work?There is a syntax error in line 415. Code hinting may not work until you fix this error.
Line 415:
Code: Select all
var responsive_design = '<?php if($theme_options->get( 'responsive_design' ) == '0')
Thanks in advance
Code: Select all
<?php echo $language, $currency; ?>
Code: Select all
<?php if ($this->config->get('config_store_id') == 2) { ?>
<?php echo $currency; ?>
<?php } else { ?>
<?php echo $language, $currency; ?>
<?php } ?>
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool
If you're not living on the edge ... you're taking up too much space!
Thanks for your help.
Yes!After a few tests, based on your code, the solution is:
Code: Select all
<?php if ($this->config->get('config_store_id') == 2) { echo $currency; } else { echo $language.$currency; } ?>
Have a nice day!
Regards,
Maria
I recently tortured myself on this subject to find a proper solution to handle enabled languages on each Opencart stores and I finally implemented a VQMOD module to handle the full process.
As you said before you have the simple solution of proposing some languages you want but you might be surprised with Opencart cookies : you might face the issue of having an unwanted language on a store who does not propose it due to language detection and some other functionnalities.
I recently released a module that allows you to handle it from the backoffice if you are interested in.
Here is the plugin link : http://www.opencart.com/index.php?route ... n_id=26264
I guarantee the compatibility from the version 1.5.4 as I spent most of my time testing it on every possible versions and I will probably continue if some people are interested in.
Here is a quick screenshot:
Regards,
slebote
Users browsing this forum: No registered users and 51 guests