@jetshop/template-trend 5.14.0 → 5.14.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.linaria-cache/packages/template-trend/src/components/Auth/LogInPage.linaria.css +4 -0
- package/.linaria-cache/packages/template-trend/src/components/Auth/Signup/Address.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/Auth/Signup/CustomerType.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/Auth/Signup/LoginFields.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/Auth/Signup/SignUpPage.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/Auth/UI/Form.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/Cart/CartButton.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/Cart/CartFlyout.linaria.css +7 -0
- package/.linaria-cache/packages/template-trend/src/components/Cart/CartItem.linaria.css +7 -0
- package/.linaria-cache/packages/template-trend/src/components/Cart/FreeShipping.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/CategoryPage/CategoryHeader.linaria.css +8 -0
- package/.linaria-cache/packages/template-trend/src/components/CategoryPage/Filters/ActiveFilters.linaria.css +6 -0
- package/.linaria-cache/packages/template-trend/src/components/CategoryPage/Filters/Filter.linaria.css +4 -0
- package/.linaria-cache/packages/template-trend/src/components/CategoryPage/Filters/FilterDrawer.linaria.css +4 -0
- package/.linaria-cache/packages/template-trend/src/components/CategoryPage/Filters/FilterDropdownMenu.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/CategoryPage/Filters/Mobile/ActiveCarot.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/CategoryPage/Filters/Mobile/FilterButton.linaria.css +5 -0
- package/.linaria-cache/packages/template-trend/src/components/CategoryPage/Filters/Mobile/ListAccordion.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/CategoryPage/Filters/Mobile/shared/styles.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/CategoryPage/Filters/RangeFilters.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/CategoryPage/ProductCard.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/CategoryPage/ProductGrid.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/CategoryPage/ProductGridWindow.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/CategoryPage/StandardCategoryPage.linaria.css +3 -0
- package/.linaria-cache/packages/template-trend/src/components/CategoryPage/WindowedCategoryPage.linaria.css +4 -0
- package/.linaria-cache/packages/template-trend/src/components/ContentPage/ContentPage.linaria.css +5 -0
- package/.linaria-cache/packages/template-trend/src/components/ContentPage/SubPageNavigation.linaria.css +4 -0
- package/.linaria-cache/packages/template-trend/src/components/CookieConsent.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/Forms/GlobalError.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/Forms/Input.linaria.css +4 -0
- package/.linaria-cache/packages/template-trend/src/components/Forms/InputStatus.linaria.css +3 -0
- package/.linaria-cache/packages/template-trend/src/components/Forms/Success.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Container.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Content/index.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Footer/Footer.linaria.css +4 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Footer/SocialLinks.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/Categories/MobileCategories.linaria.css +6 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/CategoryMenu/CategoryMenu.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/CategoryMenu/CategoryMenuContainer.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/CategoryMenu/SubMenuSection.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/CategoryMenu/SubMenuWrapper.linaria.css +5 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/ChannelSelector/ChannelSelector.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/ChannelSelector/ChannelSelectorModal.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/ChannelSelector/Selector.linaria.css +5 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/Header.linaria.css +7 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/Logo.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/LogoSearchBar.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/MobileMenu.linaria.css +6 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/RecommendedChannel/ChannelBanner.linaria.css +5 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/RecommendedChannel/RecommendedChannelSelector.linaria.css +9 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/SearchBar.linaria.css +3 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/SearchButton.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Header/TopNav.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/MaxWidth.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/Layout/Notifications.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/LoadingPage.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/MyPages/CustomerNameHeader.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/MyPages/DeleteAccount.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/MyPages/MyPages.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/MyPages/MyPagesSidebar.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/MyPages/MyPagesStartPage.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/MyPages/Orders/ListOrder.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/MyPages/Orders/OrderDetail/ListDetail.linaria.css +4 -0
- package/.linaria-cache/packages/template-trend/src/components/MyPages/Orders/OrderDetail/OrderTotals.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/MyPages/Orders/OrderDetail/ShippingPayment.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/MyPages/Orders/OrderListPage.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/MyPages/ProfileDeliveryAddresses.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/MyPages/ProfilePage.linaria.css +4 -0
- package/.linaria-cache/packages/template-trend/src/components/NavigationTree/NavTree.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/Newsletter/NewsletterField.linaria.css +3 -0
- package/.linaria-cache/packages/template-trend/src/components/NotFoundPage.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/Pagination/Pagination.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductList/AddToCart.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductList/Favourite.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductList/Favourites.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductList/Product.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/AddToCart/AddToCartForm.linaria.css +3 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/AddToCart/ProductToast.linaria.css +9 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/Campaigns.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/ConfigurationSelector.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/Images/ImageContainer.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/PackageProduct/IncludedInPackages.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/PackageProduct/PackageProduct.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/PackageProduct/PackageProductItem.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/PriceHistory.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/ProductInfo.linaria.css +3 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/ProductInfoAccordion.linaria.css +3 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/ProductPage.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/ProductPageLoadingState.linaria.css +3 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/RelatedProducts.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/StockStatus/NotifyWhenBack.linaria.css +5 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/StockStatus/StockOrb.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/StockStatus/StockStatusIndicator.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/StockStatus/WarehouseStock.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/VariantSelector.linaria.css +3 -0
- package/.linaria-cache/packages/template-trend/src/components/ProductPage/styledComponents.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/SearchPage/CategoryList.linaria.css +7 -0
- package/.linaria-cache/packages/template-trend/src/components/SearchPage/SearchMeta.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/SearchPage/SearchPage.linaria.css +3 -0
- package/.linaria-cache/packages/template-trend/src/components/SearchPage/SearchResults.linaria.css +4 -0
- package/.linaria-cache/packages/template-trend/src/components/SearchPage/SearchTerm.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/SearchPage/WindowedSearchResults.linaria.css +5 -0
- package/.linaria-cache/packages/template-trend/src/components/StartPage/Content/Row.linaria.css +3 -0
- package/.linaria-cache/packages/template-trend/src/components/StartPage/Content/StartPageCampaign.linaria.css +7 -0
- package/.linaria-cache/packages/template-trend/src/components/StartPage/Content/StartPageCategories.linaria.css +3 -0
- package/.linaria-cache/packages/template-trend/src/components/StartPage/Content/StartPageHTMLContent.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/StartPage/Content/StartPageHero.linaria.css +6 -0
- package/.linaria-cache/packages/template-trend/src/components/StartPage/Content/StartPageProductGrid.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/StartPage/StartPage.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/Store/Store.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/StoreLocator/StoreList.linaria.css +5 -0
- package/.linaria-cache/packages/template-trend/src/components/StoreLocator/StoreLocator.linaria.css +5 -0
- package/.linaria-cache/packages/template-trend/src/components/StoreLocator/StoreMap.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/StoreLocator/StoreMarker.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/StoreLocator/StoreSearch.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/StoreLocator/UserLocation.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/ui/Badge.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/ui/Button.linaria.css +4 -0
- package/.linaria-cache/packages/template-trend/src/components/ui/CloseButton.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/components/ui/Headings.linaria.css +2 -0
- package/.linaria-cache/packages/template-trend/src/components/ui/Spinner.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/fonts/loadFontCss.linaria.css +1 -0
- package/.linaria-cache/packages/template-trend/src/globalStyles.linaria.css +1 -0
- package/.linaria-cache/packages/ui/Breadcrumbs/Breadcrumbs.linaria.css +2 -0
- package/.linaria-cache/packages/ui/Button/Button.linaria.css +2 -0
- package/.linaria-cache/packages/ui/Button/SecondaryButton.linaria.css +1 -0
- package/.linaria-cache/packages/ui/Button/TrendButton.linaria.css +1 -0
- package/.linaria-cache/packages/ui/ChannelSelector/ChannelSelector.linaria.css +3 -0
- package/.linaria-cache/packages/ui/ChannelSelector/ChannelSelectorButtons.linaria.css +2 -0
- package/.linaria-cache/packages/ui/ChannelSelector/LargeSelector.linaria.css +1 -0
- package/.linaria-cache/packages/ui/ChannelSelector/MiniSelector.linaria.css +1 -0
- package/.linaria-cache/packages/ui/Checkbox/Checkbox.linaria.css +4 -0
- package/.linaria-cache/packages/ui/Checkbox/CheckboxGroup.linaria.css +3 -0
- package/.linaria-cache/packages/ui/DropdownMenu/DropdownMenu.linaria.css +2 -0
- package/.linaria-cache/packages/ui/ErrorBoundary/Generic.linaria.css +1 -0
- package/.linaria-cache/packages/ui/Gallery/Gallery.linaria.css +2 -0
- package/.linaria-cache/packages/ui/JetshopText.linaria.css +1 -0
- package/.linaria-cache/packages/ui/Loading/LoadingBar.linaria.css +2 -0
- package/.linaria-cache/packages/ui/Modal/Drawer/Drawer.linaria.css +1 -0
- package/.linaria-cache/packages/ui/Modal/ModalProvider.linaria.css +1 -0
- package/.linaria-cache/packages/ui/Modal/ModalRoot.linaria.css +1 -0
- package/.linaria-cache/packages/ui/Pagination/Pagination.linaria.css +1 -0
- package/.linaria-cache/packages/ui/Pagination/usePagination.linaria.css +1 -0
- package/.linaria-cache/packages/ui/PreOrderDateSelector/PreOrderDateSelector.linaria.css +1 -0
- package/.linaria-cache/packages/ui/Price/Price.linaria.css +4 -0
- package/.linaria-cache/packages/ui/ProductList/Badges.linaria.css +7 -0
- package/.linaria-cache/packages/ui/ProductSpecifications/ProductSpecifications.linaria.css +1 -0
- package/.linaria-cache/packages/ui/Search/SearchField.linaria.css +5 -0
- package/.linaria-cache/packages/ui/Search/SearchPage/SearchMeta.linaria.css +1 -0
- package/.linaria-cache/packages/ui/Select/Components.linaria.css +10 -0
- package/.linaria-cache/packages/ui/Theme/sanitizeCss.linaria.css +1 -0
- package/package.json +6 -6
- package/schema.graphql +1 -1
- package/src/components/Auth/LogInPage.js +4 -0
- package/src/components/CategoryPage/ProductCard.js +1 -0
- package/src/components/CategoryPage/ProductGridFragment.gql +1 -0
- package/src/components/Layout/Header/ChannelSelector/ChannelSelector.js +36 -40
- package/src/components/Layout/Header/ChannelSelector/ChannelSelectorModal.js +10 -3
- package/src/components/Layout/Header/ChannelSelector/Selector.js +5 -1
- package/src/components/Layout/Header/MobileMenu.js +1 -1
- package/src/components/Layout/Header/RecommendedChannel/ChannelBanner.js +8 -3
- package/src/components/Layout/Header/RecommendedChannel/RecommendedChannelSelector.js +1 -8
- package/src/components/MyPages/MyPages.js +5 -0
- package/src/components/ProductList/AddToCart.js +5 -1
- package/src/components/ProductList/Favourites.js +8 -2
- package/src/components/ProductList/ProductLists.gql +1 -0
- package/src/components/ProductPage/AddToCart/AddToCartForm.js +10 -6
- package/src/components/ProductPage/ProductPageFragment.gql +1 -0
- package/src/shop.config.js +1 -1
- package/translations/sk.json +24 -0
- package/translations/sv.json +11 -2
|
@@ -20,20 +20,21 @@ const modalStyles = css`
|
|
|
20
20
|
right: 0;
|
|
21
21
|
top: 0;
|
|
22
22
|
bottom: 0;
|
|
23
|
+
position: fixed;
|
|
23
24
|
background: white;
|
|
24
25
|
padding: 1rem;
|
|
25
26
|
outline: none;
|
|
26
27
|
`;
|
|
27
28
|
|
|
28
29
|
const ChannelSelectorModal = props => {
|
|
29
|
-
const { selectedChannel, channels, updateChannel } =
|
|
30
|
+
const { selectedChannel, channels, updateChannel, selectedChannelGroup } =
|
|
30
31
|
useContext(ChannelContext);
|
|
31
32
|
return (
|
|
32
33
|
<ModalTrigger
|
|
33
34
|
modalStyles={modalStyles}
|
|
34
35
|
target={props => (
|
|
35
36
|
<Selector
|
|
36
|
-
channels={channels}
|
|
37
|
+
channels={selectedChannelGroup || channels}
|
|
37
38
|
selectedChannel={selectedChannel}
|
|
38
39
|
updateChannel={updateChannel}
|
|
39
40
|
type={LargeSelector}
|
|
@@ -42,7 +43,13 @@ const ChannelSelectorModal = props => {
|
|
|
42
43
|
)}
|
|
43
44
|
>
|
|
44
45
|
{({ showTarget }) => (
|
|
45
|
-
<Button
|
|
46
|
+
<Button
|
|
47
|
+
onClick={() => {
|
|
48
|
+
props.hideMobileMenu();
|
|
49
|
+
showTarget();
|
|
50
|
+
}}
|
|
51
|
+
{...props}
|
|
52
|
+
>
|
|
46
53
|
<img
|
|
47
54
|
src={`https://countryflags.jetshop.io/${selectedChannel.country.code}/flat/32.png`}
|
|
48
55
|
alt="Country Flag"
|
|
@@ -83,6 +83,11 @@ const StyledTitle = styled(Title)`
|
|
|
83
83
|
padding: 2px 0 16px;
|
|
84
84
|
margin-bottom: 4px;
|
|
85
85
|
font-size: 14px;
|
|
86
|
+
${theme.below.lg} {
|
|
87
|
+
&& {
|
|
88
|
+
padding-bottom: 0.5rem;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
86
91
|
`;
|
|
87
92
|
|
|
88
93
|
const actions = css`
|
|
@@ -113,7 +118,6 @@ const Selector = ({
|
|
|
113
118
|
channels={channels}
|
|
114
119
|
initialChannel={selectedChannel}
|
|
115
120
|
render={({
|
|
116
|
-
channels,
|
|
117
121
|
currencyItems,
|
|
118
122
|
languageItems,
|
|
119
123
|
selectedChannel,
|
|
@@ -193,8 +193,13 @@ const Flyout = ({ children }) => (
|
|
|
193
193
|
);
|
|
194
194
|
|
|
195
195
|
const ChannelBanner = () => {
|
|
196
|
-
const {
|
|
197
|
-
|
|
196
|
+
const {
|
|
197
|
+
channels,
|
|
198
|
+
recommendedChannel,
|
|
199
|
+
selectedChannel,
|
|
200
|
+
updateChannel,
|
|
201
|
+
selectedChannelGroup
|
|
202
|
+
} = useContext(ChannelContext);
|
|
198
203
|
|
|
199
204
|
const { bannerIsOpen, hideTheBanner } = useChannelBanner();
|
|
200
205
|
|
|
@@ -247,7 +252,7 @@ const ChannelBanner = () => {
|
|
|
247
252
|
{({ isOpen, hideTarget }) => (
|
|
248
253
|
<Flyout>
|
|
249
254
|
<Selector
|
|
250
|
-
channels={channels}
|
|
255
|
+
channels={selectedChannelGroup || channels}
|
|
251
256
|
selectedChannel={selectedChannel}
|
|
252
257
|
updateChannel={updateChannel}
|
|
253
258
|
hideTarget={hideTarget}
|
|
@@ -114,13 +114,7 @@ const StyledCancelButton = styled(CancelButton)`
|
|
|
114
114
|
border: 1px solid #e1e1e1;
|
|
115
115
|
`;
|
|
116
116
|
|
|
117
|
-
const Selector = ({
|
|
118
|
-
channels,
|
|
119
|
-
selectedChannel,
|
|
120
|
-
updateChannel,
|
|
121
|
-
setOpenBanner,
|
|
122
|
-
hideTarget
|
|
123
|
-
}) => {
|
|
117
|
+
const Selector = ({ channels, selectedChannel, updateChannel, hideTarget }) => {
|
|
124
118
|
const [countries] = useState(flattenCountries(channels));
|
|
125
119
|
|
|
126
120
|
return (
|
|
@@ -128,7 +122,6 @@ const Selector = ({
|
|
|
128
122
|
channels={channels}
|
|
129
123
|
initialChannel={selectedChannel}
|
|
130
124
|
render={({
|
|
131
|
-
channels,
|
|
132
125
|
currencyItems,
|
|
133
126
|
languageItems,
|
|
134
127
|
selectedChannel,
|
|
@@ -14,6 +14,7 @@ import OrderListPage from './Orders/OrderListPage';
|
|
|
14
14
|
import ProfilePage from './ProfilePage';
|
|
15
15
|
import { useLocation } from 'react-router';
|
|
16
16
|
import { useShopConfig } from '@jetshop/core/hooks/useShopConfig';
|
|
17
|
+
import { Helmet } from 'react-helmet-async';
|
|
17
18
|
|
|
18
19
|
import { theme } from '../Theme';
|
|
19
20
|
|
|
@@ -169,6 +170,10 @@ function MyPages() {
|
|
|
169
170
|
|
|
170
171
|
return (
|
|
171
172
|
<MaxWidth>
|
|
173
|
+
<Helmet>
|
|
174
|
+
<meta name="robots" content="noindex" />
|
|
175
|
+
</Helmet>
|
|
176
|
+
|
|
172
177
|
<MyPagesSidebar
|
|
173
178
|
baseRoute={baseRoute}
|
|
174
179
|
routes={routes}
|
|
@@ -58,7 +58,11 @@ export function AddToCart({ product }) {
|
|
|
58
58
|
});
|
|
59
59
|
|
|
60
60
|
return (
|
|
61
|
-
<button
|
|
61
|
+
<button
|
|
62
|
+
className={addButton}
|
|
63
|
+
onClick={() => add()}
|
|
64
|
+
disabled={product.hidePrice}
|
|
65
|
+
>
|
|
62
66
|
{t('Add to cart')}
|
|
63
67
|
</button>
|
|
64
68
|
);
|
|
@@ -14,6 +14,7 @@ import MaxWidth from '../Layout/MaxWidth';
|
|
|
14
14
|
import { theme } from '../Theme';
|
|
15
15
|
import Button from '../ui/Button';
|
|
16
16
|
import { Product } from './Product';
|
|
17
|
+
import { Helmet } from 'react-helmet-async';
|
|
17
18
|
|
|
18
19
|
import addMultipleToCartMutation from '../Cart/queries/addMultipleToCart.gql';
|
|
19
20
|
import cartQuery from '../Cart/queries/cartQuery.gql';
|
|
@@ -54,6 +55,9 @@ export function Favourites() {
|
|
|
54
55
|
if (noProductsInList) {
|
|
55
56
|
return (
|
|
56
57
|
<MaxWidth className={cx(container, loading ? 'loading' : null)}>
|
|
58
|
+
<Helmet>
|
|
59
|
+
<meta name="robots" content="noindex" />
|
|
60
|
+
</Helmet>
|
|
57
61
|
<h1>{t('Saved items')}</h1>
|
|
58
62
|
<p>{t('There are no products in your saved items list.')}</p>
|
|
59
63
|
</MaxWidth>
|
|
@@ -83,7 +87,6 @@ export function Favourites() {
|
|
|
83
87
|
);
|
|
84
88
|
})}
|
|
85
89
|
</ul>
|
|
86
|
-
|
|
87
90
|
<div className="add-clear">
|
|
88
91
|
<Button
|
|
89
92
|
style={{ marginTop: '2em' }}
|
|
@@ -103,6 +106,9 @@ export function Favourites() {
|
|
|
103
106
|
</Button>
|
|
104
107
|
<ClearList listId={listId}>{t('Clear list')}</ClearList>
|
|
105
108
|
</div>
|
|
109
|
+
<Helmet>
|
|
110
|
+
<meta name="robots" content="noindex" />
|
|
111
|
+
</Helmet>
|
|
106
112
|
</MaxWidth>
|
|
107
113
|
);
|
|
108
114
|
}
|
|
@@ -125,7 +131,7 @@ function getItemsForAddToCart(products) {
|
|
|
125
131
|
// to be the variant rather than the base product
|
|
126
132
|
return products
|
|
127
133
|
.filter(product => {
|
|
128
|
-
return product.validation.status === 'valid';
|
|
134
|
+
return product.validation.status === 'valid' && !product.hidePrice;
|
|
129
135
|
})
|
|
130
136
|
.map(product => ({
|
|
131
137
|
...product,
|
|
@@ -65,9 +65,10 @@ function AddToCartForm({
|
|
|
65
65
|
const configurationContext = useContext(ProductConfigurationContext);
|
|
66
66
|
const price = useDynamicPrice(product, variant);
|
|
67
67
|
const stockStatus = useStockStatus(variant || product);
|
|
68
|
+
|
|
68
69
|
const outOfStockNotify = stockStatus.status === 'notifyWhenBack';
|
|
69
70
|
const { validation: variantValidation, missingOptions } = variantHandler;
|
|
70
|
-
const { hasVariants } = product;
|
|
71
|
+
const { hasVariants, hidePrice } = product;
|
|
71
72
|
const { validationMessage, enableValidation } = useProductValidationMessage({
|
|
72
73
|
missingOptions,
|
|
73
74
|
variantValidation,
|
|
@@ -134,6 +135,7 @@ function AddToCartForm({
|
|
|
134
135
|
product={product}
|
|
135
136
|
/>
|
|
136
137
|
<Price
|
|
138
|
+
hidePrice={product.hidePrice}
|
|
137
139
|
{...price}
|
|
138
140
|
css={{
|
|
139
141
|
marginBottom: '24px',
|
|
@@ -141,10 +143,12 @@ function AddToCartForm({
|
|
|
141
143
|
configurationContext && configurationContext.loading ? 0.3 : 1
|
|
142
144
|
}}
|
|
143
145
|
/>
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
{!hidePrice && (
|
|
147
|
+
<PriceHistoryWrapper
|
|
148
|
+
articleNumber={product.articleNumber}
|
|
149
|
+
variant={variant}
|
|
150
|
+
/>
|
|
151
|
+
)}
|
|
148
152
|
|
|
149
153
|
<Campaigns
|
|
150
154
|
campaigns={product.campaigns}
|
|
@@ -170,7 +174,7 @@ function AddToCartForm({
|
|
|
170
174
|
status={stockStatus.status}
|
|
171
175
|
text={stockStatus.text}
|
|
172
176
|
/>
|
|
173
|
-
{!outOfStockNotify && (
|
|
177
|
+
{!outOfStockNotify && !hidePrice && (
|
|
174
178
|
<QuantityAddToCartWrapper>
|
|
175
179
|
<InputWithLabel
|
|
176
180
|
disableValidation
|
package/src/shop.config.js
CHANGED
|
@@ -45,7 +45,7 @@ const config = {
|
|
|
45
45
|
options: {}
|
|
46
46
|
},
|
|
47
47
|
channelOverrides: {},
|
|
48
|
-
disableGeoRedirect: true,
|
|
48
|
+
disableGeoRedirect: process.env.REACT_APP_DISABLE_GEOREDIRECT || true,
|
|
49
49
|
singleDomainMode:
|
|
50
50
|
typeof process.env.REACT_APP_SINGLE_DOMAIN_MODE === 'undefined'
|
|
51
51
|
? true
|
package/translations/sk.json
CHANGED
|
@@ -763,5 +763,29 @@
|
|
|
763
763
|
},
|
|
764
764
|
"z_to_a_75ce9568": {
|
|
765
765
|
"message": "Od Z do A"
|
|
766
|
+
},
|
|
767
|
+
"pid_is_invalid_2a8f005e": {
|
|
768
|
+
"message": "Uvedené číslo sociálneho poistenia nie je platné."
|
|
769
|
+
},
|
|
770
|
+
"email_address_is_invalid_dd753229": {
|
|
771
|
+
"message": "Zadaná e-mailová adresa nie je platná."
|
|
772
|
+
},
|
|
773
|
+
"postal_code_is_invalid_438e6940": {
|
|
774
|
+
"message": "Zadané poštové číslo nie je platné."
|
|
775
|
+
},
|
|
776
|
+
"postal_code_is_required_ca3b7a32": {
|
|
777
|
+
"message": "Vyžaduje sa PSČ.."
|
|
778
|
+
},
|
|
779
|
+
"this_pid_is_already_registered_83895f84": {
|
|
780
|
+
"message": "Uvedené číslo sociálneho poistenia je už zaregistrované."
|
|
781
|
+
},
|
|
782
|
+
"your_email_address_is_already_registered_3d806453": {
|
|
783
|
+
"message": "Zadaná e-mailová adresa je už zaregistrovaná."
|
|
784
|
+
},
|
|
785
|
+
"pid_is_required_68787e3": {
|
|
786
|
+
"message": "Číslo sociálneho poistenia je povinné."
|
|
787
|
+
},
|
|
788
|
+
"email_address_is_required_24d62494": {
|
|
789
|
+
"message": "Vyžaduje sa e-mailová adresa."
|
|
766
790
|
}
|
|
767
791
|
}
|
package/translations/sv.json
CHANGED
|
@@ -245,6 +245,9 @@
|
|
|
245
245
|
"invalid_email_address_8d0d5e33": {
|
|
246
246
|
"message": "Felaktig e-postadress"
|
|
247
247
|
},
|
|
248
|
+
"it_looks_like_you_are_visiting_us_from_country_do__832ec546": {
|
|
249
|
+
"message": "Det verkar som att du besöker oss från { country }. Vill du besöka vår webbplats för { country }?"
|
|
250
|
+
},
|
|
248
251
|
"join_the_newsletter_fbefaa77": {
|
|
249
252
|
"message": "Prenumerera på nyhetsbrev"
|
|
250
253
|
},
|
|
@@ -464,6 +467,12 @@
|
|
|
464
467
|
"products_c5f0793": {
|
|
465
468
|
"message": "Produkter"
|
|
466
469
|
},
|
|
470
|
+
"productcount_plural_1_add_product_to_cart_other_ad_b37e18fc": {
|
|
471
|
+
"message": "{ productCount, plural,\n =1 {Lägg till # produkt i varukorgen}\n other {Lägg till # produkter i varukorgen}\n}"
|
|
472
|
+
},
|
|
473
|
+
"productcount_plural_1_product_added_to_the_cart_ot_e20e0dc8": {
|
|
474
|
+
"message": "{ productCount, plural,\n =1 {# produkt har lagts i varukorgen.}\n other {# produkter har lagts i varukorgen.}\n}"
|
|
475
|
+
},
|
|
467
476
|
"quantity_20164bff": {
|
|
468
477
|
"message": "Kvantitet"
|
|
469
478
|
},
|
|
@@ -776,8 +785,8 @@
|
|
|
776
785
|
"getting_the_last_days_days_price_changes_bedecd5": {
|
|
777
786
|
"message": "Hämtar de senaste { days } dagarnas prisändringar..."
|
|
778
787
|
},
|
|
779
|
-
"
|
|
780
|
-
"message": "Hittade inte några prisförändringar senaste { days } dagarna"
|
|
788
|
+
"the_price_has_not_changed_in_the_last_days_days_7f5c65f8": {
|
|
789
|
+
"message": "Hittade inte några prisförändringar de senaste { days } dagarna"
|
|
781
790
|
},
|
|
782
791
|
"view_price_history_8078c9af": {
|
|
783
792
|
"message": "Visa prishistorik"
|