Update add-to-cart

Updates to current Woo source template;

I thought these were Understrap edits, but when looking through file history on Woo repo I dicovered these changes were made by Woo.
This commit is contained in:
Unknown 2018-03-23 12:32:37 -06:00
parent 0f5e9b67da
commit 9a2d8f1753
1 changed files with 2 additions and 4 deletions

View File

@ -23,12 +23,10 @@ if ( ! defined( 'ABSPATH' ) ) {
global $product;
echo apply_filters( 'woocommerce_loop_add_to_cart_link', // WPCS: XSS ok.
sprintf( '<div class="add-to-cart-container"><a href="%s" data-quantity="%s" class="%s product_type_%s single_add_to_cart_button btn btn-outline-primary btn-block %s" %s> %s</a></div>',
sprintf( '<div class="add-to-cart-container"><a href="%s" data-quantity="%s" class="%s btn btn-outline-primary btn-block" %s> %s</a></div>',
esc_url( $product->add_to_cart_url() ),
esc_attr( isset( $args['quantity'] ) ? $args['quantity'] : 1 ),
$product->is_purchasable() && $product->is_in_stock() ? 'add_to_cart_button' : '',
esc_attr( $product->get_type() ),
$product->get_type() == 'simple' ? 'ajax_add_to_cart' : '',
esc_attr( isset( $args['class'] ) ? $args['class'] : 'button' ),
isset( $args['attributes'] ) ? wc_implode_html_attributes( $args['attributes'] ) : '',
esc_html( $product->add_to_cart_text() )
),