-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Admin]Admin choose channel in product show page #10483
[Admin]Admin choose channel in product show page #10483
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add a screenshot for case when we have only one channel configured?
features/product/viewing_product_in_admin_panel/viewing_product_for_particular_channel.feature
Outdated
Show resolved
Hide resolved
features/product/viewing_product_in_admin_panel/viewing_product_for_particular_channel.feature
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/AdminBundle/Resources/views/Product/Show/_header.html.twig
Show resolved
Hide resolved
features/product/viewing_product_in_admin_panel/viewing_product_for_particular_channel.feature
Outdated
Show resolved
Hide resolved
features/product/viewing_product_in_admin_panel/viewing_product_for_particular_channel.feature
Outdated
Show resolved
Hide resolved
features/product/viewing_product_in_admin_panel/viewing_product_for_particular_channel.feature
Outdated
Show resolved
Hide resolved
features/product/viewing_product_in_admin_panel/viewing_product_for_particular_channel.feature
Outdated
Show resolved
Hide resolved
features/product/viewing_product_in_admin_panel/viewing_product_for_particular_channel.feature
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/AdminBundle/Resources/views/Product/Show/_header.html.twig
Outdated
Show resolved
Hide resolved
ff39c94
to
e682024
Compare
features/product/viewing_product_in_admin_panel/viewing_product_for_particular_channel.feature
Outdated
Show resolved
Hide resolved
features/product/viewing_product_in_admin_panel/viewing_product_for_particular_channel.feature
Outdated
Show resolved
Hide resolved
e682024
to
8db9372
Compare
src/Sylius/Bundle/AdminBundle/Resources/views/Product/Show/_header.html.twig
Outdated
Show resolved
Hide resolved
8db9372
to
7ae8f96
Compare
features/product/viewing_product_in_admin_panel/viewing_product_for_particular_channel.feature
Outdated
Show resolved
Hide resolved
features/product/viewing_product_in_admin_panel/viewing_product_for_particular_channel.feature
Outdated
Show resolved
Hide resolved
features/product/viewing_product_in_admin_panel/viewing_product_for_particular_channel.feature
Outdated
Show resolved
Hide resolved
features/product/viewing_product_in_admin_panel/viewing_product_for_particular_channel.feature
Outdated
Show resolved
Hide resolved
features/product/viewing_product_in_admin_panel/viewing_product_for_particular_channel.feature
Outdated
Show resolved
Hide resolved
features/product/viewing_product_in_admin_panel/viewing_product_for_particular_channel.feature
Outdated
Show resolved
Hide resolved
c958bb0
to
83fa8b9
Compare
83fa8b9
to
507e221
Compare
src/Sylius/Bundle/AdminBundle/Resources/views/Product/Show/_header.html.twig
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/AdminBundle/Resources/views/Product/Show/_header.html.twig
Outdated
Show resolved
Hide resolved
507e221
to
24dea3d
Compare
src/Sylius/Bundle/AdminBundle/Resources/views/Product/Show/_header.html.twig
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/AdminBundle/Resources/views/Product/Show/_header.html.twig
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/AdminBundle/Resources/views/Product/Show/_header.html.twig
Outdated
Show resolved
Hide resolved
24dea3d
to
71791c9
Compare
@@ -103,12 +103,15 @@ public function storeOperatesOnASingleChannel($currencyCode = null) | |||
* @Given /^the store(?:| also) operates on (?:a|another) channel named "([^"]+)"$/ | |||
* @Given /^the store(?:| also) operates on (?:a|another) channel named "([^"]+)" in "([^"]+)" currency$/ | |||
* @Given the store operates on a channel identified by :code code |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to code, it is soooo much not true. Can you open an issue with it
{ | ||
$channelCode = StringInflector::nameToLowercaseCode($channelName); | ||
$defaultData = $this->defaultChannelFactory->create($channelCode, $channelName, $currencyCode); | ||
|
||
($hostname !== null) ? $defaultData['channel'] = $defaultData['channel']->setHostname($hostname) : null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
($hostname !== null) ? $defaultData['channel'] = $defaultData['channel']->setHostname($hostname) : null; | |
$defaultData['channel']->setHostname($hostname); |
Thank you, Tomasz! 🥇 |
Before clicking:
![Screenshot 2019-07-01 at 10 29 19](https://user-images.githubusercontent.com/39232096/60425503-f23d3800-9bf2-11e9-9b25-a4aecda4fd24.png)
After clicking in several channels:
![Screenshot 2019-07-01 at 10 29 51](https://user-images.githubusercontent.com/39232096/60425551-0bde7f80-9bf3-11e9-9630-7ad5674ab05d.png)
One Channel
![Screenshot 2019-07-03 at 13 42 41](https://user-images.githubusercontent.com/39232096/60591990-ea6ec680-9d9f-11e9-82a4-c9131f568a5e.png)
All channels are disabled in product
![Screenshot 2019-07-04 at 10 01 31](https://user-images.githubusercontent.com/39232096/60649911-50605a00-9e43-11e9-938c-4d7c25af3695.png)