Installment Price Widget Not Updating on Variant Change (Wokiee Theme)

Topic summary

A developer is experiencing an issue with a custom installment price widget on a Shopify store using the Wokiee theme.

The Problem:

  • The widget correctly displays the product price divided into 4 installments on initial page load
  • When users switch product variants, the main product price updates but the installment widget does not
  • The widget only shows the correct updated price after a manual page refresh

Attempted Solutions:

  • Implemented JavaScript listeners for input[name="id"] and select[name="id"] changes
  • Added listener for variant:changed event
  • Used MutationObserver to detect DOM updates on the price container
  • None of these approaches successfully trigger the widget update

Screenshots provided demonstrate the issue clearly: initial load shows correct installment price, variant change updates main price but not installment price, and refresh finally syncs both prices.

The developer is seeking guidance on which event or hook the Wokiee theme uses internally for variant changes to properly sync the custom widget. One respondent indicated they would need to review the theme code to debug the issue. The discussion remains open with no solution yet provided.

Summarized with AI on October 29. AI used: claude-sonnet-4-5-20250929.

Hi everyone,

I’m working on a Shopify store using the Wokiee theme, and I’ve added a small installment price display widget to the product page. It calculates and displays the price split into four equal parts (for example, to show what a customer would pay per installment).

The issue I’m facing is that the widget works correctly on initial page load, but does not update when switching between product variants — unless I manually refresh the page.

Here’s what I’ve done so far:

  • The widget pulls {{ current_variant.price }} and divides it by 4 to show the installment amount.

  • I’ve added JavaScript that:

    • Listens for changes on input[name=“id”] and select[name=“id”]

    • Listens for a variant:changed event

    • Uses a MutationObserver on the price container to detect DOM updates

Despite all of that, the widget still doesn’t reflect the updated variant price when switching between variants.

My goal:
Ensure that the installment amount updates automatically and correctly when a new variant is selected — ideally using an event or hook that works well with the Wokiee theme’s structure.

Has anyone successfully implemented something similar or knows which event Wokiee uses internally for variant changes? Any guidance would be really appreciated!

Thanks in advance!

First picture describes product on load with product instalment price at the top and product price at the right panel.

Second image that describes when variant was changes. It can be noted that product price changed but instalment price did not.

Third picture describes the desired results, but only after page refresh.

Need to check your theme code to debug the issue