跳至内容
菜单
此问题已终结
1897 查看

Hello, I'm learning how to customise the templates in Enterprise Version to fit our needs.

In the view website_sale.product, I'm trying to show an expected delivery date based on the stock availability. So, if I have 10 of stock and the user selects 3 in the quantity box, it gives a in-stock-delivery-time I have defined. But If user selects 12, then I need to show another value as expected time. My problem is that I don't know how to pick the add_qty value so I can display the field of the expected delivery date to change dynamically, by calculating if my product.qty_available < user.add_qty

Thanks for your help!

形象
丢弃
相关帖文 回复 查看 活动
1
11月 22
3693
0
7月 24
1462
1
12月 23
1710
1
9月 23
1996
1
6月 23
3172