ข้ามการนำทาง

Waiting for author

Topic Tags: Compatibility, WCML

Overview of the issue

When using the multicurrency feature from WooCommerce Multilingual with B2BKing, the bulk order page displays incorrect price values after switching languages. While the currency symbol updates to the secondary currency, the numeric value remains in the default currency. This issue is isolated to the bulk order page; prices display correctly elsewhere.

Workaround

Please, make sure of having a full site backup of your site before proceeding.

  • Open the …/wp-content/plugins/b2bking/includes/class-b2bking.php file.
  • Look for line 10409.
  • Replace:
    // 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);
            
  • With:
    // 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);
            

ทิ้งคำตอบไว้

โปรดอยู่ในหัวข้อและเคารพผู้อื่น หากคุณต้องการความช่วยเหลือเกี่ยวกับปัญหาที่ไม่เกี่ยวข้องกับโพสต์นี้ โปรดใช้ฟอรัมสนับสนุนของเราเพื่อเริ่มการสนทนาหรือส่งตั๋ว.

คุณสามารถใช้แท็กเหล่านี้:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>