@gem-sdk/components 2.1.31 → 2.1.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -237,6 +237,7 @@ const ProductList = ({ setting, builderProps, styles, className, children, advan
|
|
|
237
237
|
endif
|
|
238
238
|
assign arrayRelatedExclude = relatedExclude | split: ","
|
|
239
239
|
assign idSelectedList = ''
|
|
240
|
+
assign relatedListProduct = null
|
|
240
241
|
for collection in collections
|
|
241
242
|
assign collectionId = collection.id
|
|
242
243
|
assign isInCollection = false
|
|
@@ -251,20 +252,15 @@ const ProductList = ({ setting, builderProps, styles, className, children, advan
|
|
|
251
252
|
break
|
|
252
253
|
else
|
|
253
254
|
assign idSelectedList = idSelectedList | append: "," | append: product.id
|
|
255
|
+
assign productSelected = product | sort
|
|
256
|
+
assign relatedListProduct = relatedListProduct | concat: productSelected
|
|
254
257
|
endif
|
|
255
258
|
endfor
|
|
256
259
|
endif
|
|
257
260
|
endunless
|
|
258
261
|
endfor
|
|
259
262
|
endfor
|
|
260
|
-
|
|
261
|
-
assign handle = item.handle
|
|
262
|
-
assign productF = item | sort
|
|
263
|
-
if idSelectedList contains item.id
|
|
264
|
-
assign products = products | concat: productF
|
|
265
|
-
endif
|
|
266
|
-
endfor
|
|
267
|
-
assign products = products | uniq
|
|
263
|
+
assign products = relatedListProduct | uniq
|
|
268
264
|
when 'vendor'
|
|
269
265
|
assign vendorAssignProduct = assignProduct.vendor
|
|
270
266
|
assign productFilter = allProductsPaginated | where: 'vendor', vendorAssignProduct
|
|
@@ -233,6 +233,7 @@ const ProductList = ({ setting, builderProps, styles, className, children, advan
|
|
|
233
233
|
endif
|
|
234
234
|
assign arrayRelatedExclude = relatedExclude | split: ","
|
|
235
235
|
assign idSelectedList = ''
|
|
236
|
+
assign relatedListProduct = null
|
|
236
237
|
for collection in collections
|
|
237
238
|
assign collectionId = collection.id
|
|
238
239
|
assign isInCollection = false
|
|
@@ -247,20 +248,15 @@ const ProductList = ({ setting, builderProps, styles, className, children, advan
|
|
|
247
248
|
break
|
|
248
249
|
else
|
|
249
250
|
assign idSelectedList = idSelectedList | append: "," | append: product.id
|
|
251
|
+
assign productSelected = product | sort
|
|
252
|
+
assign relatedListProduct = relatedListProduct | concat: productSelected
|
|
250
253
|
endif
|
|
251
254
|
endfor
|
|
252
255
|
endif
|
|
253
256
|
endunless
|
|
254
257
|
endfor
|
|
255
258
|
endfor
|
|
256
|
-
|
|
257
|
-
assign handle = item.handle
|
|
258
|
-
assign productF = item | sort
|
|
259
|
-
if idSelectedList contains item.id
|
|
260
|
-
assign products = products | concat: productF
|
|
261
|
-
endif
|
|
262
|
-
endfor
|
|
263
|
-
assign products = products | uniq
|
|
259
|
+
assign products = relatedListProduct | uniq
|
|
264
260
|
when 'vendor'
|
|
265
261
|
assign vendorAssignProduct = assignProduct.vendor
|
|
266
262
|
assign productFilter = allProductsPaginated | where: 'vendor', vendorAssignProduct
|