Close

Add Countries Selector in Preference beside language selector

tarekmahran
7 years ago
#13107 Quote
Avatar
  • 4
Hi,

I bought Pavillion theme and I want to add country selection option in the preference header item. I had multicountry store and want to allow visitors to select country.

How can I do that by the best way.

Regards,
Faramawy
hristo
7 years ago
#13111 Quote
Avatar
  • Moderator
  • 172
tarekmahran wrote:
Hi,

I bought Pavillion theme and I want to add country selection option in the preference header item. I had multicountry store and want to allow visitors to select country.

How can I do that by the best way.

Regards,
Faramawy



Hello,

in nopCommerce, there are just these three types of options: tax type, currency and language. If you need another one, you have to do implement it yourself. Take a look in Header.cshtml file (Themes\Pavilion\Views\Shared), the code block for header selectors looks like this:

<div class="header-selectors">
    @taxTypeSelectorHtml
    @currencySelectorHtml
    @languageSelectorHtml
    @headerSelectorWidgetHtml
</div>

This code is linking to "partial" files where each option's logic is. The partial files are "CuurencySelector.cshtml", "LanguageSelector.cshtml" and "TaxTypeSelector.cshtml". You have to build your custom code in a similar way.


Regards
Regards,
Hristo Gospodinov
Nop-Templates.com