discounted configurables
This commit is contained in:
parent
8e703524d7
commit
81af6993bc
|
|
@ -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'),
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
],
|
||||
];
|
||||
|
|
@ -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',
|
||||
|
||||
],
|
||||
];
|
||||
|
|
@ -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',
|
||||
|
||||
],
|
||||
];
|
||||
Loading…
Reference in New Issue