סקירת התקלה
בעת שימוש בתכונת ריבוי המטבעות של WPML Multilingual & Multicurrency for WooCommerce עם B2BKing, דף ההזמנה המרוכזת מציג ערכי מחיר שגויים לאחר החלפת שפות. בעוד שסמל המטבע מתעדכן למטבע המשני, הערך המספרי נשאר במטבע ברירת המחדל. בעיה זו מוגבלת לדף ההזמנה המרוכזת; המחירים מוצגים כראוי במקומות אחרים.
פתרון עוקף
אנא ודא שיש לך גיבוי מלא של האתר לפני שתמשיך.
- פתח את הקובץ …/wp-content/plugins/b2bking/includes/class-b2bking.php.
- חפש את שורה 10409.
- החלף את:
// apply tiered pricing too $current_price_unit = $results[$product_id.'B2BKINGPRICE']; $current_price_unit = $this->b2bking_tiered_pricing_calculate_value($current_price_unit, $productobj, $value);
- ב:
// apply tiered pricing too $current_price_unit = $results[$product_id.'B2BKINGPRICE']; // WPML Workaround for compsupp-7923 $current_currency = apply_filters('wcml_price_currency', NULL ); $current_price_unit = apply_filters('wcml_raw_price_amount', $current_price_unit, $current_currency); $current_price_unit = $this->b2bking_tiered_pricing_calculate_value($current_price_unit, $productobj, $value);