Commit graph

2508 commits

Author SHA1 Message Date
Manuele Menozzi
19e7e26ee2 Add toggleable to taxon and first behat scenario 2020-07-06 11:25:20 +02:00
Grzegorz Sadowski
57a58fa20c
feature #11613 [Api][Cart] Cart remove items (Tomanhez)
This PR was merged into the 1.8-dev branch.

Discussion
----------

| Q               | A
| --------------- | -----
| Branch?         | master
| Bug fix?        | no
| New feature?    | yes
| BC breaks?      | no
| Deprecations?   | no
| License         | MIT

<img width="764" alt="Screenshot 2020-06-30 at 23 10 31" src="https://user-images.githubusercontent.com/39232096/86177622-442add80-bb27-11ea-80ae-1081f5189362.png">



<!--
 - Bug fixes must be submitted against the 1.7 branch (the lowest possible)
 - Features and deprecations must be submitted against the master branch
 - Make sure that the correct base branch is set
-->


Commits
-------

116671a52a Add behat tests
04a9759378 Add spec tests
791bfa4868 Add behat implementations
18c87eaf4f Add command and command handler
14d7645760 Add api resource configuration and data transformer
3b72f18134 Add fixes
7f035b51bb Replace productCode to orderItemId
2020-07-01 08:08:14 +02:00
Tomanhez
3b72f18134 Add fixes 2020-06-30 12:33:46 +02:00
Łukasz Chruściel
4493328bd6
feature #11367 Check different shipping address field and display shipping address form (vvasiloi)
This PR was merged into the 1.7-dev branch.

Discussion
----------

When shipping and billing addresses are different

| Q               | A
| --------------- | -----
| Branch?         | 1.7
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | yes
| Related tickets | fixes #11348
| License         | MIT


Commits
-------

9fe9181b6e check different shipping address field and display shipping address form when addresses are different
949d6f07cd review updates
bf7ff7f76b simplify address comparison
7cd003db17 fix psalm errors
2020-06-30 10:08:28 +02:00
Tomanhez
116671a52a Add behat tests 2020-06-29 13:19:48 +02:00
Jacques Bodin-Hullin
ce38decc08
Add BDD test for shipping method filter in orders list 2020-06-26 10:10:39 +02:00
Victor Vasiloi
9fe9181b6e check different shipping address field and display shipping address form when addresses are different 2020-06-25 15:14:53 +03:00
Łukasz Chruściel
929a23588d
feature #11529 [RFC] Using tabs for channel pricing (mamazu)
This PR was merged into the 1.8-dev branch.

Discussion
----------

| Q               | A
| --------------- | -----
| Branch?         | master
| Bug fix?        | no
| New feature?    | yes
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | -
| License         | MIT

## Proposal
Channel prices in a simple product get displayed on the product page under the list of channels. So I propose that they will be made into a tabbed view so that they are more easy to manage. If you have a lot of channels (where the product is not active for example) you have a lot of values to scroll through.

### Before
![screenshot_before](https://user-images.githubusercontent.com/14860264/83183765-afe4e980-a128-11ea-9f98-705d2650572c.png)

### After
![screenshot_after](https://user-images.githubusercontent.com/14860264/83183770-b1161680-a128-11ea-948b-0f9ee5475d9f.png)


Commits
-------

79a5074dd5 Using tabs for channel pricing
d4511ea2de Extracting channel_pricings out to its own template
80661a5771 Fixing tests
4de3ba117d Adding label back in to fix behat tests
fc34aca7ce Adding a transformer for channels
a5e37128b7 Update src/Sylius/Behat/Context/Ui/Admin/ManagingProductVariantsContext.php
0df50ab725 Fixing the tests
2020-06-16 10:34:32 +02:00
Łukasz Chruściel
425c8831ef
[Minor][Behat] Typo fix 2020-06-12 08:19:05 +02:00
mamazu
0df50ab725 Fixing the tests 2020-06-11 20:26:21 +02:00
Tomanhez
7e2a326dd8 Fix tests 2020-06-10 10:40:28 +02:00
Tomanhez
47486c3e72 Add tests 2020-06-10 10:27:00 +02:00
Tomanhez
d5372e087c Add new step for creating shipping method 2020-06-09 15:03:16 +02:00
Tomanhez
ab17f34d21 Add tests 2020-06-09 15:03:16 +02:00
Łukasz Chruściel
755cc962d9
Merge branch '1.7'
* 1.7:
  Behat for reordering taxon feature
2020-06-09 09:11:10 +02:00
titomtd
eb54c52702 Behat for reordering taxon feature 2020-06-08 13:42:19 +02:00
Łukasz Chruściel
14d8129be9
[API] Add products with quantity to cart 2020-05-29 12:10:09 +02:00
Łukasz Chruściel
c804251927
[API] Add to cart when logged in 2020-05-29 11:30:05 +02:00
Łukasz Chruściel
0c4088959b
[API] Put simple item to cart implementation 2020-05-29 11:30:04 +02:00
Łukasz Chruściel
e29fa932cb
[API] Pick up cart implementation 2020-05-28 13:33:32 +02:00
Łukasz Chruściel
552db6db66
bug #11499 [UI] added display of product variant original price on product page (JulienLoison)
This PR was merged into the 1.8-dev branch.

Discussion
----------

| Q               | A
| --------------- | -----
| Branch?         | master
| Bug fix?        | yes
| New feature?    | yes
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | -
| License         | MIT

Follows up @lchrusciel's comment on #11423 about variant prices not updating on the product page or variant not displaying discount if the first variant of the product has no discount. 

Commits
-------

8bddc52d99 [UI] added display of product variant original price on product page
2020-05-26 09:28:00 +02:00
Julien Loison
8bddc52d99 [UI] added display of product variant original price on product page 2020-05-25 17:06:03 +02:00
Kamil Kokot
b892cb89fc
feature #11241 Toggleable product variant (LucaGallinari, mmenozzi)
This PR was merged into the 1.8-dev branch.

Discussion
----------

| Q               | A
| --------------- | -----
| Branch?         | master
| Bug fix?        | no
| New feature?    | yes
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | implement #11115 
| License         | MIT

With this PR we add an enabled/disabled status (toggleable) to the product variant as described in #11115.


Commits
-------

3760ef60bd WIP - implements toggle on Ãproduct variant
ee4231efb0 Add enabled flag on product variant migration
3fe1e5758b Allow to enable and disable product variant
758354dc08 Rename behat feature file
39709bd6aa Toggle variant status when toggling simple product status
f976615df1 Add enabled field in the product variant admin grid
b7e4744666 Use only enabled variants when sorting products by price in shop
9486058e3b Show only enabled variants on configurable product show page
48289d1bac Add enabled field to create_validation_fail_response test json file
3bc8e96c37 Use enabled variants only in DefaultProductVariantResolver
09b2f30146 Use only enabled variants in ProductVariantsPricesProvider
404fd006db Always use first variants in simple product locking listener
5dca15ea14 Fix product variants resolver spec to use getEnabledVariants
6203a634af Add behat scenario to show only enabled variants options in pdp
1ab122c9bb Add docblock to ProductInterface::getEnabledVariants method
8e3d220082 Show only available options in configurable match selection pdp
3c114b5f7c Fix DefaultAvailableProductOptionValuesResolver class name
8543add20a Fix AvailableProductOptionValuesResolverInterface return type
5cb1ed2bdc Add only_avaliable_values option to ProductOptionValueChoiceType
5440852791 Disambiguate inability to select product option value behat step
085090cc89 Remove viewing prices of not available variants behat scenarios
35bfe8c934 Add default value to variant enabled column migration
3d91820353 Revert "Add default value to variant enabled column migration"
a7d78cd881 Fix ProductVariantInterface import in spec
7f3c21007e Add statement to toggleable variant migration to enable existing
96e7e805a9 Minor refactor
5a33bcc27b Remove unused behat setup product context method
8e5735fa7c Remove unnecessary newline
b7081e1e92 Fix AvailableProductOptionValuesResolver class name
2a4cb114df Add available diagonal variant options behat scenario
ced3d30c2f Fix CS
9c93252aee Use data test attribute for variants rows in product show page
7e601a02ea Make available values resolver optional in ProductOptionValueChoiceType
359f481c46 Trigger
6d4ed52692 Add explicit null default value to ProductOptionValueChoiceType
3d26a01ffc Allow to view products with all variants disabled
0140e81b52 Prevent checking out with a disabled product variant in cart
2020-05-24 20:34:55 +02:00
Manuele Menozzi
0140e81b52 Prevent checking out with a disabled product variant in cart 2020-05-23 19:55:50 +02:00
Manuele Menozzi
3d26a01ffc Allow to view products with all variants disabled 2020-05-23 17:25:29 +02:00
Łukasz Chruściel
a06189f6d3
feature #11423 [Shop][Product] Display product original price on product page (no bc break) (JulienLoison, )
This PR was merged into the 1.8-dev branch.

Discussion
----------

| Q               | A
| --------------- | -----
| Branch?         | master
| Bug fix?        | no
| New feature?    | yes
| BC breaks?      | no
| Deprecations?   | yes
| Related tickets | fixes #8258
| License         | MIT

Follows up pull request #11200 by @JulienLoison , fixing backward compatibility break

Commits
-------

cb6426fe0d [Shop][Product] Display product original price on product page
04a7f14585 [Shop][Product] Fix backward compatibility break
b37206e332 Change implementations to new interface when necessary
a139c7f13d Change interface in pricehelper
558b823f63 Add details to price calculator interface deprecation annotation
fd0ffb2e3a Psalm rulset modified for deprecated annotation added
7d405ea006 Fix behat feature to match scenario
ff6075115d Fix errors in psalm config file (xml version + indentations)
078171031d Fix indentation error in psalm config file
2020-05-14 09:21:53 +02:00
Grzegorz Sadowski
895a98de7a
Merge branch '1.7'
* 1.7:
  Fix code review comments
  Error on show product without pricing
  improve DQL in sales provider
  [Docs][Book] Fix order payment state machine diagram
  [Docs][Book] Fix payment state machine diagram
  [Docs][Book] Fix order checkout state machine diagram
  [Admin] Use findOneBy() instead of findAll() to get the first channel
  [Docs][Plus] Add Plus upgrading guide
  add postgres support for getLastYearSalesSummary query
  rewrite sql query in getLastYearSalesSummary to a DQL query in order to use not a hardcoded table name
  inject OrderRepository to SalesDataProvider in order not to use hardcoded table names
2020-05-14 08:03:36 +02:00
Thomas Devos
7d405ea006 Fix behat feature to match scenario 2020-05-13 15:11:43 +02:00
Olivier ALLAIN
f5337ea30f
Error on show product without pricing 2020-05-13 14:25:56 +02:00
Manuele Menozzi
2a4cb114df Add available diagonal variant options behat scenario 2020-05-13 14:25:55 +02:00
Manuele Menozzi
8e5735fa7c Remove unnecessary newline
Co-Authored-By: Łukasz Chruściel <lchrusciel@gmail.com>
2020-05-13 14:25:54 +02:00
Manuele Menozzi
085090cc89 Remove viewing prices of not available variants behat scenarios 2020-05-13 14:25:53 +02:00
Manuele Menozzi
5440852791 Disambiguate inability to select product option value behat step 2020-05-13 14:25:53 +02:00
Manuele Menozzi
6203a634af Add behat scenario to show only enabled variants options in pdp 2020-05-13 14:25:53 +02:00
Manuele Menozzi
09b2f30146 Use only enabled variants in ProductVariantsPricesProvider 2020-05-13 14:25:52 +02:00
Manuele Menozzi
3bc8e96c37 Use enabled variants only in DefaultProductVariantResolver 2020-05-13 14:25:52 +02:00
Manuele Menozzi
9486058e3b Show only enabled variants on configurable product show page 2020-05-13 14:25:52 +02:00
Manuele Menozzi
b7e4744666 Use only enabled variants when sorting products by price in shop 2020-05-13 14:25:52 +02:00
Manuele Menozzi
f976615df1 Add enabled field in the product variant admin grid 2020-05-13 14:25:52 +02:00
Manuele Menozzi
39709bd6aa Toggle variant status when toggling simple product status 2020-05-13 14:25:52 +02:00
Manuele Menozzi
758354dc08 Rename behat feature file 2020-05-13 14:25:52 +02:00
Manuele Menozzi
3fe1e5758b Allow to enable and disable product variant 2020-05-13 14:25:51 +02:00
Łukasz Chruściel
b34e495473
feature #11442 [Feature] Products filtering by channel ()
This PR was merged into the 1.8-dev branch.

Discussion
----------

| Q               | A
| --------------- | -----
| Branch?         | master 
| Bug fix?        | no
| New feature?    | yes
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | 
| License         | MIT

<!--
 - Bug fixes must be submitted against the 1.6 or 1.7 branches (the lowest possible)
 - Features and deprecations must be submitted against the master branch
 - Make sure that the correct base branch is set
-->


Commits
-------

27f312e0cc [Behat] Products filtering by channel
b4d26771c3 filtering products by channel feature
43ddb1750d features more user friendly, pr fixes
a407b571f8 pr fix
7ac9df912f experimental doc block added
2020-05-13 11:56:38 +02:00
SirDomin
a407b571f8 pr fix 2020-05-13 08:26:44 +02:00
Kamil Kokot
f6414bc4bc
bug #11381 [API][ShippingMethod][Product] Improve sort filter and tests (Tomanhez, pamil)
This PR was merged into the 1.8-dev branch.

Discussion
----------

| Q               | A
| --------------- | -----
| Branch?         | master
| Bug fix?        | yes
| New feature?    | yes
| BC breaks?      | no
| Deprecations?   | no
| License         | MIT

Improve sort filter for ShippingMethod:
Before:
<img width="1293" alt="Screenshot 2020-04-16 at 08 51 57" src="https://user-images.githubusercontent.com/39232096/79756107-6976c080-831a-11ea-9703-e9a355f15dc1.png">
After:
<img width="1282" alt="Screenshot 2020-04-20 at 15 18 16" src="https://user-images.githubusercontent.com/39232096/79756051-52d06980-831a-11ea-99b5-289342ed3592.png">

localeCode field is a part of sortFileter and It was misleading
For greater readability:
Before:
<img width="1370" alt="Screenshot 2020-04-17 at 10 25 44" src="https://user-images.githubusercontent.com/39232096/79756084-611e8580-831a-11ea-8ef8-f00898178368.png">
After:
<img width="1313" alt="Screenshot 2020-04-20 at 15 14 20" src="https://user-images.githubusercontent.com/39232096/79756067-57951d80-831a-11ea-9da8-e62cc5540cc0.png">



Commits
-------

02e2abe2f3 Improve UI tests
5e84e48fd8 Improve Api tests
ccddefc837 Apply suggestions from code review
2020-05-12 22:35:11 +02:00
Kamil Kokot
ccddefc837
Apply suggestions from code review
Co-authored-by: Grzegorz Sadowski <sadowskigp@gmail.com>
2020-05-12 22:32:10 +02:00
Julien Loison
cb6426fe0d [Shop][Product] Display product original price on product page 2020-05-12 21:58:45 +02:00
SirDomin
43ddb1750d features more user friendly, pr fixes 2020-05-12 15:21:32 +02:00
Łukasz Chruściel
c5e319511d
feature #11372 [API] Zones (oallain, GSadee)
This PR was merged into the 1.8-dev branch.

Discussion
----------

| Q               | A
| --------------- | -----
| Branch?         | master
| Bug fix?        | no
| New feature?    | yes
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | partially #11250
| License         | MIT

Cover `features/addressing/managing_zones/`

- [x] adding_zone.feature  
- [x] browsing_zone.feature  
- [x] deleting_multiple_zones.feature  
- [x] deleting_zone.feature  
- [x] editing_zone.feature
- [x] zone_unique_code_validation.feature  
- [x] zone_validation.feature





Commits
-------

6a8324bd0e adding zone
3ddbcbf90b browsing zone
e2c514f4be deleting zone
28ae5d484b deleting multiple zones
88cf3236ee editing zone
ba3b88f960 zone unique code validation
e757ce8f62 zone validation
dc69492017 editing zone
faa9da1200 rebase and update after merge #11397
d19fca5cba [API][Zone] Minor fixes after review
b9df4a5f60 [API][Zone] Revert implementation of seeing disable type field scenarios in api context
788c2ea47b [Zone] Move zone validator from ApiBundle to AddressingBundle
2020-05-12 12:35:50 +02:00
Łukasz Chruściel
3678126b04
feature #11417 [API] adding and browsing Channel (oallain, GSadee)
This PR was merged into the 1.8-dev branch.

Discussion
----------

| Q               | A
| --------------- | -----
| Branch?         | master
| Bug fix?        | no
| New feature?    | yes
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | partially #11250 
| License         | MIT

I'll split managing channels in 3 PRs, this is the first one.
Including in this PR: 

- [x] adding_channel.feature
- [x] adding_channel_with_shop_billing_data.feature
- [x] adding_new_channel_with_menu_taxon.feature
- [x] browsing_channels.feature

In the second PR :

- deleting_channel.feature
- deleting_multiple_channels.feature
- editing_channel.feature
- editing_menu_taxon_on_channel.feature
- editing_shop_billing_data_on_channel.feature

And in the last one :

- channel_unique_code_validation.feature
- channel_validation.feature
- not_being_able_to_add_disabled_channel_when_no_other_exist.feature
- not_being_able_to_delete_last_available_channel.feature
- not_being_able_to_disable_last_available_channel.feature
- selecting_currencies_available_for_channel.feature
- selecting_default_tax_zone_for_channel.feature
- selecting_locales_available_for_channel.feature
- selecting_tax_calculation_strategy_for_channel.feature
- toggling_channel.feature

Regards !

Commits
-------

aea199b90f adding and browsing channel
18833cc0fb [API][Channel] Minor fixes for adding and browsing channels PR after review
a3ccd9fd2c [API][Behat][Channel] Rework creating channel with a shop billing data
2020-05-12 12:31:12 +02:00