|
@@ -750,7 +750,12 @@ class Sell
|
|
}
|
|
}
|
|
|
|
|
|
if ($method == 2) {
|
|
if ($method == 2) {
|
|
- $order_data['ps_cash'] = $shop['ps_cash'];
|
|
+ $ps_cash = $shop['ps_cash'];
|
|
|
|
+ if ($shop['free_ps_cash'] && $shop['free_ps_cash'] > 0 && $price >= $shop['free_ps_cash']) {
|
|
|
|
+ $ps_cash = 0;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ $order_data['ps_cash'] = $ps_cash;
|
|
$price += $order_data['ps_cash'];
|
|
$price += $order_data['ps_cash'];
|
|
}
|
|
}
|
|
|
|
|