3 votes
Accepted

how to round Discounts (either half of full number) or total of cart

Are you using a custom adjuster for the discount? If yes, then just use round() to round up. ... $num = $adjustment->amount; // 12.48 $adjustment->amount = round($num, 1, PHP_ROUND_HALF_UP); // ...
user avatar
  • 156
2 votes
Accepted

Commerce: Is there any way to give a discount for Product A if the costumer buy 3 Product B?

We will need to uncomment this line to allow |filter used in condition formulas: https://github.com/craftcms/commerce/blob/develop/src/services/Formulas.php#L198 If you do that manually yourself this ...
user avatar
  • 6,682

Only top scored, non community-wiki answers of a minimum length are eligible