if isset tm product options?

This topic is: Resolved
  • Resolved
    Posted in: Final Price  
  • ergotopia
    #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!

    ThemeCompleteSite Admin
    #31752
    You must be logged in to see this reply.
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

No access!

You do not have permission to post to this forum.