Customizing WooCommerce

Customizing WooCommerce

WooCommerce is a great plugin to sell just about anything online. Once you have it installed, you will most likely want to customize how products are displayed, or rearrange a product title or model number to be displayed.

Before you begin, first create a child theme for your WooCommerce website. This is importn to keep your site from breaking and loosing any changes when the theme is updated. Also make sure it is “WooCommerce” ready.

add_theme_support( ‘woocommerce’ );

Add a view button

<?php
add_action( 'woocommerce_after_shop_loop_item_title', 'wc_add_short_description' );

/**

Add Short Description to Products on Shop Page
 */

function wc_add_short_description() {

	global $product;

	?>

        <div itemprop="description">

           

			 <?php echo "<button type='submit' name='' value='0' class='single_add_to_cart_button button alt'>View</button>";?>

        </div>

	<?php

}
?>