Checkout logic
This commit is contained in:
@@ -91,7 +91,7 @@ function wiaas_get_object_attached_documents($object_id) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve all documents for single wiaas package
|
||||
* Retrieve all documents for single standard wiaas package
|
||||
*
|
||||
* this includes:
|
||||
* - package linked documents
|
||||
@@ -104,7 +104,7 @@ function wiaas_get_object_attached_documents($object_id) {
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
function wiaas_get_all_package_documents($package, $only_visible = false) {
|
||||
function wiaas_get_standard_package_documents($package, $only_visible = false) {
|
||||
// retrieve addons and option packages ids
|
||||
$all_package_ids = array_merge(
|
||||
Wiaas_Package_Addon::get_package_addons_ids($package),
|
||||
@@ -143,14 +143,14 @@ function wiaas_get_all_package_documents($package, $only_visible = false) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve all documents for single order package item
|
||||
* Retrieve all documents for single order standard package item
|
||||
*
|
||||
* @param WC_Order $order
|
||||
* @param int $package_item_id
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
function wiaas_get_package_order_item_documents($order, $package_item_id) {
|
||||
function wiaas_get_standard_package_order_item_documents($order, $package_item_id) {
|
||||
|
||||
$order_items = $order->get_items( 'line_item' );
|
||||
$package_order_item = $order->get_item($package_item_id);
|
||||
|
||||
Reference in New Issue
Block a user