hakkim
hakkim

Reputation: 658

magento Default store view not working in front end

This question is the duplicate of this one. None answer this question so far.

I am running a magento 1.9.1.0. And I have two stores, One is English and other one is Arabic.

My default store view is English in system --> manage stores. But in the front end, arabic page is loading by default.

Why is it so? Any one can please help me with this?

Upvotes: 0

Views: 1602

Answers (2)

L. Sanchez
L. Sanchez

Reputation: 21

Check your language.phtml If you are using flags instead of dropdown make sure you define the default language. by using <?php if ($_lang->getCode() != 'default'): ?>

refer to complete code below

    <?php if(count($this->getStores())>1): ?>
<div class="form-language">
    <div class="langs-wrapper">
    <?php foreach ($this->getStores() as $_lang): ?>
    <?php if ($_lang->getCode() != 'default'): ?>
        <?php $selected = $_lang->getId() == $this->getCurrentStoreId() ?>
        <a class="lang-flag<?php $selected && print ' selected' ?>" href="<?php echo $_lang->getCurrentUrl() ?>">
            <img src="<?php echo $this->getSkinUrl('images/flags/' . $_lang->getCode() . '.png');?>" alt="<?php echo $this->htmlEscape($_lang->getName()) ?>" height="16" width="24">
        </a>
    <?php endif;?>
    <?php endforeach ?>
    </div>
</div>
<?php endif;?>

Upvotes: 0

MeenakshiSundaram R
MeenakshiSundaram R

Reputation: 2837

You have set the locale in default configuration scope

admin > system > configuration > General > Locale Option > Locale

enter image description here

Upvotes: 1

Related Questions