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

Hello,

I'm trying to inform people that they chose more products than we have in stock. What i made now is that they can see if product is available or not by text under the add to cart button. It was easy in cart because product quantity is taken from order line. Problem is in product page. Quantity on this page is held by add_qty input. I don't know how to use this value in "t-if".

My code:

<span t-if="product.virtual_available &gt; 0"><br/><strong>Product available</strong></span>

<span t-if="product.virtual_available &lt;= 0"><br/><strong>Product not available</strong></span>


الصورة الرمزية
إهمال

Did you ever solved this? I'm looking for the same

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يونيو 25
415
2
نوفمبر 24
11810
2
يناير 17
1231
5
يونيو 15
5229
4
أغسطس 25
1093