نظرة عامة على المشكلة
عند استخدام WooCommerce Fast Cart مع WPML، يظل إعداد «Button text» لزر سلة التسوق ونص زر [fast_cart text="..."] باللغة الافتراضية في الصفحات المترجمة.
حل بديل مؤقت
- اذهب إلى WPMLإعداداتتكوين XML مخصص، أضف XML التالي واحفظ:
XML
<wpml-config> <shortcodes> <shortcode> <tag>fast_cart</tag> <attributes> <attribute>text</attribute> </attributes> </shortcode> </shortcodes> </wpml-config>
- أضف زر سلة التسوق إلى صفحاتك باستخدام الكود المختصر
[fast_cart text="..."]، وترجم الصفحات. سيُترجم نص الزر بعد ذلك مع الصفحة. - ليس لإعداد «Button text» أي حل بديل مؤقت في الوقت الحالي.