Rename the amount labels on the product page (Variations drop-down menu)

WooCommerce has a hook that you can use to change labels for the dropdown menu. It is called woocommerce_variation_option_name

To use this hook, you need to first turn off price formatting for the gift cards. Follow these steps:

1. Log into your WordPress admin area.
2. Click on Pimwick Plugins -> PW Gift Cards -> Settings
3. Uncheck “Format Prices” and click save
4. Edit the gift card product, delete the existing options and re-add them.
5. Save the product

Now you can map the current value to the name you want to see by following these steps:

1. Download the free Code Snippets plugin:
2. Create a new Snippet with the following code:

function pw_gift_cards_woocommerce_variation_option_name( $name, $option_name, $attribute_name, $product_object ) {
    if ( is_a( $product_object, 'WC_Product_PW_Gift_Card' ) ) {
        $map = array(
            '100' => 'Gold',
            '500' => 'Diamond',
            '1000' => 'Platinum',

        if ( isset( $map[ $name ] ) ) {
            return $map[ $name ];

    return $name;
add_filter( 'woocommerce_variation_option_name', 'pw_gift_cards_woocommerce_variation_option_name', 10, 4 );

If you want to rename the “Other Amount” option, follow the instructions in this guide:

To change the amount that is displayed in the gift card email, see this guide:

Skip to content