From 2bf610cb5ec728f0bdd8451ba891b04c94a36c42 Mon Sep 17 00:00:00 2001 From: Joe Dolson Date: Sun, 8 Sep 2024 14:52:41 -0500 Subject: [PATCH] Update arguments to generate cart in cpt --- src/mt-cpt.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mt-cpt.php b/src/mt-cpt.php index 7c009ee..4702c8c 100644 --- a/src/mt-cpt.php +++ b/src/mt-cpt.php @@ -256,7 +256,7 @@ function mt_add_inner_box() { } $cart = mt_get_cart( $cart_id, $cart_transient_id ); // Translators: link to public web site. - $order = ( $cart ) ? mt_generate_cart_table( $cart, 'confirmation' ) : '

' . sprintf( __( 'Visit the public web site to set up a cart order', 'my-tickets' ), home_url() ) . '

'; + $order = ( $cart ) ? mt_generate_cart_table( $cart, false, 'confirmation' ) : '

' . sprintf( __( 'Visit the public web site to set up a cart order', 'my-tickets' ), home_url() ) . '

'; $total_value = mt_total_cart( $cart, $post_id ); $total = '' . __( 'Total', 'my-tickets' ) . ': ' . apply_filters( 'mt_money_format', $total_value ); $order = '
' . $order . $total . '
';