Add Meta Tag For Different Language

Hi All,

I have the following meta tag in meta.post.tpl

I want to apply a different value of "content" for another language for my multilingual store. So Something like the below:

{if $current.language == "fr" }
 

{/if}

Can you please correct my code above. It is not working!

You can have different meta for all languages you set.

Design -- Layout -- Homepage tab -- edit and change then the language to edit the other version

As for the other pages of your stores, you need a meta tag generator, or SEO templates

{if $smarty.const.CART_LANGUAGE == "fr" }

 

{/if}

You can have different meta for all languages you set.

Design -- Layout -- Homepage tab -- edit and change then the language to edit the other version

As for the other pages of your stores, you need a meta tag generator, or SEO templates

Thank you imago for your suggestion. It seems that this section in the layout manager is not multilingual.

{if $smarty.const.CART_LANGUAGE == "fr" }
 

{/if}

This worked like a charm. Thank you Hungryweb. I have a question, please. Where can I get a full list of such variables? Normally, I check the frontend of my site with enabled debug. I found variables in Templates section as well as config. But like the one you mentioned it is not there.

It seems that this section in the layout manager is not multilingual.

Sorry, if I misunderstood your request. Thought you were asking about this

This worked like a charm. Thank you Hungryweb. I have a question, please. Where can I get a full list of such variables? Normally, I check the frontend of my site with enabled debug. I found variables in Templates section as well as config. But like the one you mentioned it is not there.

CS-Cart does not have list of available constants in the documentation. But you can use any php constant in this way. The most used are CART_LANGUAGE, DESCR_SL, CART_PRIMARY_CURRENCY and CART_SECONDARY_CURRENCY

CS-Cart does not have list of available constants in the documentation. But you can use any php constant in this way. The most used are CART_LANGUAGE, DESCR_SL, CART_PRIMARY_CURRENCY and CART_SECONDARY_CURRENCY

Good to know that, eComLabs. Thank you very much.