How can I change the default product variant in Debut theme?

Topic summary

Goal: Change the default selected product variant in the Shopify Debut theme from “pack of 1” to “pack of 2.”

  • Current behavior: The product page auto-selects the first variant (“pack of 1”).
  • Proposed approach: Use JavaScript to programmatically select the second variant on page load by triggering the variant change event (reference to jQuery .trigger usage provided).
  • Clarifications requested: The original poster asked which Liquid file and specific code lines to modify to implement this, indicating they need theme-file guidance rather than just a general JS concept.
  • Technical context: “Variant” refers to a product option (e.g., pack size). “Liquid” is Shopify’s templating language; JS/jQuery would handle the on-load event to select the second variant.
  • Status/outcome: No concrete code snippet or file path was provided yet. The thread remains open with an unresolved request for exact implementation steps within the Debut theme.
Summarized with AI on February 3. AI used: gpt-5.

Hi,

I’m using Debut theme, I need to change the default variant selected on my product page. By default “pack of 1” is selected, I need “pack of 2” as my default selected variant.

Here’s my shop URL: https://setu-nutrition.myshopify.com/

Hello @Aliasgar ,

On load of the product page trigger ( JS function ) the 2nd variant in this way 2nd will be selected every time page load. Here you can check how trigger works.

Thanks

Hi, I’m not sure how this can be achieved in liquid. Can you help me out with which line of code to edit and which file to edit?