/** * Add subscription details next to subtotal of per-item-priced bundle-type container cart items. * * @param string $subtotal * @param array $cart_item * @param string $cart_item_key * @return string */ public static function show_ppp_bundle_subtotal_details($subtotal, $cart_item, $cart_item_key) { foreach (self::$child_keys_names as $child_keys_name) { if (!empty($cart_item[$child_keys_name])) { if (self::overrides_child_schemes($cart_item)) { $subtotal = WC_Subscriptions_Cart::get_formatted_product_subtotal($subtotal, $cart_item['data'], $cart_item['quantity'], WC()->cart); } } } return $subtotal; }
/** * Add subscription details next to subtotal of per-item-priced bundle-type container cart items. * * @param string $subtotal * @param array $cart_item * @param string $cart_item_key * @return string */ public static function show_ppp_bundle_subtotal_details($subtotal, $cart_item, $cart_item_key) { $child_key = self::has_bundle_type_children($cart_item); if (false !== $child_key) { if (self::overrides_child_schemes($cart_item)) { $subtotal = WC_Subscriptions_Cart::get_formatted_product_subtotal($subtotal, $cart_item['data'], $cart_item['quantity'], WC()->cart); } } return $subtotal; }