Advertisement
majeedraza

WooCommerce - Add content after Add-to-cart button

Apr 30th, 2020
449
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.33 KB | None | 0 0
  1. <?php
  2.   // WooCommerce - Add content after Add-to-cart button
  3.   add_action( 'woocommerce_after_add_to_cart_button', 'add_content_after_addtocart' );
  4.   function add_content_after_addtocart() {
  5.     echo '<div class="second_content">';
  6.     echo '<i class="fas fa-dolly-flatbed"></i>';
  7.     echo '<span>Free Shipping!</span></div>';
  8.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement