diff --git a/woocommerce/loop/add-to-cart.php b/woocommerce/loop/add-to-cart.php new file mode 100755 index 0000000..1b4f521 --- /dev/null +++ b/woocommerce/loop/add-to-cart.php @@ -0,0 +1,35 @@ +%s', + esc_url( $product->add_to_cart_url() ), + esc_attr( isset( $quantity ) ? $quantity : 1 ), + esc_attr( $product->id ), + esc_attr( $product->get_sku() ), + // TODO: load add to cart button class from customizer? +// esc_attr( isset( $class ) ? $class : 'button' ), + esc_html( $product->add_to_cart_text() ) + ), + $product ); diff --git a/woocommerce/single-product/add-to-cart/simple.php b/woocommerce/single-product/add-to-cart/simple.php new file mode 100755 index 0000000..0e56dd2 --- /dev/null +++ b/woocommerce/single-product/add-to-cart/simple.php @@ -0,0 +1,65 @@ +is_purchasable() ) { + return; +} + +?> + +get_availability(); + $availability_html = empty( $availability['availability'] ) ? '' : '
' . esc_html( $availability['availability'] ) . '
'; + + echo apply_filters( 'woocommerce_stock_html', $availability_html, $availability['availability'], $product ); +?> + +is_in_stock() ) : ?> + + + + + + + +