Usunięcie plików .DS_Store oraz poprawa obsługi kuponów w szczegółach zamówienia

This commit is contained in:
2025-03-12 08:05:18 +01:00
parent 2184e285b1
commit 344dbe8cfa
6 changed files with 3 additions and 3 deletions

View File

@@ -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,