Created
November 11, 2024 11:43
-
-
Save unlocomqx/565f6511613b6cda76e2bd74276891d0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// reverse group discount | |
if (isset($reverse_discount)) { | |
$reverse_discount = 1; | |
$group_reduction = (float)\Group::getReduction(Context::getContext()->customer->id); | |
if ($group_reduction > 0) { | |
$reverse_discount = 1 / (1 - $group_reduction / 100); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment