تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1910 أدوات العرض

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
نوفمبر 22
3703
0
يوليو 24
1466
1
ديسمبر 23
1716
1
سبتمبر 23
2000
1
يونيو 23
3174