فهرست منبع

feat(core): Implement inheritance for ProductVariant.trackInventory

The value can now be set to inherit from the GlobalSettings.trackInventory value.

BREAKING CHANGE: The `ProductVariant.trackInventory` field is now an Enum rather than a boolean, allowing explicit inheritance of the value set in GlobalSettings. This will require a DB migration with a custom query to transform the previous boolean values to the new enum (string) values of "TRUE", "FALSE" or "INHERIT". Check the release blog post for more details.
Michael Bromley 5 سال پیش
والد
کامیت
f27f985db4

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 400 - 529
packages/asset-server-plugin/e2e/graphql/generated-e2e-asset-server-plugin-types.ts


+ 6 - 0
packages/common/src/generated-shop-types.ts

@@ -291,6 +291,12 @@ export type MutationResetPasswordArgs = {
     password: Scalars['String'];
 };
 
+export enum GlobalFlag {
+    TRUE = 'TRUE',
+    FALSE = 'FALSE',
+    INHERIT = 'INHERIT',
+}
+
 export enum AdjustmentType {
     TAX = 'TAX',
     PROMOTION = 'PROMOTION',

+ 10 - 4
packages/common/src/generated-types.ts

@@ -1605,7 +1605,7 @@ export type ProductVariant = Node & {
   __typename?: 'ProductVariant';
   enabled: Scalars['Boolean'];
   stockOnHand: Scalars['Int'];
-  trackInventory: Scalars['Boolean'];
+  trackInventory: GlobalFlag;
   stockMovements: StockMovementList;
   id: Scalars['ID'];
   product: Product;
@@ -1691,7 +1691,7 @@ export type CreateProductVariantInput = {
   featuredAssetId?: Maybe<Scalars['ID']>;
   assetIds?: Maybe<Array<Scalars['ID']>>;
   stockOnHand?: Maybe<Scalars['Int']>;
-  trackInventory?: Maybe<Scalars['Boolean']>;
+  trackInventory?: Maybe<GlobalFlag>;
   customFields?: Maybe<Scalars['JSON']>;
 };
 
@@ -1706,7 +1706,7 @@ export type UpdateProductVariantInput = {
   featuredAssetId?: Maybe<Scalars['ID']>;
   assetIds?: Maybe<Array<Scalars['ID']>>;
   stockOnHand?: Maybe<Scalars['Int']>;
-  trackInventory?: Maybe<Scalars['Boolean']>;
+  trackInventory?: Maybe<GlobalFlag>;
   customFields?: Maybe<Scalars['JSON']>;
 };
 
@@ -1869,6 +1869,12 @@ export type UpdateZoneInput = {
 
 
 
+export enum GlobalFlag {
+  TRUE = 'TRUE',
+  FALSE = 'FALSE',
+  INHERIT = 'INHERIT'
+}
+
 export enum AdjustmentType {
   TAX = 'TAX',
   PROMOTION = 'PROMOTION',
@@ -4013,7 +4019,7 @@ export type TaxRateSortParameter = {
 export type ProductVariantFilterParameter = {
   enabled?: Maybe<BooleanOperators>;
   stockOnHand?: Maybe<NumberOperators>;
-  trackInventory?: Maybe<BooleanOperators>;
+  trackInventory?: Maybe<StringOperators>;
   createdAt?: Maybe<DateOperators>;
   updatedAt?: Maybe<DateOperators>;
   languageCode?: Maybe<StringOperators>;

+ 1 - 0
packages/core/e2e/fixtures/e2e-products-stock-control.csv

@@ -5,3 +5,4 @@ Laptop        , laptop        , "Now equipped with seventh-generation Intel Core
               ,               ,                                                                                                                                                                                                                                                                                                    ,                                    ,                                         ,                   , "15 inch|16GB" , L2201516 , 2299.00 , standard    ,             , false          ,               ,
 Curvy Monitor , curvy-monitor , "Discover a truly immersive viewing experience with this monitor curved more deeply than any other. Wrapping around your field of vision the 1,800 R screencreates a wider field of view, enhances depth perception, and minimises peripheral distractions to draw you deeper in to your content." , alexandru-acea-686569-unsplash.jpg , category:electronics|category:computers , monitor size      , 24 inch        , C24F390  , 143.74  , standard    ,             , false          ,               ,
               ,               ,                                                                                                                                                                                                                                                                                                    ,                                    ,                                         ,                   , 27 inch        , C27F390  , 169.94  , standard    ,             , false          ,               ,
+              ,               ,                                                                                                                                                                                                                                                                                                    ,                                    ,                                         ,                   , 32 inch        , C32F390  , 199.94  , standard    ,             , false          ,               ,

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 400 - 529
packages/core/e2e/graphql/generated-e2e-admin-types.ts


+ 6 - 0
packages/core/e2e/graphql/generated-e2e-shop-types.ts

@@ -289,6 +289,12 @@ export type MutationResetPasswordArgs = {
     password: Scalars['String'];
 };
 
+export enum GlobalFlag {
+    TRUE = 'TRUE',
+    FALSE = 'FALSE',
+    INHERIT = 'INHERIT',
+}
+
 export enum AdjustmentType {
     TAX = 'TAX',
     PROMOTION = 'PROMOTION',

+ 21 - 6
packages/core/e2e/stock-control.e2e-spec.ts

@@ -5,13 +5,14 @@ import gql from 'graphql-tag';
 import path from 'path';
 
 import { initialData } from '../../../e2e-common/e2e-initial-data';
-import { TEST_SETUP_TIMEOUT_MS, testConfig } from '../../../e2e-common/test-config';
+import { testConfig, TEST_SETUP_TIMEOUT_MS } from '../../../e2e-common/test-config';
 
 import { testSuccessfulPaymentMethod } from './fixtures/test-payment-methods';
 import { VARIANT_WITH_STOCK_FRAGMENT } from './graphql/fragments';
 import {
     CreateAddressInput,
     GetStockMovement,
+    GlobalFlag,
     StockMovementType,
     UpdateProductVariantInput,
     UpdateStock,
@@ -150,19 +151,24 @@ describe('Stock control', () => {
                 GET_STOCK_MOVEMENT,
                 { id: 'T_2' },
             );
-            const [variant1, variant2] = product!.variants;
+            const [variant1, variant2, variant3] = product!.variants;
 
             await adminClient.query<UpdateStock.Mutation, UpdateStock.Variables>(UPDATE_STOCK_ON_HAND, {
                 input: [
                     {
                         id: variant1.id,
                         stockOnHand: 5,
-                        trackInventory: false,
+                        trackInventory: GlobalFlag.FALSE,
                     },
                     {
                         id: variant2.id,
                         stockOnHand: 5,
-                        trackInventory: true,
+                        trackInventory: GlobalFlag.TRUE,
+                    },
+                    {
+                        id: variant3.id,
+                        stockOnHand: 5,
+                        trackInventory: GlobalFlag.INHERIT,
                     },
                 ] as UpdateProductVariantInput[],
             });
@@ -177,6 +183,10 @@ describe('Stock control', () => {
                 productVariantId: variant2.id,
                 quantity: 3,
             });
+            await shopClient.query<AddItemToOrder.Mutation, AddItemToOrder.Variables>(ADD_ITEM_TO_ORDER, {
+                productVariantId: variant3.id,
+                quantity: 4,
+            });
             await shopClient.query<SetShippingAddress.Mutation, SetShippingAddress.Variables>(
                 SET_SHIPPING_ADDRESS,
                 {
@@ -208,7 +218,7 @@ describe('Stock control', () => {
                 GET_STOCK_MOVEMENT,
                 { id: 'T_2' },
             );
-            const [variant1, variant2] = product!.variants;
+            const [variant1, variant2, variant3] = product!.variants;
 
             expect(variant1.stockMovements.totalItems).toBe(2);
             expect(variant1.stockMovements.items[1].type).toBe(StockMovementType.SALE);
@@ -217,6 +227,10 @@ describe('Stock control', () => {
             expect(variant2.stockMovements.totalItems).toBe(2);
             expect(variant2.stockMovements.items[1].type).toBe(StockMovementType.SALE);
             expect(variant2.stockMovements.items[1].quantity).toBe(-3);
+
+            expect(variant3.stockMovements.totalItems).toBe(2);
+            expect(variant3.stockMovements.items[1].type).toBe(StockMovementType.SALE);
+            expect(variant3.stockMovements.items[1].quantity).toBe(-4);
         });
 
         it('stockOnHand is updated according to trackInventory setting', async () => {
@@ -224,10 +238,11 @@ describe('Stock control', () => {
                 GET_STOCK_MOVEMENT,
                 { id: 'T_2' },
             );
-            const [variant1, variant2] = product!.variants;
+            const [variant1, variant2, variant3] = product!.variants;
 
             expect(variant1.stockOnHand).toBe(5); // untracked inventory
             expect(variant2.stockOnHand).toBe(2); // tracked inventory
+            expect(variant3.stockOnHand).toBe(5); // inherited untracked inventory
         });
     });
 });

+ 89 - 89
packages/core/mock-data/data-sources/products.csv

@@ -1,89 +1,89 @@
-name                       , slug                    , description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   , assets                                           , facets                                                                            , optionGroups      , optionValues        , sku            , price   , taxCategory , stockOnHand , trackInventory , variantAssets , variantFacets
-Laptop                     , laptop                  , "Now equipped with seventh-generation Intel Core processors, Laptop is snappier than ever. From daily tasks like launching apps and opening files to more advanced computing, you can power through your day thanks to faster SSDs and Turbo Boost processing up to 3.6GHz."                                                                                                                                                                                                                  , derick-david-409858-unsplash.jpg                 , category:Electronics|category:Computers|brand:Apple                               , "screen size|RAM" , "13 inch|8GB"       , L2201308       , 1299.00 , standard    , 100         , true           ,               ,
-                           ,                         ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ,                                                  ,                                                                                   ,                   , "15 inch|8GB"       , L2201508       , 1399.00 , standard    , 100         , true           ,               ,
-                           ,                         ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ,                                                  ,                                                                                   ,                   , "13 inch|16GB"      , L2201316       , 2199.00 , standard    , 100         , true           ,               ,
-                           ,                         ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ,                                                  ,                                                                                   ,                   , "15 inch|16GB"      , L2201516       , 2299.00 , standard    , 100         , true           ,               ,
-Tablet                     , tablet                  , "If the computer were invented today, what would it look like? It would be powerful enough for any task. So mobile you could take it everywhere. And so intuitive you could use it any way you wanted — with touch, a keyboard, or even a pencil. In other words, it wouldn’t really be a ""computer."" It would be Tablet."                                                                                                                                                                  , kelly-sikkema-685291-unsplash.jpg                , category:Electronics|category:Computers|brand:Apple                               , storage           , 32GB                , TBL200032      , 329.00  , standard    , 100         , true           ,               ,
-                           ,                         ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ,                                                  ,                                                                                   ,                   , 128GB               , TBL200128      , 445.00  , standard    , 100         , true           ,               ,
-Wireless Optical Mouse     , cordless-mouse          , "The Logitech M185 Wireless Optical Mouse is a great device for any computer user, and as Logitech are the global market leaders for these devices, you are also guaranteed absolute reliability. A mouse to be reckoned with!"                                                                                                                                                                                                                                                               , oscar-ivan-esquivel-arteaga-687447-unsplash.jpg  , category:Electronics|category:Computers|brand:Logitech                            ,                   ,                     , 834444         , 18.99   , standard    , 100         , true           ,               ,
-32-Inch Monitor            , 32-inch-monitor         , "The UJ59 with Ultra HD resolution has 4x the pixels of Full HD, delivering more screen space and amazingly life-like images. That means you can view documents and webpages with less scrolling, work more comfortably with multiple windows and toolbars, and enjoy photos, videos and games in stunning 4K quality. Note: beverage not included."                                                                                                                                          , daniel-korpai-1302051-unsplash.jpg               , category:Electronics|category:Computers|brand:Samsung                             ,                   ,                     , LU32J590UQUXEN , 310.00  , standard    , 100         , true           ,               ,
-Curvy Monitor              , curvy-monitor           , "Discover a truly immersive viewing experience with this monitor curved more deeply than any other. Wrapping around your field of vision the 1,800 R screencreates a wider field of view, enhances depth perception, and minimises peripheral distractions to draw you deeper in to your content."                                                                                                                                                                                            , alexandru-acea-686569-unsplash.jpg               , category:Electronics|category:Computers|brand:Samsung                             , monitor size      , 24 inch             , C24F390        , 143.74  , standard    , 100         , true           ,               ,
-                           ,                         ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ,                                                  ,                                                                                   ,                   , 27 inch             , C27F390        , 169.94  , standard    , 100         , true           ,               ,
-High Performance RAM       , high-performance-ram    , "Each RAM module is built with a pure aluminium heat spreader for faster heat dissipation and cooler operation. Enhanced to XMP 2.0 profiles for better overclocking; Compatibility: Intel 100 Series, Intel 200 Series, Intel 300 Series, Intel X299, AMD 300 Series, AMD 400 Series."                                                                                                                                                                                                       , liam-briese-1128307-unsplash.jpg                 , category:Electronics|category:Computers|brand:Corsair                             , size              , 4GB                 , CMK32GX4M2AC04 , 137.85  , standard    , 100         , true           ,               ,
-                           ,                         ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ,                                                  ,                                                                                   ,                   , 8GB                 , CMK32GX4M2AC08 , 146.39  , standard    , 100         , true           ,               ,
-                           ,                         ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ,                                                  ,                                                                                   ,                   , 16GB                , CMK32GX4M2AC16 , 281.81  , standard    , 100         , true           ,               ,
-Gaming PC                  , gaming-pc               , "This pc is optimised for gaming, and is also VR ready. The Intel Core-i7 CPU and High Performance GPU give the computer the raw power it needs to function at a high level."                                                                                                                                                                                                                                                                                                                 , florian-olivo-1166419-unsplash.jpg               , category:Electronics|category:Computers|brand:ADMI                                , "cpu|HDD"         , "i7-8700|240GB SSD" , CGS480VR1063   , 1087.20 , standard    , 100         , true           ,               ,
-                           ,                         ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ,                                                  ,                                                                                   ,                   , "R7-2700|240GB SSD" , CGS480VR1064   , 1099.95 , standard    , 100         , true           ,               ,
-                           ,                         ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ,                                                  ,                                                                                   ,                   , "i7-8700|120GB SSD" , CGS480VR1065   , 931.20  , standard    , 100         , true           ,               ,
-                           ,                         ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ,                                                  ,                                                                                   ,                   , "R7-2700|120GB SSD" , CGS480VR1066   , 949.20  , standard    , 100         , true           ,               ,
-Hard Drive                 , hard-drive              , "Boost your PC storage with this internal hard drive, designed just for desktop and all-in-one PCs."                                                                                                                                                                                                                                                                                                                                                                                          , vincent-botta-736919-unsplash.jpg                , category:Electronics|category:Computers|brand:Seagate                             , "HDD"             , 1TB                 , IHD455T1       , 37.99   , standard    , 100         , true           ,               ,
-                           ,                         ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ,                                                  ,                                                                                   ,                   , 2TB                 , IHD455T2       , 53.74   , standard    , 100         , true           ,               ,
-                           ,                         ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ,                                                  ,                                                                                   ,                   , 3TB                 , IHD455T3       , 78.96   , standard    , 100         , true           ,               ,
-                           ,                         ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ,                                                  ,                                                                                   ,                   , 4TB                 , IHD455T4       , 92.99   , standard    , 100         , true           ,               ,
-                           ,                         ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ,                                                  ,                                                                                   ,                   , 6TB                 , IHD455T6       , 134.35  , standard    , 100         , true           ,               ,
-Clacky Keyboard            , clacky-keyboard         , "Let all your colleagues know that you are typing on this exclusive, colorful klicky-klacky keyboard. Huge travel on each keypress ensures maximum klack on each and every keystroke."                                                                                                                                                                                                                                                                                                        , juan-gomez-674574-unsplash.jpg                   , category:Electronics|category:Computers|brand:Corsair                             ,                   ,                     , A4TKLA45535    , 74.89   , standard    , 100         , true           ,               ,
-Ethernet Cable             , ethernet-cable          , "5m (metres) Cat.6 network cable (upwards/downwards compatible) | Patch cable | 2 RJ-45 plug | plug with bend protection mantle. High transmission speeds due to operating frequency with up to 250 MHz (in comparison to Cat.5/Cat.5e cable bandwidth of 100 MHz)."                                                                                                                                                                                                                          , thomas-q-1229169-unsplash.jpg                    , category:Electronics|category:Computers                                           ,                   ,                     , A23334x30      , 5.97    , standard    , 100         , true           ,               ,
-USB Cable                  , usb-cable               , "Solid conductors eliminate strand-interaction distortion and reduce jitter. As the surface is made of high-purity silver, the performance is very close to that of a solid silver cable, but priced much closer to solid copper cable."                                                                                                                                                                                                                                                      , adam-birkett-239153-unsplash.jpg                 , category:Electronics|category:Computers                                           ,                   ,                     , USBCIN01.5MI   , 69.00   , standard    , 100         , true           ,               ,
-Instant Camera             , instant-camera          , "With its nostalgic design and simple point-and-shoot functionality, the Instant Camera is the perfect pick to get started with instant photography."                                                                                                                                                                                                                                                                                                                                         , eniko-kis-663725-unsplash.jpg                    , category:Electronics|category:Photo|brand:Polaroid                                ,                   ,                     , IC22MWDD       , 174.99  , standard    , 100         , true           ,               ,
-Camera Lens                , camera-lens             , "This lens is a Di type lens using an optical system with improved multi-coating designed to function with digital SLR cameras as well as film cameras."                                                                                                                                                                                                                                                                                                                                      , brandi-redd-104140-unsplash.jpg                  , category:Electronics|category:Photo|brand:Nikkon                                  ,                   ,                     , B0012UUP02     , 104.00  , standard    , 100         , true           ,               ,
-Vintage Folding Camera     , vintage-folding-camera  , "This vintage folding camera is so antiquated that you cannot possibly hope to produce actual photographs with it. However, it makes a wonderful decorative piece for the home or office."                                                                                                                                                                                                                                                                                                    , jonathan-talbert-697262-unsplash.jpg             , category:Electronics|category:Photo|brand:Agfa                                    ,                   ,                     , B00AFC9099     , 5350.00 , standard    , 100         , true           ,               ,
-Tripod                     , tripod                  , "Capture vivid, professional-style photographs with help from this lightweight tripod. The adjustable-height tripod makes it easy to achieve reliable stability and score just the right angle when going after that award-winning shot."                                                                                                                                                                                                                                                     , zoltan-tasi-423051-unsplash.jpg                  , category:Electronics|category:Photo|brand:Manfrotto                               ,                   ,                     , B00XI87KV8     , 14.98   , standard    , 100         , true           ,               ,
-Instamatic Camera          , instamatic-camera       , "This inexpensive point-and-shoot camera uses easy-to-load 126 film cartridges. A built-in flash unit ensure great results, no matter the lighting conditions."                                                                                                                                                                                                                                                                                                                               , jakob-owens-274337-unsplash.jpg                  , category:Electronics|category:Photo|brand:Kodak                                   ,                   ,                     , B07K1330LL     , 20.00   , standard    , 100         , true           ,               ,
-Compact Digital Camera     , compact-digital-camera  , "Unleash your creative potential with high-level performance and advanced features such as AI-powered Real-time Eye AF; new, high-precision Real-time Tracking; high-speed continuous shooting and 4K HDR movie-shooting. The camera's innovative AF quickly and reliably detects the position of the subject and then tracks the subject's motion, keeping it in sharp focus."                                                                                                               , patrick-brinksma-663044-unsplash.jpg             , category:Electronics|category:Photo|brand:Sony                                    ,                   ,                     , B07D990021     , 899.99  , standard    , 100         , true           ,               ,
-Nikkormat SLR Camera       , nikkormat-slr-camera    , "The Nikkormat FS was brought to market by Nikon in 1965. The lens is a 50mm f1.4 Nikkor. Nice glass, smooth focus and a working diaphragm. A UV filter and a Nikon front lens cap are included with the lens."                                                                                                                                                                                                                                                                               , chuttersnap-324234-unsplash.jpg                  , category:Electronics|category:Photo|brand:Nikkon                                  ,                   ,                     , B07D33B334     , 615.00  , standard    , 100         , true           ,               ,
-Compact SLR Camera         , compact-slr-camera      , "Retro styled, portable in size and built around a powerful 24-megapixel APS-C CMOS sensor, this digital camera is the ideal companion for creative everyday photography. Packed full of high spec features such as an advanced hybrid autofocus system able to keep pace with even the most active subjects, a speedy 6fps continuous-shooting mode, high-resolution electronic viewfinder and intuitive swivelling touchscreen, it brings professional image making into everyone’s grasp." , robert-shunev-528016-unsplash.jpg                , category:Electronics|category:Photo                                               ,                   ,                     , B07D75V44S     , 521.00  , standard    , 100         , true           ,               ,
-Twin Lens Camera           , twin-lens-camera        , "What makes a Rolleiflex TLR so special? Many things. To start, TLR stands for twin lens reflex. “Twin” because there are two lenses. And reflex means that the photographer looks through the lens to view the reflected image of an object or scene on the focusing screen. "                                                                                                                                                                                                               , alexander-andrews-260988-unsplash.jpg            , category:Electronics|category:Photo|brand:Rolleiflex                              ,                   ,                     , B07D78JTLR     , 799.00  , standard    , 100         , true           ,               ,
-Road Bike                  , road-bike               , "Featuring a full carbon chassis - complete with cyclocross-specific carbon fork - and a component setup geared for hard use on the race circuit, it's got the low weight, exceptional efficiency and brilliant handling you'll need to stay at the front of the pack."                                                                                                                                                                                                                       , mikkel-bech-748940-unsplash.jpg                  , category:Sports & Outdoor|category:Equipment|brand:Pinarello                     ,                   ,                     , RB000844334    , 2499.00 , standard    , 100         , true           ,               ,
-Skipping Rope              , skipping-rope           , "When you're working out you need a quality rope that doesn't tangle at every couple of jumps and with this skipping rope you won't have this problem. The fact that it looks like a pair of tasty frankfurters is merely a bonus."                                                                                                                                                                                                                                                                                                                                        , stoica-ionela-530966-unsplash.jpg                , category:Sports & Outdoor|category:Equipment|brand:Everlast                      ,                   ,                     , B07CNGXVXT     , 7.99    , standard    , 100         , true           ,               ,
-Boxing Gloves              , boxing-gloves           , "Training gloves designed for optimum training. Our gloves promote proper punching technique because they are conformed to the natural shape of your fist. Dense, innovative two-layer foam provides better shock absorbency and full padding on the front, back and wrist to promote proper punching technique."                                                                                                                                                                             , neonbrand-428982-unsplash.jpg                    , category:Sports & Outdoor|category:Equipment|brand:Everlast                      ,                   ,                     , B000ZYLPPU     , 33.04   , standard    , 100         , true           ,               ,
-Tent                       , tent                    , "With tons of space inside (for max. 4 persons), full head height throughout the entire tent and an unusual and striking shape, this tent offers you everything you need."                                                                                                                                                                                                                                                                                                                    , michael-guite-571169-unsplash.jpg                , category:Sports & Outdoor|category:Equipment                                     ,                   ,                     , 2000023510     , 214.93  , standard    , 100         , true           ,               ,
-Cruiser Skateboard         , cruiser-skateboard      , "Based on the 1970s iconic shape, but made to a larger 69cm size, with updated, quality component, these skateboards are great for beginners to learn the foot spacing required, and are perfect for all-day cruising."                                                                                                                                                                                                                                                                       , max-tarkhov-737999-unsplash.jpg                  , category:Sports & Outdoor|category:Equipment                                     ,                   ,                     , 799872520      , 24.99   , standard    , 100         , true           ,               ,
-Football                   , football                , "This football features high-contrast graphics for high-visibility during play, while its machine-stitched tpu casing offers consistent performance."                                                                                                                                                                                                                                                                                                                                         , nik-shuliahin-619349-unsplash.jpg                , category:Sports & Outdoor|category:Equipment|brand:Nike                          ,                   ,                     , SC3137-056     , 57.07   , standard    , 100         , true           ,               ,
-Tennis Ball                , tennis-ball             , "Our dog loves these tennis balls and they last for some time before they eventually either get lost in some field or bush or the covering comes off due to it being used most of the day every day."                                                                                                                                                                                                                                                                                         , ben-hershey-574483-unsplash.jpg                  , category:Sports & Outdoor|category:Equipment|brand:Wilson                        ,                   ,                     , WRT11752P      , 12.73   , standard    , 100         , true           ,               ,
-Basketball                 , basketball              , "The Wilson MVP ball is perfect for playing basketball, and improving your skill for hours on end. Designed for new players, it is created with a high-quality rubber suitable for courts, allowing you to get full use during your practices."                                                                                                                                                                                                                                               , tommy-bebo-600358-unsplash.jpg                   , category:Sports & Outdoor|category:Equipment|brand:Wilson                        ,                   ,                     , WTB1418XB06    , 35.62   , standard    , 100         , true           ,               ,
-Ultraboost Running Shoe    , ultraboost-running-shoe , "With its ultra-light, uber-responsive magic foam and a carbon fiber plate that feels like it’s propelling you forward, the Running Shoe is ready to push you to victories both large and small"                                                                                                                                                                                                                                                                                              , chuttersnap-584518-unsplash.jpg                  , category:Sports & Outdoor|category:Footwear|brand:Adidas|color:blue|color:pink   , size              , Size 40             , RS0040         , 99.99   , standard    , 100         , true           ,               ,
-                           ,                         ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ,                                                  ,                                                                                   ,                   , Size 42             , RS0042         , 99.99   , standard    , 100         , true           ,               ,
-                           ,                         ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ,                                                  ,                                                                                   ,                   , Size 44             , RS0044         , 99.99   , standard    , 100         , true           ,               ,
-                           ,                         ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ,                                                  ,                                                                                   ,                   , Size 46             , RS0046         , 99.99   , standard    , 100         , true           ,               ,
-Freerun Running Shoe       , freerun-running-shoe    , "The Freerun Men's Running Shoe is built for record-breaking speed. The Flyknit upper delivers ultra-lightweight support that fits like a glove."                                                                                                                                                                                                                                                                                                                                             , imani-clovis-234736-unsplash.jpg                 , category:Sports & Outdoor|category:Footwear|brand:Nike|color:black               , size              , Size 40             , AR4561-40      , 160.00  , standard    , 100         , true           ,               ,
-                           ,                         ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ,                                                  ,                                                                                   ,                   , Size 42             , AR4561-42      , 160.00  , standard    , 100         , true           ,               ,
-                           ,                         ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ,                                                  ,                                                                                   ,                   , Size 44             , AR4561-44      , 160.00  , standard    , 100         , true           ,               ,
-                           ,                         ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ,                                                  ,                                                                                   ,                   , Size 46             , AR4561-46      , 160.00  , standard    , 100         , true           ,               ,
-Hi-Top Basketball Shoe     , hi-top-basketball-shoe  , "Boasting legendary performance since 2008, the Hyperdunkz Basketball Shoe needs no gimmicks to stand out. Air units deliver best-in-class cushioning, while a dynamic lacing system keeps your foot snug and secure, so you can focus on your game and nothing else."                                                                                                                                                                                                                        , xavier-teo-469050-unsplash.jpg                   , category:Sports & Outdoor|category:Footwear|brand:Nike|color:white               , size              , Size 40             , AO7893-40      , 140.00  , standard    , 100         , true           ,               ,
-                           ,                         ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ,                                                  ,                                                                                   ,                   , Size 42             , AO7893-42      , 140.00  , standard    , 100         , true           ,               ,
-                           ,                         ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ,                                                  ,                                                                                   ,                   , Size 44             , AO7893-44      , 140.00  , standard    , 100         , true           ,               ,
-                           ,                         ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ,                                                  ,                                                                                   ,                   , Size 46             , AO7893-46      , 140.00  , standard    , 100         , true           ,               ,
-Pureboost Running Shoe     , pureboost-running-shoe  , "Built to handle curbs, corners and uneven sidewalks, these natural running shoes have an expanded landing zone and a heel plate for added stability. A lightweight and stretchy knit upper supports your native stride."                                                                                                                                                                                                                                                                     , thomas-serer-420833-unsplash.jpg                 , category:Sports & Outdoor|category:Footwear|brand:Adidas|color:white|color:black , size              , Size 40             , F3578640       , 99.95   , standard    , 100         , true           ,               ,
-                           ,                         ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ,                                                  ,                                                                                   ,                   , Size 42             , F3578642       , 99.95   , standard    , 100         , true           ,               ,
-                           ,                         ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ,                                                  ,                                                                                   ,                   , Size 44             , F3578644       , 99.95   , standard    , 100         , true           ,               ,
-                           ,                         ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ,                                                  ,                                                                                   ,                   , Size 46             , F3578646       , 99.95   , standard    , 100         , true           ,               ,
-RunX Running Shoe          , runx-running-shoe       , "These running shoes are made with an airy, lightweight mesh upper. The durable rubber outsole grips the pavement for added stability. A cushioned midsole brings comfort to each step."                                                                                                                                                                                                                                                                                                      , nikolai-chernichenko-1299748-unsplash.jpg        , category:Sports & Outdoor|category:Footwear|brand:Adidas|color:black             , size              , Size 40             , F3633340       , 44.95   , standard    , 100         , true           ,               ,
-                           ,                         ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ,                                                  ,                                                                                   ,                   , Size 42             , F3633342       , 44.95   , standard    , 100         , true           ,               ,
-                           ,                         ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ,                                                  ,                                                                                   ,                   , Size 44             , F3633344       , 44.95   , standard    , 100         , true           ,               ,
-                           ,                         ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ,                                                  ,                                                                                   ,                   , Size 46             , F3633346       , 44.95   , standard    , 100         , true           ,               ,
-Allstar Sneakers           , allstar-sneakers        , "All Star is the most iconic sneaker in the world, recognised for its unmistakable silhouette, star-centred ankle patch and cultural authenticity. And like the best paradigms, it only gets better with time."                                                                                                                                                                                                                                                                               , mitch-lensink-256007-unsplash.jpg                , category:Sports & Outdoor|category:Footwear|brand:Converse|color:black           , size              , Size 40             , CAS23340       , 65.00   , standard    , 100         , true           ,               ,
-                           ,                         ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ,                                                  ,                                                                                   ,                   , Size 42             , CAS23342       , 65.00   , standard    , 100         , true           ,               ,
-                           ,                         ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ,                                                  ,                                                                                   ,                   , Size 44             , CAS23344       , 65.00   , standard    , 100         , true           ,               ,
-                           ,                         ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ,                                                  ,                                                                                   ,                   , Size 46             , CAS23346       , 65.00   , standard    , 100         , true           ,               ,
-Spiky Cactus               , spiky-cactus            , "A spiky yet elegant house cactus - perfect for the home or office. Origin and habitat: Probably native only to the Andes of Peru"                                                                                                                                                                                                                                                                                                                                                            , charles-deluvio-695736-unsplash.jpg              , category:Home & Garden|category:Plants|plant type:Indoor                          ,                   ,                     , SC011001       , 15.50   , standard    , 100         , true           ,               ,
-Tulip Pot                  , tulip-pot               , "Bright crimson red species tulip with black centers, the poppy-like flowers will open up in full sun. Ideal for rock gardens, pots and border edging."                                                                                                                                                                                                                                                                                                                                       , natalia-y-345738-unsplash.jpg                    , category:Home & Garden|category:Plants|plant type:Outdoor|plant type:Indoor       ,                   ,                     , A58477         , 6.75    , standard    , 100         , true           ,               ,
-Hanging Plant              , hanging-plant           , "Can be found in tropical and sub-tropical America where it grows on the branches of trees, but also on telephone wires and electricity cables and poles that sometimes topple with the weight of these plants. This plant loves a moist and warm air."                                                                                                                                                                                                                                       , alex-rodriguez-santibanez-200278-unsplash.jpg    , category:Home & Garden|category:Plants|plant type:Outdoor                         ,                   ,                     , A44223         , 19.95   , standard    , 100         , true           ,               ,
-Aloe Vera                  , aloe-vera               , "Decorative Aloe vera makes a lovely house plant. A really trendy plant, Aloe vera is just so easy to care for. Aloe vera sap has been renowned for its remarkable medicinal and cosmetic properties for many centuries and has been used to treat grazes, insect bites and sunburn - it really works."                                                                                                                                                                                       , silvia-agrasar-227575-unsplash.jpg               , category:Home & Garden|category:Plants|plant type:Indoor                          ,                   ,                     , A44352         , 6.99    , standard    , 100         , true           ,               ,
-Fern Blechnum Gibbum       , fern-blechnum-gibbum    , "Create a tropical feel in your home with this lush green tree fern, it has decorative leaves and will develop a short slender trunk in time."                                                                                                                                                                                                                                                                                                                                                , caleb-george-536388-unsplash.jpg                 , category:Home & Garden|category:Plants|plant type:Outdoor                         ,                   ,                     , A04851         , 8.95    , standard    , 100         , true           ,               ,
-Assorted Indoor Succulents , assorted-succulents     , "These assorted succulents come in a variety of different shapes and colours - each with their own unique personality. Succulents grow best in plenty of light: a sunny windowsill would be the ideal spot for them to thrive!"                                                                                                                                                                                                                                                               , annie-spratt-78044-unsplash.jpg                  , category:Home & Garden|category:Plants|plant type:Indoor                          ,                   ,                     , A08593         , 32.50   , standard    , 100         , true           ,               ,
-Orchid                     , orchid                  , "Gloriously elegant. It can go along with any interior as it is a neutral color and the most popular Phalaenopsis overall. 2 to 3 foot stems host large white flowers that can last for over 2 months."                                                                                                                                                                                                                                                                                       , zoltan-kovacs-642412-unsplash.jpg                , category:Home & Garden|category:Plants                                            ,                   ,                     , ROR00221       , 65.00   , standard    , 100         , true           ,               ,
-Bonsai Tree                , bonsai-tree             , "Excellent semi-evergreen bonsai. Indoors or out but needs some winter protection. All trees sent will leave the nursery in excellent condition and will be of equal quality or better than the photograph shown."                                                                                                                                                                                                                                                                            , mark-tegethoff-667351-unsplash.jpg               , category:Home & Garden|category:Plants                                            ,                   ,                     , B01MXFLUSV     , 19.99   , standard    , 100         , true           ,               ,
-Guardian Lion Statue       , guardian-lion-statue    , "Placing it at home or office can bring you fortune and prosperity, guard your house and ward off ill fortune."                                                                                                                                                                                                                                                                                                                                                                               , vincent-liu-525429-unsplash.jpg                  , category:Home & Garden|category:Furniture|color:gray                              ,                   ,                     , GL34LLW11      , 188.53  , standard    , 100         , true           ,               ,
-Hand Trowel                , hand-trowel             , "Hand trowel for garden cultivating hammer finish epoxy-coated head for improved resistance to rust, scratches, humidity and alkalines in the soil."                                                                                                                                                                                                                                                                                                                                          , neslihan-gunaydin-3493-unsplash.jpg              , category:Home & Garden|category:Plants                                            ,                   ,                     , 4058NB/09      , 4.99    , standard    , 100         , true           ,               ,
-Balloon Chair              , balloon-chair           , "A charming vintage white wooden chair featuring an extremely spherical pink balloon. The balloon may be detached and used for other purposes, for example as a party decoration."                                                                                                                                                                                                                                                                                                            , florian-klauer-14840-unsplash.jpg                , category:Home & Garden|category:Furniture                                         ,                   ,                     , 34-BC82444     , 65.00   , standard    , 100         , true           ,               ,
-Grey Fabric Sofa           , grey-fabric-sofa        , "Seat cushions filled with high resilience foam and polyester fibre wadding give comfortable support for your body, and easily regain their shape when you get up. The cover is easy to keep clean as it is removable and can be machine washed."                                                                                                                                                                                                                                             , nathan-fertig-249917-unsplash.jpg                , category:Home & Garden|category:Furniture|color:gray                              ,                   ,                     , CH00001-12     , 295.00  , standard    , 100         , true           ,               ,
-Leather Sofa               , leather-sofa            , "This premium, tan-brown bonded leather seat is part of the 'chill' sofa range. The lever activated recline feature makes it easy to adjust to any position. This smart, bustle back design with rounded tight padded arms has been designed with your comfort in mind. This well-padded chair has foam pocket sprung seat cushions and fibre-filled back cushions."                                                                                                                          , paul-weaver-1120584-unsplash.jpg                 , category:Home & Garden|category:Furniture|color:brown                             ,                   ,                     , CH00001-02     , 1245.00 , standard    , 100         , true           ,               ,
-Light Shade                , light-shade             , "Modern tapered white polycotton pendant shade with a metallic silver chrome interior finish for maximum light reflection. Reversible gimble so it can be used as a ceiling shade or as a lamp shade."                                                                                                                                                                                                                                                                                        , pierre-chatel-innocenti-483198-unsplash.jpg      , category:Home & Garden|category:Furniture                                         ,                   ,                     , B45809LSW      , 28.45   , standard    , 100         , true           ,               ,
-Wooden Side Desk           , wooden-side-desk        , "Drawer stops prevent the drawers from being pulled out too far. Built-in cable management for collecting cables and cords; out of sight but close at hand."                                                                                                                                                                                                                                                                                                                                  , abel-y-costa-716024-unsplash.jpg                 , category:Home & Garden|category:Furniture|color:wood                              ,                   ,                     , 304.096.29     , 125.00  , standard    , 100         , true           ,               ,
-Comfy Padded Chair         , comfy-padded-chair      , "You sit comfortably thanks to the shaped back. The chair frame is made of solid wood, which is a durable natural material."                                                                                                                                                                                                                                                                                                                                                                  , kari-shea-398668-unsplash.jpg                    , category:Home & Garden|category:Furniture|color:gray                              ,                   ,                     , 404.068.14     , 130.00  , standard    , 100         , true           ,               ,
-Black Eaves Chair          , black-eaves-chair       , "Comfortable to sit on thanks to the bowl-shaped seat and rounded shape of the backrest. No tools are required to assemble the chair, you just click it together with a simple mechanism under the seat."                                                                                                                                                                                                                                                                                     , andres-jasso-220776-unsplash.jpg                 , category:Home & Garden|category:Furniture|color:black                             ,                   ,                     , 003.600.02     , 70.00   , standard    , 100         , true           ,               ,
-Wooden Stool               , wooden-stool            , "Solid wood is a hardwearing natural material, which can be sanded and surface treated as required."                                                                                                                                                                                                                                                                                                                                                                                          , ruslan-bardash-351288-unsplash.jpg               , category:Home & Garden|category:Furniture|color:wood                              ,                   ,                     , 202.493.30     , 14.00   , standard    , 100         , true           ,               ,
-Bedside Table              , bedside-table           , "Every table is unique, with varying grain pattern and natural colour shifts that are part of the charm of wood."                                                                                                                                                                                                                                                                                                                                                                             , benjamin-voros-310026-unsplash.jpg               , category:Home & Garden|category:Furniture|color:white                             ,                   ,                     , 404.290.14     , 130.00  , standard    , 100         , true           ,               ,
-Modern Cafe Chair          , modern-cafe-chair       , "You sit comfortably thanks to the restful flexibility of the seat. Lightweight and easy to move around, yet stable enough even for the liveliest, young family members."                                                                                                                                                                                                                                                                                                                     , jean-philippe-delberghe-1400011-unsplash.jpg     , category:Home & Garden|category:Furniture                                         , color             , mustard             , 404.038.96     , 100.00  , standard    , 100         , true           ,               , color:yellow
-                           ,                         ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ,                                                  ,                                                                                   ,                   , mint                , 404.038.96     , 100.00  , standard    , 100         , true           ,               , color:green
-                           ,                         ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ,                                                  ,                                                                                   ,                   , pearl               , 404.038.96     , 100.00  , standard    , 100         , true           ,               , color:white
+name                      ,slug                   ,description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ,assets                                         ,facets                                                                          ,optionGroups     ,optionValues       ,sku           ,price  ,taxCategory,stockOnHand,trackInventory,variantAssets,variantFacets
+Laptop                    ,laptop                 ,"Now equipped with seventh-generation Intel Core processors, Laptop is snappier than ever. From daily tasks like launching apps and opening files to more advanced computing, you can power through your day thanks to faster SSDs and Turbo Boost processing up to 3.6GHz."                                                                                                                                                                                                                 ,derick-david-409858-unsplash.jpg               ,category:Electronics|category:Computers|brand:Apple                             ,"screen size|RAM","13 inch|8GB"      ,L2201308      ,1299.00,standard   ,100        ,              ,             ,
+                          ,                       ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ,                                               ,                                                                                ,                 ,"15 inch|8GB"      ,L2201508      ,1399.00,standard   ,100        ,              ,             ,
+                          ,                       ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ,                                               ,                                                                                ,                 ,"13 inch|16GB"     ,L2201316      ,2199.00,standard   ,100        ,              ,             ,
+                          ,                       ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ,                                               ,                                                                                ,                 ,"15 inch|16GB"     ,L2201516      ,2299.00,standard   ,100        ,              ,             ,
+Tablet                    ,tablet                 ,"If the computer were invented today, what would it look like? It would be powerful enough for any task. So mobile you could take it everywhere. And so intuitive you could use it any way you wanted — with touch, a keyboard, or even a pencil. In other words, it wouldn’t really be a ""computer."" It would be Tablet."                                                                                                                                                                 ,kelly-sikkema-685291-unsplash.jpg              ,category:Electronics|category:Computers|brand:Apple                             ,storage          ,32GB               ,TBL200032     ,329.00 ,standard   ,100        ,              ,             ,
+                          ,                       ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ,                                               ,                                                                                ,                 ,128GB              ,TBL200128     ,445.00 ,standard   ,100        ,              ,             ,
+Wireless Optical Mouse    ,cordless-mouse         ,"The Logitech M185 Wireless Optical Mouse is a great device for any computer user, and as Logitech are the global market leaders for these devices, you are also guaranteed absolute reliability. A mouse to be reckoned with!"                                                                                                                                                                                                                                                              ,oscar-ivan-esquivel-arteaga-687447-unsplash.jpg,category:Electronics|category:Computers|brand:Logitech                          ,                 ,                   ,834444        ,18.99  ,standard   ,100        ,              ,             ,
+32-Inch Monitor           ,32-inch-monitor        ,"The UJ59 with Ultra HD resolution has 4x the pixels of Full HD, delivering more screen space and amazingly life-like images. That means you can view documents and webpages with less scrolling, work more comfortably with multiple windows and toolbars, and enjoy photos, videos and games in stunning 4K quality. Note: beverage not included."                                                                                                                                         ,daniel-korpai-1302051-unsplash.jpg             ,category:Electronics|category:Computers|brand:Samsung                           ,                 ,                   ,LU32J590UQUXEN,310.00 ,standard   ,100        ,              ,             ,
+Curvy Monitor             ,curvy-monitor          ,"Discover a truly immersive viewing experience with this monitor curved more deeply than any other. Wrapping around your field of vision the 1,800 R screencreates a wider field of view, enhances depth perception, and minimises peripheral distractions to draw you deeper in to your content."                                                                                                                                                                                           ,alexandru-acea-686569-unsplash.jpg             ,category:Electronics|category:Computers|brand:Samsung                           ,monitor size     ,24 inch            ,C24F390       ,143.74 ,standard   ,100        ,              ,             ,
+                          ,                       ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ,                                               ,                                                                                ,                 ,27 inch            ,C27F390       ,169.94 ,standard   ,100        ,              ,             ,
+High Performance RAM      ,high-performance-ram   ,"Each RAM module is built with a pure aluminium heat spreader for faster heat dissipation and cooler operation. Enhanced to XMP 2.0 profiles for better overclocking; Compatibility: Intel 100 Series, Intel 200 Series, Intel 300 Series, Intel X299, AMD 300 Series, AMD 400 Series."                                                                                                                                                                                                      ,liam-briese-1128307-unsplash.jpg               ,category:Electronics|category:Computers|brand:Corsair                           ,size             ,4GB                ,CMK32GX4M2AC04,137.85 ,standard   ,100        ,              ,             ,
+                          ,                       ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ,                                               ,                                                                                ,                 ,8GB                ,CMK32GX4M2AC08,146.39 ,standard   ,100        ,              ,             ,
+                          ,                       ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ,                                               ,                                                                                ,                 ,16GB               ,CMK32GX4M2AC16,281.81 ,standard   ,100        ,              ,             ,
+Gaming PC                 ,gaming-pc              ,"This pc is optimised for gaming, and is also VR ready. The Intel Core-i7 CPU and High Performance GPU give the computer the raw power it needs to function at a high level."                                                                                                                                                                                                                                                                                                                ,florian-olivo-1166419-unsplash.jpg             ,category:Electronics|category:Computers|brand:ADMI                              ,"cpu|HDD"        ,"i7-8700|240GB SSD",CGS480VR1063  ,1087.20,standard   ,100        ,              ,             ,
+                          ,                       ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ,                                               ,                                                                                ,                 ,"R7-2700|240GB SSD",CGS480VR1064  ,1099.95,standard   ,100        ,              ,             ,
+                          ,                       ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ,                                               ,                                                                                ,                 ,"i7-8700|120GB SSD",CGS480VR1065  ,931.20 ,standard   ,100        ,              ,             ,
+                          ,                       ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ,                                               ,                                                                                ,                 ,"R7-2700|120GB SSD",CGS480VR1066  ,949.20 ,standard   ,100        ,              ,             ,
+Hard Drive                ,hard-drive             ,"Boost your PC storage with this internal hard drive, designed just for desktop and all-in-one PCs."                                                                                                                                                                                                                                                                                                                                                                                         ,vincent-botta-736919-unsplash.jpg              ,category:Electronics|category:Computers|brand:Seagate                           ,"HDD"            ,1TB                ,IHD455T1      ,37.99  ,standard   ,100        ,              ,             ,
+                          ,                       ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ,                                               ,                                                                                ,                 ,2TB                ,IHD455T2      ,53.74  ,standard   ,100        ,              ,             ,
+                          ,                       ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ,                                               ,                                                                                ,                 ,3TB                ,IHD455T3      ,78.96  ,standard   ,100        ,              ,             ,
+                          ,                       ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ,                                               ,                                                                                ,                 ,4TB                ,IHD455T4      ,92.99  ,standard   ,100        ,              ,             ,
+                          ,                       ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ,                                               ,                                                                                ,                 ,6TB                ,IHD455T6      ,134.35 ,standard   ,100        ,              ,             ,
+Clacky Keyboard           ,clacky-keyboard        ,"Let all your colleagues know that you are typing on this exclusive, colorful klicky-klacky keyboard. Huge travel on each keypress ensures maximum klack on each and every keystroke."                                                                                                                                                                                                                                                                                                       ,juan-gomez-674574-unsplash.jpg                 ,category:Electronics|category:Computers|brand:Corsair                           ,                 ,                   ,A4TKLA45535   ,74.89  ,standard   ,100        ,              ,             ,
+Ethernet Cable            ,ethernet-cable         ,"5m (metres) Cat.6 network cable (upwards/downwards compatible) | Patch cable | 2 RJ-45 plug | plug with bend protection mantle. High transmission speeds due to operating frequency with up to 250 MHz (in comparison to Cat.5/Cat.5e cable bandwidth of 100 MHz)."                                                                                                                                                                                                                         ,thomas-q-1229169-unsplash.jpg                  ,category:Electronics|category:Computers                                         ,                 ,                   ,A23334x30     ,5.97   ,standard   ,100        ,              ,             ,
+USB Cable                 ,usb-cable              ,"Solid conductors eliminate strand-interaction distortion and reduce jitter. As the surface is made of high-purity silver, the performance is very close to that of a solid silver cable, but priced much closer to solid copper cable."                                                                                                                                                                                                                                                     ,adam-birkett-239153-unsplash.jpg               ,category:Electronics|category:Computers                                         ,                 ,                   ,USBCIN01.5MI  ,69.00  ,standard   ,100        ,              ,             ,
+Instant Camera            ,instant-camera         ,"With its nostalgic design and simple point-and-shoot functionality, the Instant Camera is the perfect pick to get started with instant photography."                                                                                                                                                                                                                                                                                                                                        ,eniko-kis-663725-unsplash.jpg                  ,category:Electronics|category:Photo|brand:Polaroid                              ,                 ,                   ,IC22MWDD      ,174.99 ,standard   ,100        ,              ,             ,
+Camera Lens               ,camera-lens            ,"This lens is a Di type lens using an optical system with improved multi-coating designed to function with digital SLR cameras as well as film cameras."                                                                                                                                                                                                                                                                                                                                     ,brandi-redd-104140-unsplash.jpg                ,category:Electronics|category:Photo|brand:Nikkon                                ,                 ,                   ,B0012UUP02    ,104.00 ,standard   ,100        ,              ,             ,
+Vintage Folding Camera    ,vintage-folding-camera ,"This vintage folding camera is so antiquated that you cannot possibly hope to produce actual photographs with it. However, it makes a wonderful decorative piece for the home or office."                                                                                                                                                                                                                                                                                                   ,jonathan-talbert-697262-unsplash.jpg           ,category:Electronics|category:Photo|brand:Agfa                                  ,                 ,                   ,B00AFC9099    ,5350.00,standard   ,100        ,              ,             ,
+Tripod                    ,tripod                 ,"Capture vivid, professional-style photographs with help from this lightweight tripod. The adjustable-height tripod makes it easy to achieve reliable stability and score just the right angle when going after that award-winning shot."                                                                                                                                                                                                                                                    ,zoltan-tasi-423051-unsplash.jpg                ,category:Electronics|category:Photo|brand:Manfrotto                             ,                 ,                   ,B00XI87KV8    ,14.98  ,standard   ,100        ,              ,             ,
+Instamatic Camera         ,instamatic-camera      ,"This inexpensive point-and-shoot camera uses easy-to-load 126 film cartridges. A built-in flash unit ensure great results, no matter the lighting conditions."                                                                                                                                                                                                                                                                                                                              ,jakob-owens-274337-unsplash.jpg                ,category:Electronics|category:Photo|brand:Kodak                                 ,                 ,                   ,B07K1330LL    ,20.00  ,standard   ,100        ,              ,             ,
+Compact Digital Camera    ,compact-digital-camera ,"Unleash your creative potential with high-level performance and advanced features such as AI-powered Real-time Eye AF; new, high-precision Real-time Tracking; high-speed continuous shooting and 4K HDR movie-shooting. The camera's innovative AF quickly and reliably detects the position of the subject and then tracks the subject's motion, keeping it in sharp focus."                                                                                                              ,patrick-brinksma-663044-unsplash.jpg           ,category:Electronics|category:Photo|brand:Sony                                  ,                 ,                   ,B07D990021    ,899.99 ,standard   ,100        ,              ,             ,
+Nikkormat SLR Camera      ,nikkormat-slr-camera   ,"The Nikkormat FS was brought to market by Nikon in 1965. The lens is a 50mm f1.4 Nikkor. Nice glass, smooth focus and a working diaphragm. A UV filter and a Nikon front lens cap are included with the lens."                                                                                                                                                                                                                                                                              ,chuttersnap-324234-unsplash.jpg                ,category:Electronics|category:Photo|brand:Nikkon                                ,                 ,                   ,B07D33B334    ,615.00 ,standard   ,100        ,              ,             ,
+Compact SLR Camera        ,compact-slr-camera     ,"Retro styled, portable in size and built around a powerful 24-megapixel APS-C CMOS sensor, this digital camera is the ideal companion for creative everyday photography. Packed full of high spec features such as an advanced hybrid autofocus system able to keep pace with even the most active subjects, a speedy 6fps continuous-shooting mode, high-resolution electronic viewfinder and intuitive swivelling touchscreen, it brings professional image making into everyone’s grasp.",robert-shunev-528016-unsplash.jpg              ,category:Electronics|category:Photo                                             ,                 ,                   ,B07D75V44S    ,521.00 ,standard   ,100        ,              ,             ,
+Twin Lens Camera          ,twin-lens-camera       ,"What makes a Rolleiflex TLR so special? Many things. To start, TLR stands for twin lens reflex. “Twin” because there are two lenses. And reflex means that the photographer looks through the lens to view the reflected image of an object or scene on the focusing screen. "                                                                                                                                                                                                              ,alexander-andrews-260988-unsplash.jpg          ,category:Electronics|category:Photo|brand:Rolleiflex                            ,                 ,                   ,B07D78JTLR    ,799.00 ,standard   ,100        ,              ,             ,
+Road Bike                 ,road-bike              ,"Featuring a full carbon chassis - complete with cyclocross-specific carbon fork - and a component setup geared for hard use on the race circuit, it's got the low weight, exceptional efficiency and brilliant handling you'll need to stay at the front of the pack."                                                                                                                                                                                                                      ,mikkel-bech-748940-unsplash.jpg                ,category:Sports & Outdoor|category:Equipment|brand:Pinarello                    ,                 ,                   ,RB000844334   ,2499.00,standard   ,100        ,              ,             ,
+Skipping Rope             ,skipping-rope          ,"When you're working out you need a quality rope that doesn't tangle at every couple of jumps and with this skipping rope you won't have this problem. The fact that it looks like a pair of tasty frankfurters is merely a bonus."                                                                                                                                                                                                                                                          ,stoica-ionela-530966-unsplash.jpg              ,category:Sports & Outdoor|category:Equipment|brand:Everlast                     ,                 ,                   ,B07CNGXVXT    ,7.99   ,standard   ,100        ,              ,             ,
+Boxing Gloves             ,boxing-gloves          ,"Training gloves designed for optimum training. Our gloves promote proper punching technique because they are conformed to the natural shape of your fist. Dense, innovative two-layer foam provides better shock absorbency and full padding on the front, back and wrist to promote proper punching technique."                                                                                                                                                                            ,neonbrand-428982-unsplash.jpg                  ,category:Sports & Outdoor|category:Equipment|brand:Everlast                     ,                 ,                   ,B000ZYLPPU    ,33.04  ,standard   ,100        ,              ,             ,
+Tent                      ,tent                   ,"With tons of space inside (for max. 4 persons), full head height throughout the entire tent and an unusual and striking shape, this tent offers you everything you need."                                                                                                                                                                                                                                                                                                                   ,michael-guite-571169-unsplash.jpg              ,category:Sports & Outdoor|category:Equipment                                    ,                 ,                   ,2000023510    ,214.93 ,standard   ,100        ,              ,             ,
+Cruiser Skateboard        ,cruiser-skateboard     ,"Based on the 1970s iconic shape, but made to a larger 69cm size, with updated, quality component, these skateboards are great for beginners to learn the foot spacing required, and are perfect for all-day cruising."                                                                                                                                                                                                                                                                      ,max-tarkhov-737999-unsplash.jpg                ,category:Sports & Outdoor|category:Equipment                                    ,                 ,                   ,799872520     ,24.99  ,standard   ,100        ,              ,             ,
+Football                  ,football               ,"This football features high-contrast graphics for high-visibility during play, while its machine-stitched tpu casing offers consistent performance."                                                                                                                                                                                                                                                                                                                                        ,nik-shuliahin-619349-unsplash.jpg              ,category:Sports & Outdoor|category:Equipment|brand:Nike                         ,                 ,                   ,SC3137-056    ,57.07  ,standard   ,100        ,              ,             ,
+Tennis Ball               ,tennis-ball            ,"Our dog loves these tennis balls and they last for some time before they eventually either get lost in some field or bush or the covering comes off due to it being used most of the day every day."                                                                                                                                                                                                                                                                                        ,ben-hershey-574483-unsplash.jpg                ,category:Sports & Outdoor|category:Equipment|brand:Wilson                       ,                 ,                   ,WRT11752P     ,12.73  ,standard   ,100        ,              ,             ,
+Basketball                ,basketball             ,"The Wilson MVP ball is perfect for playing basketball, and improving your skill for hours on end. Designed for new players, it is created with a high-quality rubber suitable for courts, allowing you to get full use during your practices."                                                                                                                                                                                                                                              ,tommy-bebo-600358-unsplash.jpg                 ,category:Sports & Outdoor|category:Equipment|brand:Wilson                       ,                 ,                   ,WTB1418XB06   ,35.62  ,standard   ,100        ,              ,             ,
+Ultraboost Running Shoe   ,ultraboost-running-shoe,"With its ultra-light, uber-responsive magic foam and a carbon fiber plate that feels like it’s propelling you forward, the Running Shoe is ready to push you to victories both large and small"                                                                                                                                                                                                                                                                                             ,chuttersnap-584518-unsplash.jpg                ,category:Sports & Outdoor|category:Footwear|brand:Adidas|color:blue|color:pink  ,size             ,Size 40            ,RS0040        ,99.99  ,standard   ,100        ,              ,             ,
+                          ,                       ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ,                                               ,                                                                                ,                 ,Size 42            ,RS0042        ,99.99  ,standard   ,100        ,              ,             ,
+                          ,                       ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ,                                               ,                                                                                ,                 ,Size 44            ,RS0044        ,99.99  ,standard   ,100        ,              ,             ,
+                          ,                       ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ,                                               ,                                                                                ,                 ,Size 46            ,RS0046        ,99.99  ,standard   ,100        ,              ,             ,
+Freerun Running Shoe      ,freerun-running-shoe   ,"The Freerun Men's Running Shoe is built for record-breaking speed. The Flyknit upper delivers ultra-lightweight support that fits like a glove."                                                                                                                                                                                                                                                                                                                                            ,imani-clovis-234736-unsplash.jpg               ,category:Sports & Outdoor|category:Footwear|brand:Nike|color:black              ,size             ,Size 40            ,AR4561-40     ,160.00 ,standard   ,100        ,              ,             ,
+                          ,                       ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ,                                               ,                                                                                ,                 ,Size 42            ,AR4561-42     ,160.00 ,standard   ,100        ,              ,             ,
+                          ,                       ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ,                                               ,                                                                                ,                 ,Size 44            ,AR4561-44     ,160.00 ,standard   ,100        ,              ,             ,
+                          ,                       ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ,                                               ,                                                                                ,                 ,Size 46            ,AR4561-46     ,160.00 ,standard   ,100        ,              ,             ,
+Hi-Top Basketball Shoe    ,hi-top-basketball-shoe ,"Boasting legendary performance since 2008, the Hyperdunkz Basketball Shoe needs no gimmicks to stand out. Air units deliver best-in-class cushioning, while a dynamic lacing system keeps your foot snug and secure, so you can focus on your game and nothing else."                                                                                                                                                                                                                       ,xavier-teo-469050-unsplash.jpg                 ,category:Sports & Outdoor|category:Footwear|brand:Nike|color:white              ,size             ,Size 40            ,AO7893-40     ,140.00 ,standard   ,100        ,              ,             ,
+                          ,                       ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ,                                               ,                                                                                ,                 ,Size 42            ,AO7893-42     ,140.00 ,standard   ,100        ,              ,             ,
+                          ,                       ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ,                                               ,                                                                                ,                 ,Size 44            ,AO7893-44     ,140.00 ,standard   ,100        ,              ,             ,
+                          ,                       ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ,                                               ,                                                                                ,                 ,Size 46            ,AO7893-46     ,140.00 ,standard   ,100        ,              ,             ,
+Pureboost Running Shoe    ,pureboost-running-shoe ,"Built to handle curbs, corners and uneven sidewalks, these natural running shoes have an expanded landing zone and a heel plate for added stability. A lightweight and stretchy knit upper supports your native stride."                                                                                                                                                                                                                                                                    ,thomas-serer-420833-unsplash.jpg               ,category:Sports & Outdoor|category:Footwear|brand:Adidas|color:white|color:black,size             ,Size 40            ,F3578640      ,99.95  ,standard   ,100        ,              ,             ,
+                          ,                       ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ,                                               ,                                                                                ,                 ,Size 42            ,F3578642      ,99.95  ,standard   ,100        ,              ,             ,
+                          ,                       ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ,                                               ,                                                                                ,                 ,Size 44            ,F3578644      ,99.95  ,standard   ,100        ,              ,             ,
+                          ,                       ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ,                                               ,                                                                                ,                 ,Size 46            ,F3578646      ,99.95  ,standard   ,100        ,              ,             ,
+RunX Running Shoe         ,runx-running-shoe      ,"These running shoes are made with an airy, lightweight mesh upper. The durable rubber outsole grips the pavement for added stability. A cushioned midsole brings comfort to each step."                                                                                                                                                                                                                                                                                                     ,nikolai-chernichenko-1299748-unsplash.jpg      ,category:Sports & Outdoor|category:Footwear|brand:Adidas|color:black            ,size             ,Size 40            ,F3633340      ,44.95  ,standard   ,100        ,              ,             ,
+                          ,                       ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ,                                               ,                                                                                ,                 ,Size 42            ,F3633342      ,44.95  ,standard   ,100        ,              ,             ,
+                          ,                       ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ,                                               ,                                                                                ,                 ,Size 44            ,F3633344      ,44.95  ,standard   ,100        ,              ,             ,
+                          ,                       ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ,                                               ,                                                                                ,                 ,Size 46            ,F3633346      ,44.95  ,standard   ,100        ,              ,             ,
+Allstar Sneakers          ,allstar-sneakers       ,"All Star is the most iconic sneaker in the world, recognised for its unmistakable silhouette, star-centred ankle patch and cultural authenticity. And like the best paradigms, it only gets better with time."                                                                                                                                                                                                                                                                              ,mitch-lensink-256007-unsplash.jpg              ,category:Sports & Outdoor|category:Footwear|brand:Converse|color:black          ,size             ,Size 40            ,CAS23340      ,65.00  ,standard   ,100        ,              ,             ,
+                          ,                       ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ,                                               ,                                                                                ,                 ,Size 42            ,CAS23342      ,65.00  ,standard   ,100        ,              ,             ,
+                          ,                       ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ,                                               ,                                                                                ,                 ,Size 44            ,CAS23344      ,65.00  ,standard   ,100        ,              ,             ,
+                          ,                       ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ,                                               ,                                                                                ,                 ,Size 46            ,CAS23346      ,65.00  ,standard   ,100        ,              ,             ,
+Spiky Cactus              ,spiky-cactus           ,"A spiky yet elegant house cactus - perfect for the home or office. Origin and habitat: Probably native only to the Andes of Peru"                                                                                                                                                                                                                                                                                                                                                           ,charles-deluvio-695736-unsplash.jpg            ,category:Home & Garden|category:Plants|plant type:Indoor                        ,                 ,                   ,SC011001      ,15.50  ,standard   ,100        ,              ,             ,
+Tulip Pot                 ,tulip-pot              ,"Bright crimson red species tulip with black centers, the poppy-like flowers will open up in full sun. Ideal for rock gardens, pots and border edging."                                                                                                                                                                                                                                                                                                                                      ,natalia-y-345738-unsplash.jpg                  ,category:Home & Garden|category:Plants|plant type:Outdoor|plant type:Indoor     ,                 ,                   ,A58477        ,6.75   ,standard   ,100        ,              ,             ,
+Hanging Plant             ,hanging-plant          ,"Can be found in tropical and sub-tropical America where it grows on the branches of trees, but also on telephone wires and electricity cables and poles that sometimes topple with the weight of these plants. This plant loves a moist and warm air."                                                                                                                                                                                                                                      ,alex-rodriguez-santibanez-200278-unsplash.jpg  ,category:Home & Garden|category:Plants|plant type:Outdoor                       ,                 ,                   ,A44223        ,19.95  ,standard   ,100        ,              ,             ,
+Aloe Vera                 ,aloe-vera              ,"Decorative Aloe vera makes a lovely house plant. A really trendy plant, Aloe vera is just so easy to care for. Aloe vera sap has been renowned for its remarkable medicinal and cosmetic properties for many centuries and has been used to treat grazes, insect bites and sunburn - it really works."                                                                                                                                                                                      ,silvia-agrasar-227575-unsplash.jpg             ,category:Home & Garden|category:Plants|plant type:Indoor                        ,                 ,                   ,A44352        ,6.99   ,standard   ,100        ,              ,             ,
+Fern Blechnum Gibbum      ,fern-blechnum-gibbum   ,"Create a tropical feel in your home with this lush green tree fern, it has decorative leaves and will develop a short slender trunk in time."                                                                                                                                                                                                                                                                                                                                               ,caleb-george-536388-unsplash.jpg               ,category:Home & Garden|category:Plants|plant type:Outdoor                       ,                 ,                   ,A04851        ,8.95   ,standard   ,100        ,              ,             ,
+Assorted Indoor Succulents,assorted-succulents    ,"These assorted succulents come in a variety of different shapes and colours - each with their own unique personality. Succulents grow best in plenty of light: a sunny windowsill would be the ideal spot for them to thrive!"                                                                                                                                                                                                                                                              ,annie-spratt-78044-unsplash.jpg                ,category:Home & Garden|category:Plants|plant type:Indoor                        ,                 ,                   ,A08593        ,32.50  ,standard   ,100        ,              ,             ,
+Orchid                    ,orchid                 ,"Gloriously elegant. It can go along with any interior as it is a neutral color and the most popular Phalaenopsis overall. 2 to 3 foot stems host large white flowers that can last for over 2 months."                                                                                                                                                                                                                                                                                      ,zoltan-kovacs-642412-unsplash.jpg              ,category:Home & Garden|category:Plants                                          ,                 ,                   ,ROR00221      ,65.00  ,standard   ,100        ,              ,             ,
+Bonsai Tree               ,bonsai-tree            ,"Excellent semi-evergreen bonsai. Indoors or out but needs some winter protection. All trees sent will leave the nursery in excellent condition and will be of equal quality or better than the photograph shown."                                                                                                                                                                                                                                                                           ,mark-tegethoff-667351-unsplash.jpg             ,category:Home & Garden|category:Plants                                          ,                 ,                   ,B01MXFLUSV    ,19.99  ,standard   ,100        ,              ,             ,
+Guardian Lion Statue      ,guardian-lion-statue   ,"Placing it at home or office can bring you fortune and prosperity, guard your house and ward off ill fortune."                                                                                                                                                                                                                                                                                                                                                                              ,vincent-liu-525429-unsplash.jpg                ,category:Home & Garden|category:Furniture|color:gray                            ,                 ,                   ,GL34LLW11     ,188.53 ,standard   ,100        ,              ,             ,
+Hand Trowel               ,hand-trowel            ,"Hand trowel for garden cultivating hammer finish epoxy-coated head for improved resistance to rust, scratches, humidity and alkalines in the soil."                                                                                                                                                                                                                                                                                                                                         ,neslihan-gunaydin-3493-unsplash.jpg            ,category:Home & Garden|category:Plants                                          ,                 ,                   ,4058NB/09     ,4.99   ,standard   ,100        ,              ,             ,
+Balloon Chair             ,balloon-chair          ,"A charming vintage white wooden chair featuring an extremely spherical pink balloon. The balloon may be detached and used for other purposes, for example as a party decoration."                                                                                                                                                                                                                                                                                                           ,florian-klauer-14840-unsplash.jpg              ,category:Home & Garden|category:Furniture                                       ,                 ,                   ,34-BC82444    ,65.00  ,standard   ,100        ,              ,             ,
+Grey Fabric Sofa          ,grey-fabric-sofa       ,"Seat cushions filled with high resilience foam and polyester fibre wadding give comfortable support for your body, and easily regain their shape when you get up. The cover is easy to keep clean as it is removable and can be machine washed."                                                                                                                                                                                                                                            ,nathan-fertig-249917-unsplash.jpg              ,category:Home & Garden|category:Furniture|color:gray                            ,                 ,                   ,CH00001-12    ,295.00 ,standard   ,100        ,              ,             ,
+Leather Sofa              ,leather-sofa           ,"This premium, tan-brown bonded leather seat is part of the 'chill' sofa range. The lever activated recline feature makes it easy to adjust to any position. This smart, bustle back design with rounded tight padded arms has been designed with your comfort in mind. This well-padded chair has foam pocket sprung seat cushions and fibre-filled back cushions."                                                                                                                         ,paul-weaver-1120584-unsplash.jpg               ,category:Home & Garden|category:Furniture|color:brown                           ,                 ,                   ,CH00001-02    ,1245.00,standard   ,100        ,              ,             ,
+Light Shade               ,light-shade            ,"Modern tapered white polycotton pendant shade with a metallic silver chrome interior finish for maximum light reflection. Reversible gimble so it can be used as a ceiling shade or as a lamp shade."                                                                                                                                                                                                                                                                                       ,pierre-chatel-innocenti-483198-unsplash.jpg    ,category:Home & Garden|category:Furniture                                       ,                 ,                   ,B45809LSW     ,28.45  ,standard   ,100        ,              ,             ,
+Wooden Side Desk          ,wooden-side-desk       ,"Drawer stops prevent the drawers from being pulled out too far. Built-in cable management for collecting cables and cords; out of sight but close at hand."                                                                                                                                                                                                                                                                                                                                 ,abel-y-costa-716024-unsplash.jpg               ,category:Home & Garden|category:Furniture|color:wood                            ,                 ,                   ,304.096.29    ,125.00 ,standard   ,100        ,              ,             ,
+Comfy Padded Chair        ,comfy-padded-chair     ,"You sit comfortably thanks to the shaped back. The chair frame is made of solid wood, which is a durable natural material."                                                                                                                                                                                                                                                                                                                                                                 ,kari-shea-398668-unsplash.jpg                  ,category:Home & Garden|category:Furniture|color:gray                            ,                 ,                   ,404.068.14    ,130.00 ,standard   ,100        ,              ,             ,
+Black Eaves Chair         ,black-eaves-chair      ,"Comfortable to sit on thanks to the bowl-shaped seat and rounded shape of the backrest. No tools are required to assemble the chair, you just click it together with a simple mechanism under the seat."                                                                                                                                                                                                                                                                                    ,andres-jasso-220776-unsplash.jpg               ,category:Home & Garden|category:Furniture|color:black                           ,                 ,                   ,003.600.02    ,70.00  ,standard   ,100        ,              ,             ,
+Wooden Stool              ,wooden-stool           ,"Solid wood is a hardwearing natural material, which can be sanded and surface treated as required."                                                                                                                                                                                                                                                                                                                                                                                         ,ruslan-bardash-351288-unsplash.jpg             ,category:Home & Garden|category:Furniture|color:wood                            ,                 ,                   ,202.493.30    ,14.00  ,standard   ,100        ,              ,             ,
+Bedside Table             ,bedside-table          ,"Every table is unique, with varying grain pattern and natural colour shifts that are part of the charm of wood."                                                                                                                                                                                                                                                                                                                                                                            ,benjamin-voros-310026-unsplash.jpg             ,category:Home & Garden|category:Furniture|color:white                           ,                 ,                   ,404.290.14    ,130.00 ,standard   ,100        ,              ,             ,
+Modern Cafe Chair         ,modern-cafe-chair      ,"You sit comfortably thanks to the restful flexibility of the seat. Lightweight and easy to move around, yet stable enough even for the liveliest, young family members."                                                                                                                                                                                                                                                                                                                    ,jean-philippe-delberghe-1400011-unsplash.jpg   ,category:Home & Garden|category:Furniture                                       ,color            ,mustard            ,404.038.96    ,100.00 ,standard   ,100        ,              ,             ,color:yellow
+                          ,                       ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ,                                               ,                                                                                ,                 ,mint               ,404.038.96    ,100.00 ,standard   ,100        ,              ,             ,color:green
+                          ,                       ,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ,                                               ,                                                                                ,                 ,pearl              ,404.038.96    ,100.00 ,standard   ,100        ,              ,             ,color:white

+ 3 - 3
packages/core/src/api/schema/admin-api/product.api.graphql

@@ -46,7 +46,7 @@ type Product implements Node {
 type ProductVariant implements Node {
     enabled: Boolean!
     stockOnHand: Int!
-    trackInventory: Boolean!
+    trackInventory: GlobalFlag!
     stockMovements(options: StockMovementListOptions): StockMovementList!
 }
 
@@ -112,7 +112,7 @@ input CreateProductVariantInput {
     featuredAssetId: ID
     assetIds: [ID!]
     stockOnHand: Int
-    trackInventory: Boolean
+    trackInventory: GlobalFlag
 }
 
 input UpdateProductVariantInput {
@@ -126,7 +126,7 @@ input UpdateProductVariantInput {
     featuredAssetId: ID
     assetIds: [ID!]
     stockOnHand: Int
-    trackInventory: Boolean
+    trackInventory: GlobalFlag
 }
 
 input AssignProductsToChannelInput {

+ 6 - 0
packages/core/src/api/schema/common/common-types.graphql

@@ -3,6 +3,12 @@ scalar JSON
 scalar DateTime
 scalar Upload
 
+enum GlobalFlag {
+    TRUE
+    FALSE
+    INHERIT
+}
+
 enum AdjustmentType {
     TAX
     PROMOTION

+ 8 - 2
packages/core/src/data-import/providers/import-parser/import-parser.ts

@@ -1,4 +1,5 @@
 import { Injectable } from '@nestjs/common';
+import { GlobalFlag } from '@vendure/common/lib/generated-types';
 import { normalizeString } from '@vendure/common/lib/normalize-string';
 import { unique } from '@vendure/common/lib/unique';
 import parse from 'csv-parse';
@@ -29,7 +30,7 @@ export interface ParsedProductVariant {
     price: number;
     taxCategory: string;
     stockOnHand: number;
-    trackInventory: boolean;
+    trackInventory: GlobalFlag;
     assetPaths: string[];
     facets: Array<{
         facet: string;
@@ -251,7 +252,12 @@ function parseVariantFromRecord(r: RawProductRecord): ParsedProductVariant {
         price: parseNumber(r.price),
         taxCategory: parseString(r.taxCategory),
         stockOnHand: parseNumber(r.stockOnHand),
-        trackInventory: parseBoolean(r.trackInventory),
+        trackInventory:
+            r.trackInventory == null || r.trackInventory === ''
+                ? GlobalFlag.INHERIT
+                : parseBoolean(r.trackInventory)
+                ? GlobalFlag.TRUE
+                : GlobalFlag.FALSE,
         assetPaths: parseStringArray(r.variantAssets),
         facets: parseStringArray(r.variantFacets).map(pair => {
             const [facet, value] = pair.split(':');

+ 1 - 1
packages/core/src/data-import/providers/importer/importer.ts

@@ -1,5 +1,5 @@
 import { Injectable } from '@nestjs/common';
-import { ImportInfo, LanguageCode } from '@vendure/common/lib/generated-types';
+import { GlobalFlag, ImportInfo, LanguageCode } from '@vendure/common/lib/generated-types';
 import { normalizeString } from '@vendure/common/lib/normalize-string';
 import { ID } from '@vendure/common/lib/shared-types';
 import ProgressBar from 'progress';

+ 14 - 14
packages/core/src/entity/product-variant/product-variant.entity.ts

@@ -1,4 +1,4 @@
-import { CurrencyCode } from '@vendure/common/lib/generated-types';
+import { CurrencyCode, GlobalFlag } from '@vendure/common/lib/generated-types';
 import { DeepPartial, ID } from '@vendure/common/lib/shared-types';
 import { Column, Entity, JoinTable, ManyToMany, ManyToOne, OneToMany } from 'typeorm';
 
@@ -77,24 +77,24 @@ export class ProductVariant extends VendureEntity implements Translatable, HasCu
      */
     taxRateApplied: TaxRate;
 
-    @ManyToOne((type) => Asset, { onDelete: 'SET NULL' })
+    @ManyToOne(type => Asset, { onDelete: 'SET NULL' })
     featuredAsset: Asset;
 
-    @OneToMany((type) => ProductVariantAsset, (productVariantAsset) => productVariantAsset.productVariant, {
+    @OneToMany(type => ProductVariantAsset, productVariantAsset => productVariantAsset.productVariant, {
         onDelete: 'SET NULL',
     })
     assets: ProductVariantAsset[];
 
-    @ManyToOne((type) => TaxCategory)
+    @ManyToOne(type => TaxCategory)
     taxCategory: TaxCategory;
 
-    @OneToMany((type) => ProductVariantPrice, (price) => price.variant, { eager: true })
+    @OneToMany(type => ProductVariantPrice, price => price.variant, { eager: true })
     productVariantPrices: ProductVariantPrice[];
 
-    @OneToMany((type) => ProductVariantTranslation, (translation) => translation.base, { eager: true })
+    @OneToMany(type => ProductVariantTranslation, translation => translation.base, { eager: true })
     translations: Array<Translation<ProductVariant>>;
 
-    @ManyToOne((type) => Product, (product) => product.variants)
+    @ManyToOne(type => Product, product => product.variants)
     product: Product;
 
     @EntityId({ nullable: true })
@@ -103,23 +103,23 @@ export class ProductVariant extends VendureEntity implements Translatable, HasCu
     @Column({ default: 0 })
     stockOnHand: number;
 
-    @Column()
-    trackInventory: boolean;
+    @Column({ type: 'varchar', default: GlobalFlag.INHERIT })
+    trackInventory: GlobalFlag;
 
-    @OneToMany((type) => StockMovement, (stockMovement) => stockMovement.productVariant)
+    @OneToMany(type => StockMovement, stockMovement => stockMovement.productVariant)
     stockMovements: StockMovement[];
 
-    @ManyToMany((type) => ProductOption)
+    @ManyToMany(type => ProductOption)
     @JoinTable()
     options: ProductOption[];
 
-    @ManyToMany((type) => FacetValue)
+    @ManyToMany(type => FacetValue)
     @JoinTable()
     facetValues: FacetValue[];
 
-    @Column((type) => CustomProductVariantFields)
+    @Column(type => CustomProductVariantFields)
     customFields: CustomProductVariantFields;
 
-    @ManyToMany((type) => Collection, (collection) => collection.productVariants)
+    @ManyToMany(type => Collection, collection => collection.productVariants)
     collections: Collection[];
 }

+ 0 - 5
packages/core/src/service/services/product-variant.service.ts

@@ -244,11 +244,6 @@ export class ProductVariantService {
                 if (input.facetValueIds) {
                     variant.facetValues = await this.facetValueService.findByIds(ctx, input.facetValueIds);
                 }
-                if (input.trackInventory == null) {
-                    variant.trackInventory = (
-                        await this.globalSettingsService.getSettings(ctx)
-                    ).trackInventory;
-                }
                 variant.product = { id: input.productId } as any;
                 variant.taxCategory = { id: input.taxCategoryId } as any;
                 await this.assetService.updateFeaturedAsset(ctx, variant, input);

+ 19 - 4
packages/core/src/service/services/stock-movement.service.ts

@@ -1,5 +1,5 @@
 import { Injectable } from '@nestjs/common';
-import { StockMovementListOptions } from '@vendure/common/lib/generated-types';
+import { GlobalFlag, StockMovementListOptions } from '@vendure/common/lib/generated-types';
 import { ID, PaginatedList } from '@vendure/common/lib/shared-types';
 
 import { RequestContext } from '../../api/common/request-context';
@@ -17,13 +17,19 @@ import { StockMovement } from '../../entity/stock-movement/stock-movement.entity
 import { ListQueryBuilder } from '../helpers/list-query-builder/list-query-builder';
 import { TransactionalConnection } from '../transaction/transactional-connection';
 
+import { GlobalSettingsService } from './global-settings.service';
+
 @Injectable()
 export class StockMovementService {
     shippingEligibilityCheckers: ShippingEligibilityChecker[];
     shippingCalculators: ShippingCalculator[];
     private activeShippingMethods: ShippingMethod[];
 
-    constructor(private connection: TransactionalConnection, private listQueryBuilder: ListQueryBuilder) {}
+    constructor(
+        private connection: TransactionalConnection,
+        private listQueryBuilder: ListQueryBuilder,
+        private globalSettingsService: GlobalSettingsService,
+    ) {}
 
     getStockMovementsByProductVariantId(
         ctx: RequestContext,
@@ -66,6 +72,7 @@ export class StockMovementService {
             throw new InternalServerError('error.cannot-create-sales-for-active-order');
         }
         const sales: Sale[] = [];
+        const globalTrackInventory = (await this.globalSettingsService.getSettings(ctx)).trackInventory;
         for (const line of order.lines) {
             const { productVariant } = line;
             const sale = new Sale({
@@ -75,7 +82,7 @@ export class StockMovementService {
             });
             sales.push(sale);
 
-            if (productVariant.trackInventory === true) {
+            if (this.trackInventoryForVariant(productVariant, globalTrackInventory)) {
                 productVariant.stockOnHand -= line.quantity;
                 await this.connection
                     .getRepository(ctx, ProductVariant)
@@ -93,6 +100,7 @@ export class StockMovementService {
             },
         );
         const cancellations: Cancellation[] = [];
+        const globalTrackInventory = (await this.globalSettingsService.getSettings(ctx)).trackInventory;
         const variantsMap = new Map<ID, ProductVariant>();
         for (const item of orderItems) {
             let productVariant: ProductVariant;
@@ -111,7 +119,7 @@ export class StockMovementService {
             });
             cancellations.push(cancellation);
 
-            if (productVariant.trackInventory === true) {
+            if (this.trackInventoryForVariant(productVariant, globalTrackInventory)) {
                 productVariant.stockOnHand += 1;
                 await this.connection
                     .getRepository(ctx, ProductVariant)
@@ -120,4 +128,11 @@ export class StockMovementService {
         }
         return this.connection.getRepository(ctx, Cancellation).save(cancellations);
     }
+
+    private trackInventoryForVariant(variant: ProductVariant, globalTrackInventory: boolean): boolean {
+        return (
+            variant.trackInventory === GlobalFlag.TRUE ||
+            (variant.trackInventory === GlobalFlag.INHERIT && globalTrackInventory)
+        );
+    }
 }

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 400 - 529
packages/elasticsearch-plugin/e2e/graphql/generated-e2e-elasticsearch-plugin-types.ts


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
schema-admin.json


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
schema-shop.json


برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است