Confirmation Page
These hooks let developers customize Confirmation Page in the Cost Calculator.
ccb_confirmation_add_button
add_action('ccb_confirmation_add_button', 'add_custom_button', 10, 1);
function add_custom_button($calc_id) {
if($calc_id == 257){ //change 257 to the ID of your calculator
echo '<div>
<button class="calc-secondary" @click.prevent="customButtonFunction">
<span>Custom button</span>
</button>
</div>';
}
}ccb_customize_confirmation_page
ccb_confirmation_custom_button_styles
ccb_confirmation_back_button_styles
ccb_confirmation_pdf_button_styles
wp_ajax_ccb_confirmation_pdf_button_action
wp_ajax_ccb_confirmation_pdf_button_action
wp_ajax_ccb_confirmation_pdf_button_action
wp_ajax_ccb_confirmation_back_button_action
wp_ajax_ccb_confirmation_custom_button_action
Last updated
Was this helpful?

