Hide Checkout Button after "Add to Cart"
-
Hi dear,
As i am displaying a product on my checkout cart page and i want to hide the checkout button after user added this product in the cart. I used
if( edd_is_checkout() ) {
$button_display = ‘style=”display:none;”‘;
$checkout_display = ‘style=”display:none;”‘;}else{
$button_display = ‘style=”display:none;”‘;
$checkout_display = ”;}
in easy-digital-downloads/includes/template-functions.php
and it works very nicely but i was wondering as this is not a good idea to update the plugin files and next update of EDD may remove my customization….
So is there any way i can add this function to my child theme functions.php or anything else?
https://www.ads-software.com/plugins/easy-digital-downloads/
- The topic ‘Hide Checkout Button after "Add to Cart"’ is closed to new replies.