forked from coreshop/CoreShop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
315 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
features/domain/filter/load_index_with_raw_results.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@domain @filter | ||
Feature: To get more performance out of the index, we can also load the raw result | ||
without needing pimcore's data objects | ||
|
||
Background: | ||
Given the site operates on a store in "Austria" | ||
And the site has a index "myindex" for class "CoreShopProduct" with type "mysql" | ||
And the site has a filter "myfilter" for index "myindex" | ||
And the index has following fields: | ||
| key | name | type | getter | interpreter | columnType | | ||
| sku | sku | object | | | STRING | | ||
| ean | ean | object | | | STRING | | ||
| name | internalName | localizedfields | localizedfield | localeMapping | STRING | | ||
|
||
Scenario: Adding a simple product to the index | ||
And the site has a product "Shoe" priced at 100 | ||
And the products ean is "123456" | ||
And the products sku is "654321" | ||
And the product is active | ||
And the product is published | ||
Then the raw result for the filter should look like: | ||
| o_classId | o_className | o_type | active | categoryIds | parentCategoryIds | sku | ean | language | name | internalName | | ||
| cs_product | CoreShopProduct | object | 1 | ,, | ,, | 654321 | 123456 | en | Shoe | Shoe | |
35 changes: 35 additions & 0 deletions
35
features/domain/payment_provider/payment_provider_rules/carrier_condition.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
@domain @payment_provider | ||
Feature: Adding a new Payment Provider Rule | ||
In order to payment costs | ||
I'll create a new payment-provider-rule | ||
with an carrier condition | ||
|
||
Background: | ||
Given the site operates on a store in "Austria" | ||
And the site has a currency "Euro" with iso "EUR" | ||
And I am in country "Austria" | ||
And the site has a product "Shoe" priced at 10000 | ||
And I add the product "Shoe" to my cart | ||
And There is a payment provider "Bankwire" using factory "Bankwire" | ||
And the site has a carrier "Post" | ||
And the carrier "Post" is enabled for store "Austria" | ||
And my cart uses carrier "Post" | ||
|
||
Scenario: Add a new carrier payment-provider-rule which is valid | ||
Given adding a payment-provider-rule named "carriers" | ||
And the payment-provider-rule is active | ||
And the payment-provider-rule has a condition carriers with carrier "Post" | ||
Then the payment-provider-rule should be valid for my cart with payment provider "Bankwire" | ||
|
||
Scenario: Add a new carrier payment-provider-rule which is inactive | ||
Given adding a payment-provider-rule named "carriers" | ||
And the payment-provider-rule is inactive | ||
And the payment-provider-rule has a condition currencies with currency "EUR" | ||
Then the payment-provider-rule should be invalid for my cart with payment provider "Bankwire" | ||
|
||
Scenario: Add a new carrier payment-provider-rule which is invalid | ||
Given the site has a carrier "DHL" | ||
And adding a payment-provider-rule named "carriers" | ||
And the payment-provider-rule is active | ||
And the payment-provider-rule has a condition carriers with carrier "DHL" | ||
Then the payment-provider-rule should be invalid for my cart with payment provider "Bankwire" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 35 additions & 1 deletion
36
src/CoreShop/Bundle/AddressBundle/Resources/translations/admin.pl.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,35 @@ | ||
--- | ||
coreshop_country: 'Kraj' | ||
coreshop_country_isoCode: 'Kod ISO' | ||
coreshop_country_currency: 'Waluta' | ||
coreshop_zone: 'Strefa' | ||
coreshop_country_multiselect: 'Wielokrotny wybór krajów' | ||
coreshop_state: 'Stan' | ||
coreshop_state_isoCode: 'Kod ISO' | ||
coreshop_state_country: 'Kraj' | ||
coreshop_country_addressFormat: 'Format adresu' | ||
coreshop_country_salutations: 'Zwroty grzecznościowe' | ||
coreshop_permission_country: 'CoreShop: Kraj' | ||
coreshop_permission_state: 'CoreShop: Stan' | ||
coreshop_permission_zone: 'CoreShop: Strefa' | ||
coreshop_address_company: 'Firma' | ||
coreshop_address_firstname: 'Imię' | ||
coreshop_address_lastname: 'Nazwisko' | ||
coreshop_address_postcode: 'Kod pocztowy' | ||
coreshop_address_city: 'Miasto' | ||
coreshop_address_street: 'Ulica' | ||
coreshop_address_street_number: 'Numer ulicy' | ||
coreshop_address_identifier: 'Identyfikator adresu' | ||
coreshop_countries: 'Kraje' | ||
CoreShopAddress: 'Adres' | ||
coreshop.address.salutation: 'Zwrot grzecznościowy' | ||
coreshop.address.firstname: 'Imię' | ||
coreshop.address.lastname: 'Nazwisko' | ||
coreshop.address.company: 'Firma' | ||
coreshop.address.street: 'Ulica' | ||
coreshop.address.number: 'Numer' | ||
coreshop.address.post_code: 'Kod pocztowy' | ||
coreshop.address.city: 'Miasto' | ||
coreshop.address.country: 'Kraj' | ||
coreshop.address.state: 'Stan/Województwo' | ||
coreshop.address.phone_number: 'Numer telefonu' | ||
coreshop.address.address_identifier: 'Identyfikator adresu' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
...reShop/Bundle/CoreBundle/Resources/public/pimcore/js/payment/rules/conditions/carriers.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
* CoreShop. | ||
* | ||
* This source file is subject to the GNU General Public License version 3 (GPLv3) | ||
* For the full copyright and license information, please view the LICENSE.md and gpl-3.0.txt | ||
* files that are distributed with this source code. | ||
* | ||
* @copyright Copyright (c) CoreShop GmbH (https://www.coreshop.org) | ||
* @license https://www.coreshop.org/license GPLv3 and CCL | ||
* | ||
*/ | ||
|
||
pimcore.registerNS('coreshop.paymentproviderrule.conditions.carriers'); | ||
coreshop.paymentproviderrule.conditions.carriers = Class.create(coreshop.cart.pricerules.conditions.carriers, {}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.