if isset tm product options?

  • Resolved
    Posted in: Final Price  

  • Member
    ergotopia
    July 19, 2017 at 11:37 pm #31750

    Hi, we want to hide the final price if it is a variation and has tm product options set. How to adjust this code, so its checking if tm product option is set too?

    add_filter( ‘woocommerce_variable_sale_price_html’, ‘rr_variable_price_off’, 20, 2 );
    add_filter( ‘woocommerce_variable_price_html’, ‘rr_variable_price_off’, 20, 2 );
    function rr_variable_price_off ( $price, $product) {
      if ( is_product() && $product->is_type( ‘variable’ )) {
        $price = “”;
        }
      return $price;
    }

    Can I do somethin like
    if ( is_product() && isset(“woocommerce_tm_epo) && $product->is_type( ‘variable’ )) ???

    Thank you for your help!

    Sorry, this forum is for verified users only. Please Login or Register to continue

Comments are closed.