Home Forums Hitek Support Forum How can I add purchase guarantee HTML Block to checkout page

This topic contains 1 reply, has 2 voices, and was last updated by Artem Temos Artem Temos 2 weeks, 1 day ago.

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

    fulbrightnguyen
    Customer

    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

    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)

You must be logged in to reply to this topic.