Usunięcie plików .DS_Store oraz poprawa obsługi kuponów w klasach ShopOrder i Coupon
This commit is contained in:
@@ -52,7 +52,7 @@ class ShopOrder
|
||||
public static function order_details()
|
||||
{
|
||||
$order = new \shop\Order( (int)\S::get( 'order_id' ) );
|
||||
$coupon = new \shop\Coupon( $order -> coupon_id );
|
||||
$coupon = $order -> coupon_id ? new \shop\Coupon( $order -> coupon_id ) : null;
|
||||
|
||||
return \Tpl::view( 'shop-order/order-details', [
|
||||
'order' => $order,
|
||||
|
||||
Reference in New Issue
Block a user