Class BrightWoocommerceIntegration
Located at wp-bright-woocommerce-integration/bright-woocommerce-integration/bright-woocommerce-integration.php
public static
Boolean
|
#
is_bright_product( WC_Product $product )
Returns true if product has associated linked Bright product ids. |
public static
Boolean
|
#
is_cart_a_probable_license_purchase( )
Returns true if product is a bright product, and one of the following is true: 1. the item quantity is greater than 1. 2. the bright metadata defines a quantity_multiplier. 3. the bright metadata indicates that the product should always be in the form of a license purchase. |
public static
|
|
public static
|
|
public static
|
|
public static
|
|
public static
|
|
public static
|
|
public static
|
|
public static
integer
|
#
determine_quantity( integer $item_quantity, string $bright_course_id, Arrray $bright_metadata )
Returns an integer representing the quantity of the bright course to be purchased. This can be a function of the item quantity and/or bright metadata See also http://help.aura-software.com/defining-bright-metadata-for-a-product/ |
public static
|