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

Currently, web products can be configured with two options:

[show_availability] is a Boolean field that can be checked true/false

[available_threshold] is a float field in which you can enter the threshold qty for showing the available qty (shows qty if less than the threshold).

When the message is displayed on the website product page, it is displayed like this:  Only 5 Units Left in Stock.

For the life of me, I cannot find where that text is generated.  I would like it to read simply: 5 Units in Stock

Please advise where this text is generated, so that I may change the message shown.


الصورة الرمزية
إهمال
أفضل إجابة

Hi,
it has been added from code, if you check this file path, you can see it: https://github.com/odoo/odoo/blob/17.0/addons/website_sale_stock/static/src/xml/website_sale_stock_product_availability.xml

Line 48:



Thanks

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

So how can we change it for our Website? Thank you in advance!

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يونيو 24
3067
0
نوفمبر 24
758
3
أغسطس 24
2522
1
فبراير 24
971
1
فبراير 22
3414