การแจ้งเตือน
ลบทั้งหมด

[ได้คำตอบแล้ว] ปลั๊กอิน plugins woocommerce-table-rate-shipping Warning: Invalid argument supplied for foreach()

3 โพสต์
2 ผู้ใช้
0 Likes
118 เข้าชม
0
หัวข้อเริ่มต้น

รบกวนสอบถามหน่อยครับ

ปลั๊กอิน plugins woocommerce-table-rate-shipping ขึ้นแบบนี้มีวิธีแก้ไขได้ยังไงบ้างครับ

Warning: Invalid argument supplied for foreach() in /home/customer/www/ชื่อเว็บ.com/public_html/wp-content/plugins/woocommerce-table-rate-shipping/inc/class.calculate-rates.php on line 193

 

 
Win Win หัวข้อเริ่มต้น 21/11/2022 11:36 am

โค้ดในส่วนของไฟล์ที่แจ้ง warning ครับ > ไฟล์ class.calculate-rates.php on line 193

/ compile for return (combine Per Item and Per Class data to one price)
$shipping_options = array();
foreach( $rates as $key => $rate ) {
foreach( $rate as $op_key => $op ) {
if( ! isset( $shipping_options[ $op_key ] ) ) {
$shipping_options[ $op_key ] = $op;
$shipping_options[ $op_key ]['contents_cost'] = $contents_cost;

// Set title to Method Title when left empty
......

1 คำตอบ
0

ส่วนนี้น่าจะแก้เองไม่ได้นะครับ

อาจต้องส่งเรื่องให้ทีมพัฒนาของ plugin woocommerce-table-rate-shipping ดูนะครับ

หรือ อาจต้องลองปิด plugin ตัวอื่นๆ ทั้งหมดูเผื่อชนกัน plugin ตัวอื่นก็พอเป็นไปได้ครับ

Win Win หัวข้อเริ่มต้น 21/11/2022 3:32 pm

@k ขอบคุณมากครับ เดี๋ยวลองหาทางติดต่อทีมพัฒนา plugin ดูครับ

แบ่งปัน: