Merge pull request #244 from typeplus/patch-3 - thx @typeplus

Adding AJAX classes to add-to-cart buttons.
This commit is contained in:
Holger 2017-02-03 08:10:59 +01:00 committed by GitHub
commit a73bb10f1a
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ if ( ! defined( 'ABSPATH' ) ) {
global $product;
echo apply_filters( 'woocommerce_loop_add_to_cart_link',
sprintf( '<a rel="nofollow" href="%s" data-quantity="%s" data-product_id="%s" data-product_sku="%s" class="btn btn-outline-primary btn-block">%s</a>',
sprintf( '<a rel="nofollow" href="%s" data-quantity="%s" data-product_id="%s" data-product_sku="%s" class="add_to_cart_button ajax_add_to_cart btn btn-outline-primary btn-block">%s</a>',
esc_url( $product->add_to_cart_url() ),
esc_attr( isset( $quantity ) ? $quantity : 1 ),
esc_attr( $product->id ),