Skip to content

Commit 9078455

Browse files
committed
Remove options and variants #217
1 parent c605f52 commit 9078455

2 files changed

Lines changed: 1 addition & 11 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cezerin",
3-
"version": "0.12.0",
3+
"version": "0.13.0",
44
"description": "Cezerin allow you to create online store with full-stack JavaScript. https://cezerin.com",
55
"keywords": [
66
"cezerin",

src/api/server/services/products/products.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -398,8 +398,6 @@ class ProductsService {
398398
product.tax_class = parse.getString(data.tax_class);
399399
product.related_product_ids = parse.getArrayIfValid(data.related_product_ids) || [];
400400
product.prices = parse.getArrayIfValid(data.prices) || [];
401-
product.options = parse.getArrayIfValid(data) || [];
402-
product.variants = parse.getArrayIfValid(data.variants) || [];
403401
product.cost_price = parse.getNumberIfPositive(data.cost_price) || 0;
404402
product.regular_price = parse.getNumberIfPositive(data.regular_price) || 0;
405403
product.sale_price = parse.getNumberIfPositive(data.sale_price) || 0;
@@ -500,14 +498,6 @@ class ProductsService {
500498
product.prices = parse.getArrayIfValid(data.prices) || [];
501499
}
502500

503-
if(data.options !== undefined) {
504-
product.options = parse.getArrayIfValid(data.options) || [];
505-
}
506-
507-
if(data.variants !== undefined) {
508-
product.variants = parse.getArrayIfValid(data.variants) || [];
509-
}
510-
511501
if(data.cost_price !== undefined) {
512502
product.cost_price = parse.getNumberIfPositive(data.cost_price) || 0;
513503
}

0 commit comments

Comments
 (0)