@riosst100/pwa-marketplace 1.6.9 → 1.7.0

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@riosst100/pwa-marketplace",
3
3
  "author": "riosst100@gmail.com",
4
- "version": "1.6.9",
4
+ "version": "1.7.0",
5
5
  "main": "src/index.js",
6
6
  "pwa-studio": {
7
7
  "targets": {
@@ -0,0 +1,39 @@
1
+ import React from 'react';
2
+ import cn from 'classnames';
3
+
4
+ const ProductLabel = (props) => {
5
+ const {
6
+ rootClassName = '',
7
+ item
8
+ } = props;
9
+
10
+ const preorderData = item ? item.preorder : null;
11
+ const isPreOrder = preorderData && preorderData.is_preorder ? true : false;
12
+
13
+ return (
14
+ <div
15
+ className={cn(
16
+ 'flex flex-row flex-wrap gap-y-1.5 gap-x-[5px] absolute p-[5px] z-[1]',
17
+ rootClassName
18
+ )}
19
+ >
20
+ {/* <div className='bg-yellow-400 rounded px-2.5 py-[6px] w-fit top-0 left-0'>
21
+ <span className='text-white text-xs font-medium'>
22
+ 10% off
23
+ </span>
24
+ </div> */}
25
+ {isPreOrder && <div className='bg-darkblue-900 rounded px-2.5 py-[6px] w-fit top-0 left-0'>
26
+ <span className='text-white text-xs font-medium'>
27
+ Pre Order
28
+ </span>
29
+ </div>}
30
+ {/* <div className='bg-blue-700 rounded px-2.5 py-[6px] w-fit top-0 left-0'>
31
+ <span className='text-white text-xs font-medium'>
32
+ Auction
33
+ </span>
34
+ </div> */}
35
+ </div>
36
+ )
37
+ }
38
+
39
+ export default ProductLabel
@@ -1,12 +1,23 @@
1
- import React, { useState } from 'react';
1
+ import React, { useCallback, useMemo, useRef, useState } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { FormattedMessage } from 'react-intl';
4
4
  import { useStyle } from '@magento/venia-ui/lib/classify';
5
5
  import defaultClasses from './productListTab.module.css';
6
+ import { useFilterSidebar } from '@magento/peregrine/lib/talons/FilterSidebar';
7
+ import CurrentTopFilter from '@riosst100/pwa-marketplace/src/components/FilterTop/CurrentTopFilters/currentTopFilter';
6
8
 
7
9
  const ProductListTab = props => {
8
10
 
9
- const { activeTab, setActiveTab } = props
11
+ const { activeTab, setActiveTab, filters } = props
12
+
13
+ const talonProps = useFilterSidebar({ filters });
14
+ const {
15
+ filterApi,
16
+ filterState,
17
+ handleApply
18
+ } = talonProps;
19
+
20
+ const { toggleItem, removeItem } = filterApi;
10
21
 
11
22
  const classes = useStyle(defaultClasses, props.classes);
12
23
 
@@ -26,7 +37,7 @@ const ProductListTab = props => {
26
37
  },
27
38
  {
28
39
  'label': 'Pre Order',
29
- 'value': 'preorder'
40
+ 'value': 'lof_preorder'
30
41
  },
31
42
  {
32
43
  'label': 'Auction',
@@ -34,13 +45,50 @@ const ProductListTab = props => {
34
45
  }
35
46
  ];
36
47
 
48
+ const handleClickremove = useCallback((group, item) => {
49
+ console.log(group)
50
+ console.log(item)
51
+ removeItem({ group, item });
52
+ if (typeof handleApply === 'function') {
53
+ handleApply(group, item);
54
+ }
55
+ }, [removeItem, handleApply]);
56
+
57
+ const handleToggleItem = useCallback((group, item) => {
58
+ toggleItem({ group, item });
59
+ if (typeof handleApply === 'function') {
60
+ handleApply(group, item);
61
+ }
62
+ }, [toggleItem, handleApply]);
63
+
64
+ const handleClick = (targetGroup) => {
65
+ setActiveTab(targetGroup);
66
+
67
+ const item = { value: "1", label: 'Yes', title: 'Yes' };
68
+
69
+ for (const [group, items] of filterState) {
70
+ for (const item of items) {
71
+ const { title, value } = item || {};
72
+ const key = `${group}::${title}_${value}`;
73
+
74
+ if (productTabs.some(e => e.value === group)) {
75
+ handleClickremove(group, item)
76
+ }
77
+ }
78
+ }
79
+
80
+ if (targetGroup != "all") {
81
+ handleToggleItem(targetGroup, item)
82
+ }
83
+ }
84
+
37
85
  return (
38
86
  <div className={classes.root} aria-busy="true">
39
87
  <nav>
40
88
  <ul className={classes.buttonContainer}>
41
89
  {productTabs.map(({label, value}, index) =>
42
90
  <li key={index}>
43
- <button onClick={() => setActiveTab(value)} className={
91
+ <button onClick={() => handleClick(value)} className={
44
92
  (index == 0 ? classes.firstButton : (index == productTabs.length-1 ? classes.lastButton : classes.middleButton)) + (activeTab == value ? ' ' + classes.activeButton : '')
45
93
  }>{label}</button>
46
94
  </li>
@@ -57,7 +57,7 @@
57
57
  composes: button;
58
58
  composes: text-colorDefault from global;
59
59
  composes: bg-white from global;
60
- composes: border-r-0 from global;
60
+ /* composes: border-l-0 from global; */
61
61
  composes: border-gray-100 from global;
62
62
  composes: rounded-l-lg from global;
63
63
  border-radius: 6px 0px 0px 6px;
@@ -0,0 +1,173 @@
1
+ import React, { Fragment, useEffect, useMemo, useState } from 'react';
2
+ import ErrorView from '@magento/venia-ui/lib/components/ErrorView';
3
+ import { StoreTitle, Meta } from '@magento/venia-ui/lib/components/Head';
4
+ import { Link } from 'react-router-dom';
5
+ import resourceUrl from '@magento/peregrine/lib/util/makeUrl';
6
+ import defaultClasses from './shopBy.module.css';
7
+ import { useStyle } from '@magento/venia-ui/lib/classify';
8
+ import cn from 'classnames';
9
+ import Divider from '@riosst100/pwa-marketplace/src/components/Divider';
10
+ import { ShopByShimmer } from '@riosst100/pwa-marketplace/src/components/ShopBy';
11
+ import CustomSortBy from '@riosst100/pwa-marketplace/src/components/CustomSortBy';
12
+ import ArraySearchInput from '@riosst100/pwa-marketplace/src/components/ArraySearchInput';
13
+ import { useCustomSort } from '@riosst100/pwa-marketplace/src/hooks/useCustomSort';
14
+ import { useShopBy } from '@riosst100/pwa-marketplace/src/talons/ShopBy/useShopBy';
15
+
16
+ const ShopBy = props => {
17
+ const [active, setActive] = useState('all');
18
+
19
+ const [searchQuery, setSearchQuery] = useState('');
20
+
21
+
22
+ const sortProps = useCustomSort({ sortFromSearch: false, defaultSort: {
23
+ sortText: 'All (A-Z)',
24
+ value: 'all'
25
+ }});
26
+
27
+ const [currentSort] = sortProps;
28
+
29
+ // const [sortBy, setSortBy] = useState({
30
+ // sortText: 'All (A-Z)',
31
+ // value: 'all'
32
+ // });
33
+
34
+ // console.log(currentSort)
35
+
36
+ const classes = useStyle(defaultClasses);
37
+
38
+ const talonProps = useShopBy({ searchQuery, setActive, currentSort });
39
+
40
+ const { error, loading, dataResult, categoryUrlSuffix, categoryUrlKey, productType, filteredCollectibleGameSets, availableGroups, attributeData, alpha, category } = talonProps;
41
+
42
+ if (loading && !dataResult)
43
+ return <ShopByShimmer />;
44
+ if (error && !dataResult) return <ErrorView />;
45
+
46
+ if (!dataResult && !loading && !error) {
47
+ return <ShopByShimmer />;
48
+ }
49
+
50
+ const newData = searchQuery ? filteredCollectibleGameSets : dataResult;
51
+
52
+ const setRelases = availableGroups.map((group, index) => {
53
+ const optionsResult = [];
54
+
55
+ if (active === 'all' || active === group) {
56
+ dataResult[group].map((option, index) => {
57
+ const { label, value } = option;
58
+
59
+ const categoryUrl = resourceUrl(
60
+ `/${categoryUrlKey}${categoryUrlSuffix || ''}?${attributeData.attribute_code}[filter]=${label},${value}`
61
+ );
62
+
63
+ optionsResult.push(<li className='list-none'>
64
+ <Link to={categoryUrl} className="hover_bg-darkblue-900 hover_text-white w-full block text-[14px] py-[2px] px-2">
65
+ {label}
66
+ </Link>
67
+ </li>)
68
+ })
69
+
70
+ return (
71
+ <>
72
+ {optionsResult ?
73
+ <div className='singles_group-wrapper mb-4 px-2 inline-block w-full'>
74
+ <div className='singles_item_group_letter text-xl font-semibold border-b border-gray-100 pb-1 mb-2' >
75
+ {group}
76
+ </div>
77
+ <div className={cn('singles_item-list flex flex-col')}>{optionsResult}</div>
78
+ </div> : ''}
79
+ </>
80
+ );
81
+ }
82
+
83
+ return null;
84
+ });
85
+
86
+ const handleActive = (val) => {
87
+ setActive(val);
88
+
89
+ //
90
+
91
+
92
+ setSearchQuery('')
93
+ }
94
+
95
+ let availableSortBy = [
96
+ {
97
+ 'label': 'All (A-Z)',
98
+ 'value': 'all'
99
+ }
100
+ ];
101
+
102
+ let title = "All Sets";
103
+ if (productType == "expansion-sets") {
104
+ title = "Expansion Sets";
105
+ } else if (productType == "artist") {
106
+ title = "Artist";
107
+ }
108
+
109
+ return (
110
+ <Fragment>
111
+ <StoreTitle>{title}</StoreTitle>
112
+ <h1 className='mx-auto relative block text-xl font-bold text-center pt-10 pb-4'>
113
+ {attributeData ? 'By ' + attributeData.label : 'Shop By'}
114
+ </h1>
115
+ <div className='border border-gray-100 px-6'>
116
+ {dataResult ? (
117
+ <div
118
+ className={classes.toolbar}
119
+ >
120
+ <div style={{"width":"35%"}}><ArraySearchInput active={active} searchQuery={searchQuery} placeholder="Search sets..." isOpen={true} setSearchQuery={setSearchQuery} /></div>
121
+ <CustomSortBy sortProps={sortProps} availableSortMethods={availableSortBy} />
122
+ </div>
123
+ ) : ''}
124
+ {productType != "expansion-sets" ? (
125
+ <>
126
+ <section className='single_list-indexing-container relative m-auto py-10'>
127
+ <ul className='flex gap-2 justify-center flex-wrap'>
128
+ <li>
129
+ <button
130
+ className={cn(
131
+ 'rounded-md border border-solid border-gray-100 p-2 min-w-[28px]',
132
+ 'leading-4 font-medium text-base hover_bg-gray-50'
133
+ )}
134
+ onClick={() => {
135
+ handleActive('all')
136
+ }}
137
+ >
138
+ {active == 'all' ? <b>All</b> : 'All'}
139
+ </button>
140
+ </li>
141
+ {alpha.map((letter, index) => (
142
+ <li key={index}>
143
+ <button
144
+ className={cn(
145
+ 'rounded-md border border-solid border-gray-100 p-2 min-w-[28px]',
146
+ 'leading-4 font-medium text-base ',
147
+ availableGroups.includes(letter) > 0 ? 'hover_bg-gray-50' : 'bg-gray-100 text-gray-400',
148
+ )}
149
+ onClick={() => {
150
+ handleActive(letter)
151
+ }}
152
+ disabled={availableGroups.includes(letter) > 0 ? false : true}
153
+ >
154
+ {active == letter ? <b>{letter}</b> : letter}
155
+ </button>
156
+ </li>
157
+ ))}
158
+ </ul>
159
+ </section>
160
+ </>
161
+ ) : ''}
162
+ <Divider className="mb-5 px-4 mt-5" />
163
+ <section className='singles-container'>
164
+ <div className={cn('singles-wrapper block -mx-4', classes.singlesWrapper)}>
165
+ {Object.keys(dataResult).length != 0 ? setRelases : (searchQuery ? <div className='singles_group-wrapper mb-4 px-2 inline-block w-full'>No data found for <b>{searchQuery}</b> search query.</div> : <div className='singles_group-wrapper mb-4 px-2 inline-block w-full'>No data found.</div>)}
166
+ </div>
167
+ </section>
168
+ </div>
169
+ </Fragment>
170
+ );
171
+ }
172
+
173
+ export default ShopBy;
@@ -148,6 +148,66 @@ export const useFilterSidebar = props => {
148
148
  }
149
149
  }
150
150
 
151
+ const productTabs = [
152
+ {
153
+ 'label': 'All Products',
154
+ 'value': 'all',
155
+ 'path': '',
156
+ 'options': [
157
+ {'value':'0','label':'No','title':'No'},
158
+ {'value':'1','label':'Yes','title':'Yes'}
159
+ ]
160
+ },
161
+ {
162
+ 'label': 'Sale',
163
+ 'value': 'sale',
164
+ 'path': '',
165
+ 'options': [
166
+ {'value':'0','label':'No','title':'No'},
167
+ {'value':'1','label':'Yes','title':'Yes'}
168
+ ]
169
+ },
170
+ {
171
+ 'label': 'Preorder',
172
+ 'value': 'lof_preorder',
173
+ 'path': '',
174
+ 'options': [
175
+ {'value':'0','label':'No','title':'No'},
176
+ {'value':'1','label':'Yes','title':'Yes'}
177
+ ]
178
+ },
179
+ {
180
+ 'label': 'Auction',
181
+ 'value': 'auction',
182
+ 'path': '',
183
+ 'options': [
184
+ {'value':'0','label':'No','title':'No'},
185
+ {'value':'1','label':'Yes','title':'Yes'}
186
+ ]
187
+ }
188
+ ];
189
+
190
+ if (productTabs) {
191
+ productTabs.map(({ value, options }, index) => {
192
+
193
+
194
+ const items = [];
195
+
196
+ names.set(value, '');
197
+ frontendInput.set(value, null);
198
+
199
+ // add filter key permutations
200
+ keys.add(`${value}[filter]`);
201
+
202
+ // add items
203
+ for (const { label, value, path } of options) {
204
+ items.push({ title: stripHtml(label), value, path });
205
+ }
206
+
207
+ itemsByGroup.set(value, items);
208
+ })
209
+ }
210
+
151
211
  return [names, keys, itemsByGroup, frontendInput];
152
212
  }, [filters, possibleFilters]);
153
213
 
@@ -555,7 +555,8 @@ export const useProductFullDetail = props => {
555
555
  sku: product.sku,
556
556
  term_and_conditions: product.term_and_conditions,
557
557
  shipping_policy: product.shipping_policy,
558
- return_policy: product.return_policy
558
+ return_policy: product.return_policy,
559
+ preorder: product.preorder
559
560
  };
560
561
 
561
562
  const sellerDetails = {
@@ -16,6 +16,11 @@ export const ProductsFragment = gql`
16
16
  id
17
17
  uid
18
18
  name
19
+ preorder {
20
+ is_preorder
21
+ preorder_notes
22
+ preorder_availability
23
+ }
19
24
  seller {
20
25
  name
21
26
  }
@@ -54,6 +54,11 @@ export const ProductDetailsFragment = gql`
54
54
  }
55
55
  }
56
56
  sku
57
+ preorder {
58
+ is_preorder
59
+ preorder_notes
60
+ preorder_availability
61
+ }
57
62
  term_and_conditions
58
63
  shipping_policy
59
64
  return_policy
@@ -108,13 +108,25 @@ const CategoryContent = props => {
108
108
  }
109
109
 
110
110
  if (activeLetter == "all" || activeLetter != "all" && firstLetter == activeLetter) {
111
- return galleryItems.push(item);
111
+ if (activeTab == "preorder") {
112
+ const preorderData = item.preorder;
113
+ if (preorderData) {
114
+ const isPreOrder = preorderData && preorderData.is_preorder ? true : false;
115
+ if (isPreOrder) {
116
+ return galleryItems.push(item);
117
+ }
118
+ }
119
+ } else {
120
+ return galleryItems.push(item);
121
+ }
112
122
  }
113
123
  }
114
124
  }),
115
- [items, activeLetter]
125
+ [items, activeLetter, activeTab]
116
126
  });
117
127
 
128
+ console.log(galleryItems)
129
+
118
130
  const sidebarRef = useRef(null);
119
131
  const classes = useStyle(defaultClasses, props.classes);
120
132
  const shouldRenderSidebarContent = useIsInViewport({
@@ -162,8 +174,8 @@ const CategoryContent = props => {
162
174
  <SortedByContainerShimmer />
163
175
  ) : null;
164
176
 
165
- const maybeProductsTabContainer = shouldShowProductListTab ? (
166
- <ProductListTab activeTab={activeTab} setActiveTab={setActiveTab} />
177
+ const maybeProductsTabContainer = !isLoading ? (
178
+ <ProductListTab filters={filters} activeTab={activeTab} setActiveTab={setActiveTab} />
167
179
  ) : shouldShowProductListTabShimmer ? (
168
180
  <ProductListTabShimmer />
169
181
  ) : null;
@@ -6,6 +6,7 @@
6
6
  composes: gap-[6px] from global;
7
7
  composes: my-[10px] from global;
8
8
  padding-top: 20px;
9
+ margin-bottom: 40px;
9
10
  }
10
11
 
11
12
  .text {
@@ -20,7 +20,7 @@ const CurrentFilters = props => {
20
20
  const { title, value } = item || {};
21
21
  const key = `${group}::${title}_${value}`;
22
22
 
23
- const customAttributeLandingPage = ['card_set', 'sc_baseball_release'];
23
+ const customAttributeLandingPage = ['card_set', 'sc_baseball_release','auction','sale','lof_preorder'];
24
24
 
25
25
  if (!customAttributeLandingPage.includes(group)) {
26
26
  elements.push(
@@ -90,6 +90,9 @@ const FilterSidebar = props => {
90
90
  const blockState = filterState.get(group);
91
91
  const groupName = filterNames.get(group);
92
92
  const frontendInput = filterFrontendInput.get(group);
93
+
94
+ const hideFilters = ['lof_preorder','auction','sale'];
95
+ if (!hideFilters.includes(group)) {
93
96
  // if (!allowedFilters && !allowedFiltersArr.length && group != "category_uid" || allowedFilters && allowedFiltersArr.length && allowedFiltersArr.includes(group)) {
94
97
 
95
98
 
@@ -106,7 +109,7 @@ const FilterSidebar = props => {
106
109
  initialOpen={iteration < filterCountToOpen}
107
110
  />
108
111
  );
109
- // }
112
+ }
110
113
  }),
111
114
  [
112
115
  filterApi,
@@ -14,6 +14,7 @@ import GalleryItemShimmer from './item.shimmer';
14
14
  import defaultClasses from './item.module.css';
15
15
  import WishlistGalleryButton from '@magento/venia-ui/lib/components/Wishlist/AddToListButton';
16
16
 
17
+ import ProductLabel from '@riosst100/pwa-marketplace/src/components/ProductLabel';
17
18
  import AddToCartButton from './addToCartButton';
18
19
  // eslint-disable-next-line no-unused-vars
19
20
  import Rating from '@magento/venia-ui/lib/components/Rating';
@@ -21,6 +22,7 @@ import cn from 'classnames';
21
22
  import { Verify } from 'iconsax-react';
22
23
  import Star from './star';
23
24
 
25
+
24
26
  // The placeholder image is 4:5, so we should make sure to size our product
25
27
  // images appropriately.
26
28
  const IMAGE_WIDTH = 300;
@@ -96,7 +98,8 @@ const GalleryItem = props => {
96
98
  className={rootClassName}
97
99
  >
98
100
  <div data-cy="GalleryItem-root" className={cn(classes.root, 'border border-gray-100 rounded-lg hover_shadow-type-1 ')} ref={itemRef}>
99
- <div className={cn('item-product')}>
101
+ <div className={cn('item-product relative z-[1]')}>
102
+ <ProductLabel item={item} />
100
103
  <Link
101
104
  aria-label={name}
102
105
  onClick={handleLinkClick}
@@ -1,10 +1,22 @@
1
- import React from 'react';
1
+ import React, { useMemo } from 'react';
2
2
  import cn from 'classnames';
3
3
  import Divider from '@riosst100/pwa-marketplace/src/components/Divider';
4
4
 
5
5
  const preOrderInfo = (props) => {
6
- const { className } = props
7
- return (
6
+ const { className, productDetails } = props
7
+
8
+ const preorderData = productDetails ? productDetails.preorder : null;
9
+
10
+ console.log(preorderData)
11
+ const isPreOrder = preorderData && preorderData.is_preorder ? true : false;
12
+ const preOrderNotes = preorderData ? preorderData.preorder_notes : null;
13
+ const preOrderAvailableDate = preorderData ? new Date(preorderData.preorder_availability) : null;
14
+
15
+ // console.log(preOrderNotes)
16
+ // console.log(productDetails)
17
+ const month = ["January","February","March","April","May","June","July","August","September","October","November","December"];
18
+
19
+ return isPreOrder ? (
8
20
  <>
9
21
  <div
10
22
  className={cn(
@@ -12,13 +24,14 @@ const preOrderInfo = (props) => {
12
24
  className
13
25
  )}
14
26
  >
15
- <div className='flex flex-row justify-between'>
27
+ <div className='flex flex-row justify-between gap-[20px]'>
16
28
  <div className='flex flex-col gap-2.5'>
17
29
  <div className='text-[14px] font-medium text-gray-500'>
18
30
  Release Date
19
31
  </div>
20
32
  <div className='text-[16px] font-semibold text-colorDefault text-center'>
21
- 27, February 2024
33
+ {preOrderAvailableDate ? preOrderAvailableDate.getDate() + ', ' + month[preOrderAvailableDate.getMonth()] + ' ' + preOrderAvailableDate.getFullYear() : 'No Release Date.'}
34
+ {/* 27, February 2024 */}
22
35
  </div>
23
36
  </div>
24
37
  <Divider className="w-[1px] h-[50px]" />
@@ -40,13 +53,12 @@ const preOrderInfo = (props) => {
40
53
  </div>
41
54
  </div>
42
55
  </div>
43
-
44
- <p>
45
- Notes : Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh viverra non semper suscipit posuere a pede.
46
- </p>
56
+ {preOrderNotes && <p>
57
+ Notes : {preOrderNotes}
58
+ </p>}
47
59
  </div>
48
60
  </>
49
- )
61
+ ) : ''
50
62
  }
51
63
 
52
64
  export default preOrderInfo
@@ -34,6 +34,7 @@ import PreorderDetail from './components/preOrderDetail';
34
34
  import AuctionDetail from './components/auctionDetail';
35
35
  import CrossSeller from '@riosst100/pwa-marketplace/src/components/CrossSeller';
36
36
  import RelatedProduct from '@riosst100/pwa-marketplace/src/components/RelatedProduct';
37
+ import ProductLabel from '@riosst100/pwa-marketplace/src/components/ProductLabel';
37
38
 
38
39
  // Correlate a GQL error message to a field. GQL could return a longer error
39
40
  // string but it may contain contextual info such as product id. We can use
@@ -200,29 +201,6 @@ const ProductFullDetail = props => {
200
201
  // Error message for screen reader
201
202
  const cartActionContent = isSupportedProductType ? (
202
203
  <section className={cn(classes.actButton, 'flex gap-x-[30px]')}>
203
-
204
- <Button
205
- data-cy="ProductFullDetail-addToCartButton"
206
- disabled={isAddToCartDisabled}
207
- aria-disabled={isAddToCartDisabled}
208
- aria-label={
209
- isEverythingOutOfStock
210
- ? formatMessage({
211
- id: 'productFullDetail.outOfStockProduct',
212
- defaultMessage:
213
- 'This item is currently out of stock'
214
- })
215
- : ''
216
- }
217
- classes={{
218
- content: 'normal-case font-semibold text-[16px]'
219
- }}
220
- priority="low"
221
- type="submit"
222
- >
223
- Buy Now
224
- </Button>
225
-
226
204
  <Button
227
205
  data-cy="ProductFullDetail-addToCartButton"
228
206
  disabled={isAddToCartDisabled}
@@ -445,7 +423,8 @@ const ProductFullDetail = props => {
445
423
  data-cy="ProductFullDetail-root"
446
424
  onSubmit={handleAddToCart}
447
425
  >
448
- <section className={classes.leftContainer}>
426
+ <section className={cn(classes.leftContainer, 'relative')}>
427
+ <ProductLabel item={productDetails} />
449
428
  <Carousel images={mediaGalleryEntries} />
450
429
  <div className='product_group-actions flex gap-x-[18px] gap-y-4 justify-center items-center mt-5'>
451
430
  <Suspense fallback={null}>
@@ -529,8 +508,8 @@ const ProductFullDetail = props => {
529
508
  value={productDetails.price.value}
530
509
  />
531
510
  </p>
532
- <AuctionDetail className="auction_detail-container" />
533
- <PreorderDetail className={'preorder_detail-container'} />
511
+ {/* <AuctionDetail className="auction_detail-container" /> */}
512
+ <PreorderDetail productDetails={productDetails} className={'preorder_detail-container'} />
534
513
  <small className='shipping-calculation-notes text-gray-200 text-xs'>
535
514
  Shipping method is calculated on checkout
536
515
  </small>