Skip to content

Country Programs

File: sections/country-programs.liquid

Country Programs

Description

Country Programs Section

This section displays upcoming programs for a specific country in a responsive grid layout. It dynamically fetches and displays program information using the Shopify Storefront API.

Features:

  • Filters programs by country using variant metafields
  • Sorts programs by start date
  • Shows only upcoming programs (filters out past events)
  • Displays program image, title, and date range
  • Responsive design with hover effects

Configuration:

  • Requires a ‘country_name’ setting to be configured in the theme editor
  • Uses custom metafields for:
    • country (variant level)
    • start_date (variant level)
    • end_date (variant level)

@section @customizer

Settings

IDTypeLabelDefaultInfo
country_nametextCountry NameName of the country to display programs for

Usage

This section is referenced in JSON templates and cannot be added via the theme editor.

{% section 'country-programs' %}