Magento - 动态更改客户税级 ID 以影响现有订单
是否可以为来宾客户动态更新正在处理的订单的 customer_tax_class_id 属性。
我尝试通过结帐/会话模型设置它,但它不会更新。
目标是根据条件将税额重置为 0。使用具有 0 税规则的tax_class_id。
Is it possible to dynamically update the customer_tax_class_id attribute of an oder being processed - for guest customers.
I have tried setting it via the checkout/session model but it will not update.
The goal is to reset the tax amount based upon a condition to 0. Using the tax_class_id which will have a rule of 0 tax.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该在提交订单之前执行此操作,以便用户第一次支付正确的金额(并且不会出现意外)。是否有原因无法提前确定tax_class?
You should do this before the order is submitted, so that the user pays the correct amount the first time (and has no surprises). Is there a reason that you cannot determine the tax_class in advance?