How to delete add to cart and link "buy now" button directly to checkout in woocommerce?

3 replies
  • WEB DESIGN
  • |
I want to remove this and redirect "buy now" button directly to checkout cuz this is service (customer only buys one item) and add to cart is stupid...
Any fix for this?
#add #button #buy now #cart #checkout #delete #directly #link #woocommerce
Avatar of Unregistered
  • Profile picture of the author quadagon
    you can do this in the functions.php file but you'll need a bit of coding knowledge.

    If you google something like woocommerce straight to cart you get the php. you will need to check these are compatible with your version of wp and wc.
    Signature
    I've got 99 problems but a niche ain't one
    {{ DiscussionBoard.errors[11030762].message }}
  • Profile picture of the author huan1hoang3
    [DELETED]
    {{ DiscussionBoard.errors[11030772].message }}
  • Profile picture of the author littleArtemis
    You can check the file functions.php in "your theme" and add this code:

    remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart');

    remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart');
    I hope it's helpful
    {{ DiscussionBoard.errors[11211130].message }}
Avatar of Unregistered

Trending Topics