Create Woocommerce Custom Templates

Copy the template files into your theme folder from the plugin file.

These can be edited individually to match whatever layout you desire.

You can call in each WooCommerce function individually, in order to lay out and display your data that way that you want to.

For example, to display a simple Add to Cart button (without quantity prompt) paste this into your single-product.php where you would like the button to appear:

do_action( 'woocommerce_after_shop_loop_item' );

To add an an Add to Cart button with the quantity prompt, include this code:

do_action('woocommerce_simple_add_to_cart');

 

Leave a Reply

katherine as a flat graphic icon

About Me

I’m an African / Ojibwe First Nations Web Developer living in Winnipeg, Manitoba.

Visit the Tips and Blog to see what I’m working on.