-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[WIP] Simplify product preferences #22471
[WIP] Simplify product preferences #22471
Conversation
This pull request seems to contain new translation strings. I have summarized them below to ease up review:
(Note: this is an automated message, but answering it will reach a real human) |
fa78468
to
9ef1afd
Compare
I fixed those but does it make sense to Display the "%add_to_cart_label%" button when a product has attributes to be in Admin.Shopparameters.Help when it's a label? As of "Leave empty to disable." I changed it from "Leave empty to disable" and moved to Admin.Shopparameters.Help as it's part of help now. Is it okay? |
src/PrestaShopBundle/Form/Admin/Configure/ShopParameters/ProductPreferences/StockType.php
Show resolved
Hide resolved
src/PrestaShopBundle/Form/Admin/Configure/ShopParameters/ProductPreferences/StockType.php
Show resolved
Hide resolved
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.
* button when a product has attributes
I fixed those but does it make sense to Display the "%add_to_cart_label%" button when a product has attributes to be in Admin.Shopparameters.Help when it's a label?
As of "Leave empty to disable." I changed it from "Leave empty to disable" and moved to Admin.Shopparameters.Help as it's part of help now. Is it okay?
You are right, it is a label so it should be located as a feature. I am currently thinking of adapting the wording here because the label and the tooltip are not complementary. + the feature should be disabled by default and right now it is not. Also, this feature is not available for the classic theme and we're supposed to see a help text "Note that this setting does not work with the default theme anymore." in Admin.Shopparameters.Help (see the specs: https://github.com/PrestaShop/prestashop-specs/blob/master/back-office/shop-parameters/product-settings/product-settings-page.md)
@LouiseBonnard what do you think of the following wording?
Label: "Display the "Add to cart" button when a product has attributes" in Admin.Shopparameters.Feature
Tooltip: "By default, the "Add to cart" button is hidden when a product has attributes. You can choose to have it displayed in all cases." in Admin.Shopparameters.Help
Help text : "Note that this setting does not work with the default theme anymore." in Admin.Shopparameters.Help
src/PrestaShopBundle/Form/Admin/Configure/ShopParameters/ProductPreferences/StockType.php
Outdated
Show resolved
Hide resolved
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.
Code is good 👍 waiting for wording decision
So I talked about it with @LouiseBonnard and I think we should just keep the help text: "Note that this setting does not work with the default theme anymore." in Admin.Shopparameters.Help" and get rid of the tooltip (the feature can be specified in the user documentation if needed) By default, the feature should be disabled. |
Added those changes just to confirm this is what you exepected this setting to look like? |
Yes, thank you ! |
src/PrestaShopBundle/Form/Admin/Configure/ShopParameters/ProductPreferences/GeneralType.php
Outdated
Show resolved
Hide resolved
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.
The last modification before approving the wording for this PR. Thank you!
src/PrestaShopBundle/Form/Admin/Configure/ShopParameters/ProductPreferences/GeneralType.php
Outdated
Show resolved
Hide resolved
src/PrestaShopBundle/Form/Admin/Configure/ShopParameters/ProductPreferences/GeneralType.php
Outdated
Show resolved
Hide resolved
src/PrestaShopBundle/Form/Admin/Configure/ShopParameters/ProductPreferences/GeneralType.php
Outdated
Show resolved
Hide resolved
src/PrestaShopBundle/Form/Admin/Configure/ShopParameters/ProductPreferences/PageType.php
Outdated
Show resolved
Hide resolved
src/PrestaShopBundle/Form/Admin/Configure/ShopParameters/ProductPreferences/PageType.php
Outdated
Show resolved
Hide resolved
src/PrestaShopBundle/Form/Admin/Configure/ShopParameters/ProductPreferences/PaginationType.php
Outdated
Show resolved
Hide resolved
src/PrestaShopBundle/Form/Admin/Configure/ShopParameters/ProductPreferences/PaginationType.php
Outdated
Show resolved
Hide resolved
Added those modifications, thanks! |
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.
A simple question about the configuration change
…ctPreferences/GeneralType.php Removed number from error message Co-authored-by: Julie Varisellaz <70583503+Julievrz@users.noreply.github.com>
…ctPreferences/GeneralType.php Removed number from error message Co-authored-by: Julie Varisellaz <70583503+Julievrz@users.noreply.github.com>
…ctPreferences/GeneralType.php Removed number from error message Co-authored-by: Julie Varisellaz <70583503+Julievrz@users.noreply.github.com>
…ctPreferences/GeneralType.php Removed number from error message Co-authored-by: Julie Varisellaz <70583503+Julievrz@users.noreply.github.com>
…ctPreferences/PageType.php Removed number from error message Co-authored-by: Julie Varisellaz <70583503+Julievrz@users.noreply.github.com>
…ctPreferences/PageType.php Removed number from error message Co-authored-by: Julie Varisellaz <70583503+Julievrz@users.noreply.github.com>
…ctPreferences/PaginationType.php Removed number from error message Co-authored-by: Julie Varisellaz <70583503+Julievrz@users.noreply.github.com>
…ctPreferences/PaginationType.php Removed number from error message Co-authored-by: Julie Varisellaz <70583503+Julievrz@users.noreply.github.com>
5cfa3d1
5ed3a5d
to
5cfa3d1
Compare
src/PrestaShopBundle/Controller/Admin/Configure/ShopParameters/ProductPreferencesController.php
Outdated
Show resolved
Hide resolved
…/ProductPreferencesController.php Add then to a translation Co-authored-by: Julie Varisellaz <70583503+Julievrz@users.noreply.github.com>
@@ -37,6 +41,10 @@ | |||
*/ | |||
class GeneralFormDataProvider implements FormDataProviderInterface | |||
{ | |||
/** @todo change error to string once invoices PR merged */ |
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.
Which PR is involved ?
@JevgenijVisockij Please fix PHPCSFixer |
Hey @JevgenijVisockij Kind regards |
Hi @JevgenijVisockij , Since we had no news from you for more than 30 days, I'll close this pull request. Feel free to reopen or open another one if you think it's still relevant. Thanks! |
📓 BC Break
Backwards compatibility break introduced due to extension of TranslationAwareType by PageType and PaginationType. This means if any module extends those types they will get an exception upon upgrading to PS version containing changes in this PR.
This change is