How to properly echo filtered product price inside a WooCommerce template function
I have two functions for a project I am working on. One of them modifies a WooCommerce archive layout and the other returns "Call for price" on products that have no price set: // Modify category page layout function woocommerce_after_shop_loop_item_title_short_description() { global $product; if ( ! $product->get_short_description() ) return; ?> <div class="category_description_container" itemprop="description"> <h2><?php the_field('product_title'); ?> <span class="non-bold"><?php the_field('product_subtitle'); ?></span></h2> <div class="category_description"> <?php the_field('category_descri
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.