docs/api/Opencart.Catalog.Model.Checkout.Order.html
| extends | Model |
Class Order
Located at catalog\model\checkout\order.php
| Methods |
|---|
| ` |
public
` | `addOrder(array<string, mixed> $data): int`
Add Order
Add Order
| # | | `
public
` | `editOrder(int $order_id, array<string, mixed> $data): void`
Edit Order
Edit Order
| # | | `
public
` | `editTransactionId(int $order_id, string $transaction_id): void`
Edit Transaction ID
Edit Transaction ID
| # | | `
public
` | `editOrderStatusId(int $order_id, int $order_status_id): void`
Edit Order Status ID
Edit Order Status ID
| # | | `
public
` | `editComment(int $order_id, string $comment): void`
Edit Comment
Edit Comment
| # | | `
public
` | `deleteOrder(int $order_id): void`
Delete Order
Delete Order
| # | | `
public
` | `getOrder(int $order_id): array<string, mixed>`
Get Order
Get Order
| # | | `
public
` | `addProduct(int $order_id, array<string, mixed> $data): int`
Add Product
Add Product
| # | | `
public
` | `deleteProducts(int $order_id, int $order_product_id = 0): void`
Delete Products
Delete Products
| # | | `
public
` | `getProduct(int $order_id, int $order_product_id): array<int, array<string, mixed>>`
Get Product
Get Product
| # | | `
public
` | `getProducts(int $order_id): array<int, array<string, mixed>>`
Get Products
Get Products
| # | | `
public
` | `addOption(int $order_id, int $order_product_id, array<string, mixed> $data): void`
Add Option
Add Option
| # | | `
public
` | `deleteOptions(int $order_id, int $order_product_id = 0): void`
Delete Options
Delete Options
| # | | `
public
` | `getOptions(int $order_id, int $order_product_id): array<int, array<string, mixed>>`
Get Options
Get Options
| # | | `
public
` | `addSubscription(int $order_id, int $order_product_id, array<string, mixed> $data): void`
Add Subscription
Add Subscription
| # | | `
public
` | `deleteSubscription(int $order_id, int $order_product_id = 0): void`
Delete Subscription
Delete Subscription
| # | | `
public
` | `getSubscription(int $order_id, int $order_product_id): array<string, mixed>`
Get Subscription
Get Subscription
| # | | `
public
` | `getSubscriptions(array<string, mixed> $data): array<int, array<string, mixed>>`
Get Subscriptions
Get Subscriptions
| # | | `
public
` | `getTotalOrdersBySubscriptionId(int $subscription_id): int`
Get Total Orders By Subscription ID
Get Total Orders By Subscription ID
| # | | `
public
` | `addVoucher(int $order_id, array<string, mixed> $data): int`
Add Voucher
Add Voucher
| # | | `
public
` | `deleteVouchers(int $order_id, int $order_voucher_id = 0): void`
Delete Vouchers
Delete Vouchers
| # | | `
public
` | `getVoucherByVoucherId(int $order_id, int $voucher_id): array<int, array<string, mixed>>`
Get Voucher By Voucher ID
Get Voucher By Voucher ID
| # | | `
public
` | `getVouchers(int $order_id): array<int, array<string, mixed>>`
Get Vouchers
Get Vouchers
| # | | `
public
` | `addTotal(int $order_id, array<string, mixed> $data): void`
Add Total
Add Total
| # | | `
public
` | `deleteTotals(int $order_id): void`
Delete Totals
Delete Totals
| # | | `
public
` | `getTotals(int $order_id): array<int, array<string, mixed>>`
Get Totals
Get Totals
| # | | `
public
` | `addHistory(
int $order_id,
int $order_status_id,
string $comment = '',
bool $notify = false,
bool $override = false,
): void`
Add History
Add History
| # | | `
public
` | `deleteHistory(int $order_id): void`
Delete Order History
Delete Order History
| # |
| Methods inherited from Opencart\System\Engine\Model |
|---|
__construct(),__get(), __set(),__isset() |
| Properties inherited from Opencart\System\Engine\Model |
|---|
$registry |
OpenCart API API documentation generated by ApiGen dev-master