Home Forums Space themes support forum How can I add purchase guarantee HTML Block to checkout page

How can I add purchase guarantee HTML Block to checkout page

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #342842

    fulbrightnguyen
    Participant

    Hello team,
    How can I add purchase guarantee HTML Block to checkout page. Show me how to automatically apply to all products. Thank you!

    Attachments:
    You must be logged in to view attached files.
    #343112

    Artem Temos
    Keymaster

    Hello,

    Try to add the following PHP code snippet to the child theme functions.php file to do this

    if ( ! function_exists( 'xts_add_purchase_checkout' ) ) {
       function xts_add_purchase_checkout() {
          echo do_shortcode( '[xts_html_block id="871"]' );
       }
    
       add_action( 'woocommerce_review_order_before_submit', 'xts_add_purchase_checkout' );
    }

    Kind Regards

Viewing 2 posts - 1 through 2 (of 2 total)