New Zenner
- Join Date:
- Dec 2021
- Location:
- Tennessee
- Posts:
- 43
- Plugin Contributions:
- 0
Post #21 by foghead
Here's what happened after I added that code. I don't see a problem in line 165 what am I missing?
[04-Sep-2024 15:44:38 UTC] PHP Parse error: Unclosed '{' on line 165 does not match ')' in /includes/modules/shipping/table.php on line 166
[04-Sep-2024 15:44:38 UTC] Request URI: /index.php?main_page=checkout_shipping, IP address: 152.42.24.4
--> PHP Parse error: Unclosed '{' on line 165 does not match ')' in /includes/modules/shipping/table.php on line 166.
[04-Sep-2024 15:44:38 UTC] Request URI: /index.php?main_page=checkout_shipping, IP address: 152.42.24.4
--> PHP Parse error: Unclosed '{' on line 165 does not match ')' in /includes/modules/shipping/table.php on line 166.
Here's my edited code.
$shipping = 0;
for ($i=0, $n=$size; $i<$n; $i+=2) {
if (round($order_total,9) <= $table_cost[$i]) {
if (strstr($table_cost[$i+1], '%')) {
$shipping = (rtrim($table_cost[$i+1], '%')/100) * $order_total_amount;
} else {
$shipping = $table_cost[$i+1];
}
break;
}
}