ankara escort bayan ankara escort bayan ankara escort
Add Custom Content Before ‘Add To Cart’ Archives - Wpdevcodes
sakarya escort sakarya escort sakarya escort bayan sakarya escort bayan serdivan escort kayseri escort webmaster forum

Tag Archives: Add Custom Content Before ‘Add To Cart’

In this tutorial we will show you how to add text before ‘add to cart’ button on single product page using Woocommerce. It’s very simple and get this done easily. Here is the below code, copy the code and paste it into the theme function.php file.

add_action( 'woocommerce_before_add_to_cart_button', 'ark_before_add_to_cart_btn' );
function ark_before_add_to_cart_btn(){
echo '<div class="new-info-box">
<span class="new-shipping-info">';
echo '<strong>';
$on= _e( "Order now: ", "ss" );
echo '</strong>';
echo 'DELIVERY WITHIN 5-7 WORKING DAYS';
echo '</span><span class="new-info-advice" style=""> | LAST ITEMS AVAILABLE</span></div>';
}

 

Here is the output:

Add Text Before Add to Cart

Here is the text: “Order now: DELIVERY WITHIN 5-7 WORKING DAYS | LAST ITEMS AVAILABLE” we have added.