Button to add to the cart without the need to enter the product?

David,

Whether or not the add to cart button is shown in the product list by category depends on the theme you are using for your WooCommerce.

Try editing the wp-content/themes/helena_wp/woocommerce/content-product.php file. After backing it up, locate the line with this code:

Just below, add this other code:

add_to_cart_url() ), esc_attr( isset( $args ) ? $args : 1 ), esc_attr( isset( $args ) ? $args : ‘button’ ), isset( $args ) ? wc_implode_html_attributes( $args ) : ”, esc_html( $product->add_to_cart_text() ) ), $product, $args ); ?>

In this way, the add to cart button should be displayed above the details button.

AnswerQuote

Answered: 02/23/2018 3:25 pm

See also  Product Novelty Label
Loading Facebook Comments ...
Loading Disqus Comments ...