Merge pull request #7250 from drummer83/independent-shopping-tabs

Independent shopping tabs
This commit is contained in:
Pau Pérez Fabregat
2021-03-29 16:26:01 +02:00
committed by GitHub
2 changed files with 4 additions and 2 deletions

View File

@@ -29,9 +29,9 @@ module ShopHelper
{ name: 'home', title: t(:shopping_tabs_home), show: show_home_tab? },
{ name: 'shop', title: t(:shopping_tabs_shop), show: !require_customer? },
{ name: 'about', title: t(:shopping_tabs_about), show: true },
{ name: 'producers', title: t(:label_producers), show: true },
{ name: 'producers', title: t(:shopping_tabs_producers), show: true },
{ name: 'contact', title: t(:shopping_tabs_contact), show: true },
{ name: 'groups', title: t(:label_groups), show: current_distributor.groups.any? },
{ name: 'groups', title: t(:shopping_tabs_groups), show: current_distributor.groups.any? },
].select{ |tab| tab[:show] }
end

View File

@@ -1680,7 +1680,9 @@ See the %{link} to find out more about %{sitename}'s features and to start using
shopping_tabs_home: "Home"
shopping_tabs_shop: "Shop"
shopping_tabs_about: "About"
shopping_tabs_producers: "Producers"
shopping_tabs_contact: "Contact"
shopping_tabs_groups: "Groups"
shopping_contact_address: "Address"
shopping_contact_web: "Contact"
shopping_contact_social: "Follow"