• Resolved ewingkeit

    (@ewingkeit)


    Hello, I have detected an error. When you are on the shop and see the product list, all product after the first Coming Soon product have the price hide even if they are not coming soon.

    Hope you will fix that ??

Viewing 1 replies (of 1 total)
  • Thread Starter ewingkeit

    (@ewingkeit)

    Here the correction : class-coming-soon-frontend.php

    /**
    	 * Hide - Show Price in loop.
    	 *
    	 * @return void
    	 */
    	public function loop_hide_price() {
    		global $product;
    		$product_id = $product->get_id();
    		$settings   = self::get_settings( $product_id );
    		if ( self::is_product_coming_soon( $product_id ) && ( 'yes' === $settings['hide_price'] ) ) {
    			remove_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_price', 10 );
    		} else {
    			add_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_price', 10 );
    		}
    	}
Viewing 1 replies (of 1 total)
  • The topic ‘Error on price hiding’ is closed to new replies.