discounted configurables

This commit is contained in:
merdan 2022-04-23 17:22:59 +05:00
parent 8e703524d7
commit 81af6993bc
5 changed files with 124 additions and 1 deletions

View File

@ -27,7 +27,7 @@ class OrderResource extends JsonResource
return [
'id' => $this->id,
'status' => $this->status,
'status_label' => trans('admin::app.sales.order-status-'.$this->status),
'status_label' => trans('sarga-api::app.orders.order-status-'.$this->status),
'shipping_method' => $this->shipping_method,
'shipping_title' => $this->shipping_title,
'payment_title' => core()->getConfigData('sales.paymentmethods.' . $this->payment->method . '.title'),

View File

@ -16,6 +16,7 @@ class APIServiceProvider extends ServiceProvider
include __DIR__ . '/../Http/helpers.php';
$this->loadRoutesFrom(__DIR__.'/../Http/routes.php');
$this->loadTranslationsFrom(__DIR__ . '/../Resources/lang', 'sarga-api');
$router->aliasMiddleware('scrap', Scrap::class);
}

View File

@ -0,0 +1,72 @@
<?php
return [
'orders' => [
'title' => 'Orders',
'view-title' => 'Order #:order_id',
'cancel-btn-title' => 'Cancel',
'shipment-btn-title' => 'Ship',
'invoice-btn-title' => 'Invoice',
'info' => 'Information',
'invoices' => 'Invoices',
'shipments' => 'Shipments',
'order-and-account' => 'Order and Account',
'order-info' => 'Order Information',
'order-date' => 'Order Date',
'order-status' => 'Order Status',
'order-status-canceled' => 'Canceled',
'order-status-closed' => 'Closed',
'order-status-fraud' => 'Fraud',
'order-status-pending' => 'Pending',
'order-status-pending-payment' => 'Pending Payment',
'order-status-processing' => 'Processing',
'order-status-success' => 'Completed',
'channel' => 'Channel',
'customer-name' => 'Customer Name',
'email' => 'Email',
'contact-number' => 'Contact Number',
'account-info' => 'Account Information',
'address' => 'Address',
'shipping-address' => 'Shipping Address',
'billing-address' => 'Billing Address',
'payment-and-shipping' => 'Payment and Shipping',
'payment-info' => 'Payment Information',
'payment-method' => 'Payment Method',
'currency' => 'Currency',
'shipping-info' => 'Shipping Information',
'shipping-method' => 'Shipping Method',
'shipping-price' => 'Shipping Price',
'products-ordered' => 'Products Ordered',
'SKU' => 'SKU',
'product-name' => 'Product Name',
'qty' => 'Qty',
'item-status' => 'Item Status',
'item-ordered' => 'Ordered (:qty_ordered)',
'item-invoice' => 'Invoiced (:qty_invoiced)',
'item-shipped' => 'Shipped (:qty_shipped)',
'item-canceled' => 'Canceled (:qty_canceled)',
'item-refunded' => 'Refunded (:qty_refunded)',
'price' => 'Price',
'total' => 'Total',
'subtotal' => 'Subtotal',
'shipping-handling' => 'Shipping & Handling',
'discount' => 'Discount',
'tax' => 'Tax',
'tax-percent' => 'Tax Percent',
'tax-amount' => 'Tax Amount',
'discount-amount' => 'Discount Amount',
'grand-total' => 'Grand Total',
'total-paid' => 'Total Paid',
'total-refunded' => 'Total Refunded',
'total-due' => 'Total Due',
'cancel-confirm-msg' => 'Are you sure you want to cancel this order ?',
'refund-btn-title' => 'Refund',
'refunds' => 'Refunds',
'comment-added-success' => 'Comment addded successfully.',
'comment' => 'Comment',
'submit-comment' => 'Submit Comment',
'notify-customer' => 'Notify Customer',
'customer-notified' => ':date | Customer <b>Notified</b>',
'customer-not-notified' => ':date | Customer <b>Not Notified</b>',
'transactions' => 'Transactions',
],
];

View File

@ -0,0 +1,25 @@
<?php
return [
'orders' => [
'title' => 'Orders',
'view-title' => 'Order #:order_id',
'cancel-btn-title' => 'Cancel',
'shipment-btn-title' => 'Ship',
'invoice-btn-title' => 'Invoice',
'info' => 'Information',
'invoices' => 'Invoices',
'shipments' => 'Shipments',
'order-and-account' => 'Order and Account',
'order-info' => 'Order Information',
'order-date' => 'Order Date',
'order-status' => 'Order Status',
'order-status-canceled' => 'Ýatyrylan',
'order-status-closed' => 'Gaýtarylan',
'order-status-fraud' => 'Näsaz',
'order-status-pending' => 'Garaşylýar',
'order-status-pending-payment' => 'Tölege garaşylýar',
'order-status-processing' => 'Işlenilýär',
'order-status-success' => 'Tamamlandy',
],
];

View File

@ -0,0 +1,25 @@
<?php
return[
'orders' => [
'title' => 'Orders',
'view-title' => 'Order #:order_id',
'cancel-btn-title' => 'Cancel',
'shipment-btn-title' => 'Ship',
'invoice-btn-title' => 'Invoice',
'info' => 'Information',
'invoices' => 'Invoices',
'shipments' => 'Shipments',
'order-and-account' => 'Order and Account',
'order-info' => 'Order Information',
'order-date' => 'Order Date',
'order-status' => 'Order Status',
'order-status-canceled' => 'Ýatyrylan',
'order-status-closed' => 'Gaýtarylan',
'order-status-fraud' => 'Näsaz',
'order-status-pending' => 'Garaşylýar',
'order-status-pending-payment' => 'Tölege garaşylýar',
'order-status-processing' => 'Işlenilýär',
'order-status-success' => 'Tamamlandy',
],
];