Skip to content

Commit

Permalink
Woo Checkout: compatibilty added for woocommerce subscription plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
jakaria-istauk committed Aug 27, 2024
1 parent 08ed363 commit a59735b
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -538,13 +538,16 @@ public static function checkout_order_review_default($settings) {
</div>

<?php
if( class_exists('WC_Subscriptions_Cart') && (\WC_Subscriptions_Cart::cart_contains_subscription())) {
$has_subscription = class_exists('WC_Subscriptions_Cart') && (\WC_Subscriptions_Cart::cart_contains_subscription());
if( $has_subscription ) {
echo '<table class="recurring-wrapper">';
do_action( 'eael_display_recurring_total_total' );
echo '</table>';
}
do_action( 'woocommerce_review_order_after_order_total' );
if( $has_subscription ){
echo '</table>';
}
?>
<?php do_action( 'woocommerce_review_order_after_order_total' ); ?>
</div>
</div>
</div>
Expand Down

0 comments on commit a59735b

Please sign in to comment.