item = $item; $this->cart = $cart; } protected function getEventInfo() { return [ 'item' => $this->item, 'cart' => $this->cart, 'product' => $this->product, 'variant' => $this->variant, ]; } public function render() { $wrapperClassAttributes = [ 'fct_line_item', 'fct_product_id_' . Arr::get($this->item, 'post_id', ''), 'fct_item_id_' . Arr::get($this->item, 'id', ''), 'fct_item_type_' . Arr::get($this->item, 'other_info.payment_type', ''), ]; if (Arr::get($this->item, 'featured_media')) { $wrapperClassAttributes[] = 'fct_has_image'; } $promoPriceOriginal = Arr::get($this->item, 'other_info.promo_price_original', 0); if ($promoPriceOriginal && $promoPriceOriginal > $this->item['unit_price']) { $promoPriceOriginal = $promoPriceOriginal * Arr::get($this->item, 'quantity', 1); } else { $promoPriceOriginal = ''; } ?>
renderImage(); ?>
renderTitle(); ?> renderChildVariants(); ?> getEventInfo()); ?>
getEventInfo()); ?>
item, 'subtotal', 0))); ?> getEventInfo()); ?>
item, 'view_url', ''); $mainTitle = (string) Arr::get($this->item, 'post_title', ''); $subtitle = (string) Arr::get($this->item, 'title', ''); $quantity = Arr::get($this->item, 'quantity', 1); ?>
getEventInfo()); ?> 1): ?>
-
maybeRenderPaymentTypeInfo(); ?> getEventInfo()); ?>
item, 'featured_media'); if (!$image) { return; } $href = Arr::get($this->item, 'view_url', ''); $altText = sprintf( /* translators: %s: product title */ __('Image of %s', 'fluent-cart'), Arr::get($this->item, 'title', __('product', 'fluent-cart'))); ?>
<?php echo esc_attr($altText); ?> <?php echo esc_attr($altText); ?>
item, 'other_info', []); $paymentType = Arr::get($otherInfo, 'payment_type', ''); $itemPrice = Arr::get($this->item, 'unit_price', 0); if (isset($this->item['recurring_discounts'])) { $otherInfo['recurring_discounts'] = $this->item['recurring_discounts']; } if ($paymentType === 'subscription') { $subscriptionInfo = Helper::generateSubscriptionInfo($otherInfo, $itemPrice); $setupFeeInfo = Helper::generateSetupFeeInfo($otherInfo); $trialInfo = Helper::generateTrialInfo($otherInfo); ?>
true]); ?>
item, 'quantity', 1); if ($quantity < 2) { return; } ?>
item, 'child_variants', []); if (empty($childVariants)) { return; } $total = count($childVariants); ?>

2): ?>

2) : ?>