different price.php for category
-
Hello,
I’m trying to add custom templates for different categories. I included the following code in my single-product php:<?php if ( has_term( 'CATEGORY', 'product_cat' ) ) { woocommerce_get_template_part( 'content', 'single-product-CUSTOM' ); } else { woocommerce_get_template_part( 'content', 'single-product' ); } ?>it works well so far. But now I want to edit the part wich contains the price information. This is included with the following hook:
do_action('woocommerce_single_product_summary');which referes to price.php
I created a new file called pricecustom.php. But I don’t know how to show the pricecustom.php on the new single-product-CUSTOM pagehope u can help me
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘different price.php for category’ is closed to new replies.