Hello guys,
so, I want when a product has Add to Cart button, also to have a button text, but only when the button appears. Screenshot attached
I've made this code but it seems not to work as i wanted, it steal appears on all listings
<?php if(function_exists('osp_product_to_cart_link')) { ?>
<?php echo osp_product_to_cart_link(); ?>
<div class="box" id="protection">
<div class="point">
<div class="icon i1"><i class="far fa-credit-card"></i></div>
<span><?php _e('Never pay down a deposit in a bank account until you have met the seller, seen signed a purchase agreement.', 'epsilon'); ?></span>
</div>
</div>
<?php } ?>
Any ideas how to solve the code?
Thank you!