Thanks to visit codestin.com
Credit goes to github.com

Skip to content

default shipping methods order by position#14940

Merged
jakubtobiasz merged 6 commits into
Sylius:1.12from
StudioWaaz:1.12
May 12, 2023
Merged

default shipping methods order by position#14940
jakubtobiasz merged 6 commits into
Sylius:1.12from
StudioWaaz:1.12

Conversation

@ehibes
Copy link
Copy Markdown
Contributor

@ehibes ehibes commented Apr 14, 2023

Q A
Branch? 1.12 or 1.13
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Related tickets
License MIT

I propose this modification, in order that the default shipping method is selected according to the position of the methods in the admin, even when the customer does not have an address yet.

@ehibes ehibes requested a review from a team as a code owner April 14, 2023 17:06
@Rafikooo
Copy link
Copy Markdown
Contributor

Hello @ehibes ,

Thank you for your contribution. First, please rebase the PR. Second, it would be great if you would add a behat test that covers such a feature 💃
Another question - https://github.com/Sylius/Sylius/pull/14940/files#diff-40553a26e7e394962e1941848b0b41fd720f9edcca361f48c1062632f5355565R42-R43
What's the purpose of this join? 🤔

@ehibes
Copy link
Copy Markdown
Contributor Author

ehibes commented Apr 29, 2023

Hi @Rafikooo, I added bug related behat scenario for @ui and @api.
I removed the join, it was a bad copy/paste.

@jakubtobiasz jakubtobiasz self-assigned this May 1, 2023
NoResponseMate
NoResponseMate previously approved these changes May 9, 2023
…in_cart_summary_based_on_method_position.feature

Co-authored-by: Jan Góralski <[email protected]>
Feature: Viewing a cart summary with the correct default shipping method
In order to see details about my order
As a Visitor
I want see my cart summary with the correct shipping method based on its position
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
I want see my cart summary with the correct shipping method based on its position
I want to see my cart summary with the correct shipping method based on its position

/**
* @Given /^the store(?:| also) allows shipping with "([^"]+)" at position (\d+) with ("[^"]+") fee$/
*/
public function theStoreAllowsShippingMethodWithNameAndPositionAndFee($name, $position, $fee): void
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public function theStoreAllowsShippingMethodWithNameAndPositionAndFee($name, $position, $fee): void
public function theStoreAllowsShippingMethodWithNameAndPositionAndFee(string $name, int $position, $fee): void

@jakubtobiasz jakubtobiasz added Shop ShopBundle related issues and PRs. Bug Confirmed bugs or bugfixes. labels May 12, 2023
@jakubtobiasz jakubtobiasz merged commit 9ab7a66 into Sylius:1.12 May 12, 2023
@jakubtobiasz
Copy link
Copy Markdown
Contributor

Thank you, @ehibes!

jakubtobiasz added a commit that referenced this pull request May 12, 2023
This PR was merged into the 1.12 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.12                |
| Bug fix?        | no                                                       |
| New feature?    | no                                                       |
| BC breaks?      | no                                                       |
| Deprecations?   | no |
| Related tickets | follow up to #14940                       |
| License         | MIT                                                          |

Commits
-------
  [Behat] Minor fixes in ShippingContext
  [Behat] Minor fix in a scenario
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Confirmed bugs or bugfixes. Shop ShopBundle related issues and PRs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants