-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Tierprice can't save float percentage value #18651
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
Comments
Hi @Hoszi. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
where @Hoszi do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
@magento-engcom-team give me 2.2.6 instance |
Hi @Hoszi. Thank you for your request. I'm working on Magento 2.2.6 instance for you |
Hi @Hoszi, here is your Magento instance. |
I can reproduce the issue on vanilla Magento instance |
Hi @engcom-backlog-pb. Thank you for working on this issue.
|
@engcom-backlog-pb Thank you for verifying the issue. Based on the provided information internal tickets |
Hi @saphaljha. Thank you for working on this issue.
|
Hi @SikailoISM. Thank you for working on this issue.
|
Hi @novikor. Thank you for working on this issue.
|
Display percentage on PDP in case it is set explicitly.
I am working on this at #dmcdindia1 |
Hi @surbhi-ranosys. Thank you for working on this issue.
|
Hi @ElangoLS. Thank you for working on this issue.
|
Fixed invalid zeros trimming.
…rcentage on PDP in case it is set explicitly.
…lid zeros trimming.
…rcentage on PDP in case it is set explicitly.
…lid zeros trimming.
@Hoszi , please confirm the issue is fixed in |
…rcentage on PDP in case it is set explicitly.
…lid zeros trimming.
Hi @Hoszi. Thank you for your report.
The fix will be available with the upcoming 2.2.10 release. |
Preconditions (*)
Steps to reproduce (*)
Expected result (*)
Actual result (*)
Possible Solution
In
\Magento\Catalog\Model\Product\Attribute\Backend\TierPrice\UpdateHandler.php
and
\Magento\Catalog\Model\Product\Attribute\Backend\TierPrice\SaveHandler.php
private function getPercentage(array $priceRow) { return isset($priceRow['percentage_value']) && is_numeric($priceRow['percentage_value']) ? (int)$priceRow['percentage_value'] : null; }
change the (int) to (float)
In the DB the percentage_value is a decimal field
The text was updated successfully, but these errors were encountered: