Updated 14 September 2026
On this page
Description
Decides whether the subtotal line is shown in the order table of the {live_summary} merge tag. Since v2.2 the default follows the “Show subtotal in summary” setting of the summary.
A form specific variant exists as well: add _FORMID to the hook name, for example
gotrls_mergetag_display_subtotal_3 for form 3.Parameters
$show_subtotal | Bool. Follows the setting
$form_id | Int
$subtotal | Float. The subtotal amount
Return
Bool
Usage
Copy the below code to the functions.php of your child theme or to your snippet plugin.
<?php
add_filter( "gotrls_mergetag_display_subtotal", "__return_true" ); // Always show the subtotal in the merge tag.
Since
version 2.0.0
Didn’t find what you were looking for?
Or contact support and I will help you out.
