• Resolved llibke3

    (@llibke3)


    Hi there, I’ve chosen to allow people to create a gift card anywhere from $5 – $500 on my site but I don’t want it to display that range when they’re on the gift card page. Is there a way to hide the price range?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author pimwick

    (@pimwick)

    To customize the price range text, follow these steps:

    1. Download the free Code Snippets plugin (https://www.ads-software.com/plugins/code-snippets/)
    2. Create a new Snippet with the following code:

    function pwgc_variable_price_html( $price_html, $product ) {
        if ( $product->get_type() == 'pw-gift-card' ) {
            $price_html = 'Custom';
        }
    
        return $price_html;
    }
    add_filter( 'woocommerce_variable_sale_price_html', 'pwgc_variable_price_html', 10, 2 );
    add_filter( 'woocommerce_variable_price_html', 'pwgc_variable_price_html', 10, 2 );

    3. Change the ‘Custom’ value to whatever you would like to see.

    Plugin Author pimwick

    (@pimwick)

    Marking this thread as Resolved, best of luck with your store!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘When using “other amount” is there a way to hide the min and max range?’ is closed to new replies.