Alle handleidingen
GemiddeldMagento 2.4.x30 minuten

Configurable products aanmaken en beheren in Magento 2

Stap-voor-stap handleiding voor het aanmaken van configurable products. Van attribuut configuratie tot variant beheer.

Coding.nl5 views
Configurable products aanmaken en beheren in Magento 2

Wat zijn configurable products?

Configurable products zijn producten met variaties. Een klant selecteert opties (maat, kleur) en krijgt de juiste productvariant. Achter de schermen is elke variant een apart simple product.

Stap 1: Configurable attributen aanmaken

Voordat je configurable products maakt, heb je attributen nodig die als configuratie-optie dienen.

Attribuut aanmaken

  • Ga naar Stores > Attributes > Product
  • Klik Add New Attribute
  • Vul de properties in:
  • - Default Label: Maat

    - Catalog Input Type: Dropdown

    - Values Required: Yes

    Attribuut configureren voor configurable products

  • Onder Advanced Attribute Properties:
  • - Scope: Global

    - Use for Promo Rules: Yes

  • Onder Manage Options:
  • - Voeg opties toe: S, M, L, XL

  • Onder Storefront Properties:
  • - Use in Layered Navigation: Filterable (with results)

    - Use for Configurable Product: Yes (BELANGRIJK!)

    Attribuut aan attribuutset toevoegen

  • Ga naar Stores > Attributes > Attribute Set
  • Open je attribuutset (bijv. Default)
  • Sleep het nieuwe attribuut naar een groep
  • Stap 2: Simple products aanmaken (varianten)

    Elke variant van je configurable product is een simple product.

    Variant aanmaken

  • Ga naar Catalog > Products
  • Klik Add Product > Simple Product
  • Vul productgegevens in:
  • - Product Name: T-shirt Blauw Maat M

    - SKU: TSHIRT-BLAUW-M

    - Price: 29.95

    - Quantity: 50

  • Stel de configurable attributen in:
  • - Kleur: Blauw

    - Maat: M

    Alle varianten aanmaken

    Herhaal voor elke combinatie. Voor een t-shirt met 3 kleuren en 4 maten heb je 12 simple products nodig.

    Tip: Gebruik product import voor bulk aanmaken.

    Stap 3: Configurable product aanmaken

    Nieuw configurable product

  • Ga naar Catalog > Products
  • Klik Add Product > Configurable Product
  • Vul basis informatie in:
  • - Product Name: T-shirt Basis

    - SKU: TSHIRT-BASIS

    - Price: 0 (wordt bepaald door varianten)

    Configuraties toevoegen

  • Scroll naar Configurations sectie
  • Klik Create Configurations
  • Wizard stap 1 - Select Attributes:
  • - Selecteer Kleur en Maat

    - Klik Next

  • Wizard stap 2 - Attribute Values:
  • - Selecteer welke waarden te gebruiken

    - Klik Next

  • Wizard stap 3 - Bulk Images, Price, Quantity:
  • - Kies hoe je images/prijzen wilt instellen

    - Opties: per attribuut waarde of per product

  • Wizard stap 4 - Summary:
  • - Review je configuratie

    - Klik Generate Products

    Bestaande simple products koppelen

    Als je al simple products hebt:

  • In de Configurations sectie
  • Klik Add Configurations Manually
  • Selecteer bestaande simple products
  • Wijs attributen toe
  • Stap 4: Prijzen configureren

    Prijzen per variant

    Elke simple product (variant) kan een eigen prijs hebben:

    • Open de simple product
    • Wijzig de prijs
    • Sla op

    Prijs aanpassingen via configurable

    In het configurable product:

  • Ga naar Configurations sectie
  • Pas prijzen aan per variant in de tabel
  • Tier prices

    Voor staffelkortingen, stel tier prices in op de simple products:

  • Open simple product
  • Ga naar Advanced Pricing
  • Voeg tier prices toe
  • Stap 5: Swatches configureren

    Swatches zijn visuele selectoren voor attributen zoals kleur.

    Text swatch aanmaken

  • Ga naar Stores > Attributes > Product
  • Open het attribuut (bijv. Maat)
  • Zet Catalog Input Type op: Visual Swatch of Text Swatch
  • Onder Manage Options:
  • - Voor Text Swatch: vul de swatch tekst in (S, M, L)

    Visual swatch (kleur)

  • Open het Kleur attribuut
  • Zet Catalog Input Type op: Visual Swatch
  • Onder Manage Options:
  • - Klik op het swatch veld per optie

    - Kies: Color (kleurpicker) of Upload image

    Stap 6: Afbeeldingen instellen

    Afbeeldingen per variant

  • Open de simple product variant
  • Upload product afbeeldingen
  • Stel roles in (Base, Small, Thumbnail)
  • Afbeeldingen wisselen bij selectie

    Als je wilt dat de afbeelding wisselt bij kleur selectie:

  • Zorg dat elke kleur-variant eigen afbeeldingen heeft
  • In het configurable product worden deze automatisch getoond
  • Afbeeldingen op configurable level

    Upload ook afbeeldingen op het parent product voor:

    • Category listings
    • Search results
    • Fallback wanneer variant geen afbeelding heeft

    Veelvoorkomende problemen

    Variant verschijnt niet

    Oorzaak: Simple product niet correct geconfigureerd

    Checklist:

    • Status: Enabled
    • Visibility: Not Visible Individually
    • Attributen correct ingesteld
    • Voorraad: In Stock

    Prijs toont niet correct

    Oorzaak: Prijsconfiguratie issues

    Oplossing:

    • Check prijs op simple product level
    • Reindex prices: bin/magento indexer:reindex catalog_product_price

    Swatches werken niet

    Oorzaak: Attribuut niet correct geconfigureerd

    Checklist:

    • Input type is Visual/Text Swatch
    • Swatch waarden zijn ingesteld
    • Cache geflushed

    Best practices

    Naamgeving

    Gebruik consistente naamgeving:

    • Parent: "T-shirt Premium"
    • Children: "T-shirt Premium - Blauw M"

    SKU structuur

    Logische SKU's maken beheer makkelijker:

    • Parent: TSH-PREM
    • Child: TSH-PREM-BLU-M

    Visibility

    Zet simple product visibility op "Not Visible Individually" zodat ze niet los vindbaar zijn.

    Afbeeldingen

    Upload altijd afbeeldingen op zowel parent als children voor consistente weergave overal in de shop.

    Deel deze handleiding:

    Info

    Niveau
    Gemiddeld
    Duur
    30 minuten
    Magento
    2.4.x
    PHP
    8.1+
    Views
    5

    Vereisten

    • Kennis van Magento 2 producttypen
    • Toegang tot Magento 2 admin panel

    Wat je leert

    • Configurable attributen aanmaken
    • Simple products koppelen als varianten
    • Prijzen en voorraad per variant instellen
    • Swatches voor kleur en maat configureren

    Categorieën

    Hulp nodig?

    Kom je er niet uit? Onze Magento experts helpen je graag.

    Neem contact op

    Professionele hulp nodig bij Magento?

    Onze Magento experts bouwen, optimaliseren en onderhouden je webshop.