Woocommerce Checkout/ Inegrity Stack

Hi,

I have implemented code on my website in order to add trust badges to the woocommerce checkout page. The code works great but I would like to know if you guys can assist me with placement below the place order button as opposed to its current position. I have tried different things, but it’s sort of racking my brain.

/**
* add stripe logo to WooCommerce checkout page
*/

function njengah_add_siteseal() {

echo '<img src="https://.jpg" alt="alt_text" />';

}

add_action( 'woocommerce_after_checkout_form', 'njengah_add_siteseal');


if ( ! current_user_can( 'manage_options' ) ) {

   show_admin_bar( false );

}

Hello @fantasy_5,

Thanks for writing in!

Please remove this orphaned PHP code from your child theme’s functions.php file:

//Declare the global WooCoomerce Object & Post Object

global $woocommerce, $post;


//Assign the order ID using the $post->ID 
$order = new WC_Order($post->ID);

// Use the getter function to get order ID  

$order->get_id();

Kindly let us know how it goes.

Hi, Ruenel

I removed that line of code, but the image is still in the same spot. No change.

Hey @fantasy_5,

Please update this line: add_action( 'woocommerce_after_checkout_form', 'njengah_add_siteseal');

You can use this instead: add_action( 'woocommerce_checkout_after_order_review', 'njengah_add_siteseal');

Hope this helps.

Hi, Ruenel

Thank you so much! It works! :smile:

Hi @fantasy_5,

Glad that we are able to help you.

Thanks

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.