-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Option to send currency in Google Adwords when using dynamic value #10558
Conversation
@DominicWatts Thank you for this PR. Please take a look at the failed unit and static tests. |
The additional changes to the tests I made aren't quite right and I can't work out what's wrong |
@DominicWatts I will look into those issues and let you know what is wrong shortly. |
…value - Fixes per failed tests
…value - Fixes per failed tests
…value - Fixes per failed tests
@@ -59,6 +64,8 @@ class Data extends \Magento\Framework\App\Helper\AbstractHelper | |||
|
|||
const XML_PATH_CONVERSION_VALUE = 'google/adwords/conversion_value'; | |||
|
|||
const XML_PATH_SEND_CURRENCY = 'google/adwords/send_currency'; |
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.
Please add a docblock to the constant with the description of this setting.
* | ||
* @return boolean | ||
*/ | ||
public function hasSendCurrency() |
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.
This naming is ambiguous, I would suggest looking for more descriptive method name.
/** | ||
* Get Google AdWords conversion value currency | ||
* | ||
* @return float |
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.
Docblock states return type float
however method returns string
or bool
…value - Fixes per failed tests
@magento-team Will this be backported to 2.2? |
Introduces option to send currency in adwords when using dynamic value to cope with multisite scenario where base currency differs between websites
Description
Introduce option to send currency in adwords when using dynamic value. Configurable via backend. Defaults to off.
Fixed Issues (if relevant)
Manual testing scenarios
Contribution checklist