aimeos / ai-admin-jqadm

Aimeos e-commerce Vue.js+Bootstrap based admin interface
https://aimeos.org
GNU Lesser General Public License v3.0
184 stars 43 forks source link

reduction.percent doesn't work #183

Closed akropivko closed 3 years ago

akropivko commented 3 years ago

Environment

  1. Version 2020.10.6
  2. Integration - Laravel
  3. System - Windows

I've added Reduction Decorator to PrePay provider and set 3% reduction, see the screenshot below Screenshot_44

But no reduction in the basket - screenshot Screenshot_45

Probably this is because I can't input the reduction value in the same format as it is in manual? - reduction.percent : {"EUR":3}

But the admin backend doesn't allow me to input something except number - screenshot Screenshot_46

Could you please check?

aimeos commented 3 years ago

The description of the reduction service decorator was misleading because the decorator only reduces the delivery or payment costs and not the configured percentage on the basket total value. Furthermore, the example was wrong and the percentage is a number only. We fixed both in the documentation:

https://aimeos.org/docs/latest/manual/service-decorators/#reduction

Furthermore, in dev-master we've decided to implement the reduction service decorator as you have expected it to use the basket total and add a rebate based on the whole value but we can't backport that to 2020.10 LTS because it's a breaking change.

akropivko commented 3 years ago

thanks!