Class OrderActions

Class OrderActions

Package: Extensions\Orders
Category: System
Located at Extensions/Orders/OrderActions.inc.php

Methods summary

public cancelOrder( array $orderIds, BoolType $restockQuantity, BoolType $recalculateShippingStatus, BoolType $resetArticleStatus, BoolType $notifyCustomer, BoolType $sendComment, StringType $comment = null )

Cancels an order. The method use the old logic of the gm_send_orders.php file and will be refactored soon.

public removeOrderById( IdType $orderId, BoolType $restockQuantity = null, BoolType $recalculateShippingStatus = null, BoolType $resetProductStatus = null )

Removes an order. The method use the old logic of the xtc_remove_order function and will be refactored soon.

public bulkPdfInvoices( array $orderIds )

Outputs the concatenated invoice PDFs.

public bulkPdfPackingSlips( array $orderIds )

Outputs the concatenated packing-slip PDFs.

protected _createBulkPdf( array $orderIds, string $type )

Outputs a bulk PDF file through the use of mPDF.

public changeOrderStatus( IdType $orderId, IdType $statusId, StringType $comment, BoolType $notifyCustomer, BoolType $sendParcelTrackingCode, BoolType $sendComment, IdType $customerId = null )
protected _getOrderStatusName( IdType $orderStatusId, IdType $languageId ) : string

Gets the Name of an order status by status ID and language ID

protected _getPdfPermissions( void ) : array

Generate the PDF permissions depending the shop configuration.