From 537e6513f5f0c35687bf4a538f01c8689b992078 Mon Sep 17 00:00:00 2001 From: Tomanhez Date: Mon, 20 May 2019 13:05:52 +0200 Subject: [PATCH 1/4] Change locale --- config/services.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/services.yaml b/config/services.yaml index bae0ca6..f6e67e0 100644 --- a/config/services.yaml +++ b/config/services.yaml @@ -1,7 +1,7 @@ # Put parameters here that don't need to change on each machine where the app is deployed # https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration parameters: - locale: en_US + locale: pl_PL services: # Default configuration for services in *this* file From fce465f18f6fe9001f5e094e7ac515ebc1b03095 Mon Sep 17 00:00:00 2001 From: Tomanhez Date: Mon, 20 May 2019 13:06:25 +0200 Subject: [PATCH 2/4] Add new custom suite --- config/packages/fixtures.yaml | 215 ++++++++++++++++++++++++++++++++++ 1 file changed, 215 insertions(+) create mode 100644 config/packages/fixtures.yaml diff --git a/config/packages/fixtures.yaml b/config/packages/fixtures.yaml new file mode 100644 index 0000000..cfdfd59 --- /dev/null +++ b/config/packages/fixtures.yaml @@ -0,0 +1,215 @@ +sylius_fixtures: + suites: + poland: + listeners: + orm_purger: ~ + logger: ~ + + fixtures: + locale: ~ + currency: + options: + currencies: ['PLN'] + + geographical: + options: + countries: + - "PL" + zones: + PL: + name: "Poland" + countries: + - "PL" + + channel: + options: + custom: + pl_web_store: + name: "PL Web Store" + code: "PL_WEB" + locales: + - "%locale%" + currencies: + - "PLN" + enabled: true + hostname: "localhost" + + payment_method: + options: + custom: + cash_on_delivery: + code: "cash_on_delivery" + name: "Cash on delivery" + channels: + - "PL_WEB" + bank_transfer: + code: "bank_transfer" + name: "Bank transfer" + channels: + - "PL_WEB" + enabled: true + + shipping_method: + options: + custom: + ups: + code: "ups" + name: "UPS" + enabled: true + channels: + - "PL_WEB" + dhl_express: + channels: + - "PL_WEB" + inpost: + code: "inpost" + name: "InPost" + channels: + - "PL_WEB" + + customer_group: + options: + custom: + retail: + code: "retail" + name: "Retail" + wholesale: + code: "wholesale" + name: "Wholesale" + + shop_user: + name: "shop_user" + options: + random: 2 + custom: + - + email: "shop@example.com" + first_name: "John" + last_name: "Doe" + password: "sylius" + - + email: "custom@example.com" + first_name: "Marek" + last_name: "Markowski" + password: "sylius" + + admin_user: + name: "admin_user" + options: + custom: + - + email: "sylius@example.com" + username: "sylius" + password: "sylius" + enabled: true + locale_code: "%locale%" + first_name: "Jan" + last_name: "Kowalski" + - + email: "api@example.com" + username: "api" + password: "sylius-api" + enabled: true + locale_code: "%locale%" + first_name: "Zbigniew" + last_name: "Nowak" + api: true + + tax_category: + options: + custom: + clothing: + code: "clothing" + name: "Clothing" + books: + code: "books" + name: "Books" + other: + code: "other" + name: "Other" + + tax_rate: + options: + custom: + clothing_tax: + code: "clothing_sales_tax_10" + name: "Clothing Sales Tax 10%" + zone: "PL" + category: "clothing" + amount: 0.1 + books_tax: + code: "books_sales_tax_5" + name: "Books Sales Tax 5%" + zone: "PL" + category: "books" + amount: 0.05 + default_sales_tax: + code: "sales_tax_20" + name: "Sales Tax 20%" + zone: "PL" + category: "other" + amount: 0.2 + + promotion: + options: + custom: + black_friday: + code: "black_friday" + name: "Black Friday" + channels: + - "PL_WEB" + new_year: + code: "new_year" + name: "New Year" + usage_limit: 10 + priority: 2 + starts_at: "-7 day" + ends_at: "7 day" + channels: + - "PL_WEB" + rules: + - + type: "item_total" + configuration: + PL_WEB: + amount: 100.00 + actions: + - + type: "order_fixed_discount" + configuration: + PL_WEB: + amount: 10.00 + + mug_product: + options: + amount: 30 + + sticker_product: + options: + amount: 20 + + book_product: + options: + amount: 15 + + tshirt_product: + options: + amount: 15 + + product_review: + options: + random: 50 + + similar_product_association: + options: + amount: 20 + + order: + options: + amount: 20 + + address: + options: + random: 10 + prototype: + country_code: PL From a5d1532bf7275ff1249aa47a186de5ec370eb809 Mon Sep 17 00:00:00 2001 From: Tomanhez Date: Mon, 20 May 2019 15:34:50 +0200 Subject: [PATCH 3/4] Tests fixed --- config/services.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/services.yaml b/config/services.yaml index f6e67e0..bae0ca6 100644 --- a/config/services.yaml +++ b/config/services.yaml @@ -1,7 +1,7 @@ # Put parameters here that don't need to change on each machine where the app is deployed # https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration parameters: - locale: pl_PL + locale: en_US services: # Default configuration for services in *this* file From 280bdb4abfa4b6ba5730531c9730c35c19fcdb46 Mon Sep 17 00:00:00 2001 From: Mateusz Zalewski Date: Thu, 29 Aug 2019 09:18:20 +0200 Subject: [PATCH 4/4] Changes according to #10641 from Sylius/Sylius --- config/packages/fixtures.yaml | 175 ---------------------------------- 1 file changed, 175 deletions(-) diff --git a/config/packages/fixtures.yaml b/config/packages/fixtures.yaml index cfdfd59..69e6d93 100644 --- a/config/packages/fixtures.yaml +++ b/config/packages/fixtures.yaml @@ -1,12 +1,7 @@ sylius_fixtures: suites: poland: - listeners: - orm_purger: ~ - logger: ~ - fixtures: - locale: ~ currency: options: currencies: ['PLN'] @@ -34,182 +29,12 @@ sylius_fixtures: enabled: true hostname: "localhost" - payment_method: - options: - custom: - cash_on_delivery: - code: "cash_on_delivery" - name: "Cash on delivery" - channels: - - "PL_WEB" - bank_transfer: - code: "bank_transfer" - name: "Bank transfer" - channels: - - "PL_WEB" - enabled: true - shipping_method: options: custom: - ups: - code: "ups" - name: "UPS" - enabled: true - channels: - - "PL_WEB" - dhl_express: - channels: - - "PL_WEB" inpost: code: "inpost" name: "InPost" channels: - "PL_WEB" - - customer_group: - options: - custom: - retail: - code: "retail" - name: "Retail" - wholesale: - code: "wholesale" - name: "Wholesale" - - shop_user: - name: "shop_user" - options: - random: 2 - custom: - - - email: "shop@example.com" - first_name: "John" - last_name: "Doe" - password: "sylius" - - - email: "custom@example.com" - first_name: "Marek" - last_name: "Markowski" - password: "sylius" - - admin_user: - name: "admin_user" - options: - custom: - - - email: "sylius@example.com" - username: "sylius" - password: "sylius" - enabled: true - locale_code: "%locale%" - first_name: "Jan" - last_name: "Kowalski" - - - email: "api@example.com" - username: "api" - password: "sylius-api" - enabled: true - locale_code: "%locale%" - first_name: "Zbigniew" - last_name: "Nowak" - api: true - - tax_category: - options: - custom: - clothing: - code: "clothing" - name: "Clothing" - books: - code: "books" - name: "Books" - other: - code: "other" - name: "Other" - - tax_rate: - options: - custom: - clothing_tax: - code: "clothing_sales_tax_10" - name: "Clothing Sales Tax 10%" - zone: "PL" - category: "clothing" - amount: 0.1 - books_tax: - code: "books_sales_tax_5" - name: "Books Sales Tax 5%" zone: "PL" - category: "books" - amount: 0.05 - default_sales_tax: - code: "sales_tax_20" - name: "Sales Tax 20%" - zone: "PL" - category: "other" - amount: 0.2 - - promotion: - options: - custom: - black_friday: - code: "black_friday" - name: "Black Friday" - channels: - - "PL_WEB" - new_year: - code: "new_year" - name: "New Year" - usage_limit: 10 - priority: 2 - starts_at: "-7 day" - ends_at: "7 day" - channels: - - "PL_WEB" - rules: - - - type: "item_total" - configuration: - PL_WEB: - amount: 100.00 - actions: - - - type: "order_fixed_discount" - configuration: - PL_WEB: - amount: 10.00 - - mug_product: - options: - amount: 30 - - sticker_product: - options: - amount: 20 - - book_product: - options: - amount: 15 - - tshirt_product: - options: - amount: 15 - - product_review: - options: - random: 50 - - similar_product_association: - options: - amount: 20 - - order: - options: - amount: 20 - - address: - options: - random: 10 - prototype: - country_code: PL