Display product variant instead of price on Shopify gift cards

Hi everyone,

I would like to change the way my gift cards are displayed. I would like to be able to display the product variant instead of the price.

This is the product: https://agustav.is/collections/born/products/gift-card

At the moment the gift card states 6.990 kr or 8.490 kr but I would like it to state:

Alin með viðarenda

or

Alin með messingenda

depending on the product variant chosen.

I’ve gotten so far as to understand that I must place the change in the gift_card.liquid file and most likely in this section:

{% assign initial_value_size = formatted_initial_value | size %}

{% if gift_card.balance != gift_card.initial_value %} {{ gift_card.balance | money }} left {% endif %} {{ formatted_initial_value }} and that the change is probably somewhere along the lines of putting in product.variant somewhere but I am a little lost.... Anyone out there with mean skills that can help ? :slightly_smiling_face:

Hi @AM_V

Hope you’re having a great day!

I just saw that you solved your problem.

Hi Michael,

thank you for replying but I haven’t solved the problem…

If you have any insight as into what might work I would love to hear it :slightly_smiling_face:

1 Like