รบกวนสอบถามหน่อยครับ
ปลั๊กอิน 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

โค้ดในส่วนของไฟล์ที่แจ้ง 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
......
ส่วนนี้น่าจะแก้เองไม่ได้นะครับ
อาจต้องส่งเรื่องให้ทีมพัฒนาของ plugin woocommerce-table-rate-shipping ดูนะครับ
หรือ อาจต้องลองปิด plugin ตัวอื่นๆ ทั้งหมดูเผื่อชนกัน plugin ตัวอื่นก็พอเป็นไปได้ครับ