Skip to content

Commit

Permalink
Update arguments to generate cart in cpt
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed Sep 8, 2024
1 parent 09bc26a commit 2bf610c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mt-cpt.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ) : '<p>' . sprintf( __( 'Visit the <a href="%s">public web site</a> to set up a cart order', 'my-tickets' ), home_url() ) . '</p>';
$order = ( $cart ) ? mt_generate_cart_table( $cart, false, 'confirmation' ) : '<p>' . sprintf( __( 'Visit the <a href="%s">public web site</a> to set up a cart order', 'my-tickets' ), home_url() ) . '</p>';
$total_value = mt_total_cart( $cart, $post_id );
$total = '<strong>' . __( 'Total', 'my-tickets' ) . '</strong>: ' . apply_filters( 'mt_money_format', $total_value );
$order = '<div class="mt-new-order">' . $order . $total . '</div>';
Expand Down

0 comments on commit 2bf610c

Please sign in to comment.