Skip to content

Instantly share code, notes, and snippets.

@jameskoster
Created August 16, 2013 09:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jameskoster/6248556 to your computer and use it in GitHub Desktop.
Save jameskoster/6248556 to your computer and use it in GitHub Desktop.
Mystile - add to cart buttons on archives
add_action( 'init', 'jk_mystile_add_to_cart' );
function jk_mystile_add_to_cart() {
add_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10);
}
@richagent
Copy link

I am panicking! I tried to insert this code into my mystile child theme and I apparently totally screwed up and now I am getting an http error 500 message and I cannot do anything. Please HELP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment