How to Show product options in product list page in wordpress

In this article, we will recommend some effective methods to show options for the configurable and product options in product list. Check them out! Showing options for Configurable products :-

Open content-product.php file you can find this file at this location :-
wp-content\plugins\woocommerce\templates\content-product.php
Copy this code before end of li and after "do_action( 'woocommerce_after_shop_loop_item_title' )"
<?php	
		remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_title', 5 );
		remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_rating', 10 );
		remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10 );
		remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 20 );
		remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_meta', 40 );
		remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_sharing', 50 );
		do_action( 'woocommerce_single_product_summary' );
	
?>

No comments:

Post a Comment