2

I have a default website in Magento and only one store, but I had to create a new store view, which will share everything, except layout that will be different, it's just to publicize another brand of same company. I duplicated the template, layout and skin folders in order to work around the newest store view, but some words I translated before are being shown different, e.g below:

In default store view, I changed "Regular Price" to "was" and "Special Price" to "now", so, on the product page we can see "was $99 now $79". However, after creating a new store view in admin, I'm seing the old default text "Regular Price: $99 Special Price: $79" instead of "was $99 now $79".

How to use exactly the same locale for multiple store views? The locale (translation) needs always to be the same doesn't matter the store view.

Any help?

1 Answer 1

2

Are you familiar with magento's theme enheritance? You don't have to duplicate everything, you can make a sub-theme and add the files which are different. Magento will automatically fallback to default or base when a necessary file isn't there. This is very ideal if you want to be able to update easilier. I think this will also solve your translation issue as it falls back to the default translation, an example. your theme could be like,

app/design/frontend/{themename}/{subthemename} skin/frontend/{themename}/{subthemename}

These are the defaults path. By default magento has the themes, base, default and rwd. Underneath that there's always a folder called default so: default, default. Magento automatically falls back to default. So if i want to make a sub-theme with a little change on for example the default theme, i can make a folder called "mytheme" underneath default and place all changed files there, just the changed becouse magento will look for default if something misses. If something misses in default it will check base.

So make a subtheme, place all changed things there and let magento do the rest. You can configure what to use in your shop under system->design or under system->configuration->design.

Excuse me i'm a hurry but i wanted to answer your question. If you have any doubts or problems pleasy reply with your theme directory structure so i could help you out on setting this up. Goodluck :)

6
  • Hi, thanks for all your explanation. I didn't know about the "subthemes", and I will take a look at the structure you mentioned and if there is some questions I comment out here again. Thanks man! Jul 17, 2015 at 19:14
  • great, i forgot to mention that i think your translations might not be correct becouse the translation in themename/subthemename/locale doesn't load. else you got to check your locale field in the backend for the translation. good luck :)
    – FROSIT
    Jul 17, 2015 at 19:36
  • I found out why some translations were incorrect: they were coming from attributes, and after creating a new store view I forgot to insert the respective values for the new store view. I could fix them now! I've created the subtheme and it worked great, I really didn't realize about this feature and themes inheritance. Thanks again!! =) Jul 17, 2015 at 20:12
  • Good to hear you solved your problem, glad i could be of help :)
    – FROSIT
    Jul 18, 2015 at 0:48
  • Appreciate your help! I would rate my knowledge in Magento as "intermediary", so, many questions in Magento I'm learning yet...Actually I was asked for 2 another questions that I don't know how to solve, but I will post in a separated question here. Jul 20, 2015 at 14:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.