Alle handleidingen
GemiddeldMagento 2.4.x35 minuten

Magento 2 prijsregels: winkelwagen- en cataloguskortingen instellen

Leer hoe je effectieve promoties opzet met cart price rules en catalog price rules. Van percentagekortingen tot BOGO deals.

Coding.nl9 views
Magento 2 prijsregels: winkelwagen- en cataloguskortingen instellen

Twee soorten prijsregels

Magento kent twee soorten prijsregels die elk een ander doel dienen:

Catalog Price Rules: Pas prijzen aan in de catalogus (vóór de winkelwagen)

Cart Price Rules: Pas prijzen aan in de winkelwagen (tijdens checkout)

Catalog Price Rules

Wat zijn ze?

Catalog price rules passen productprijzen aan voordat ze in de winkelwagen komen. De korting is direct zichtbaar op product- en categoriepagina's.

Navigatie

Marketing > Promotions > Catalog Price Rules

Nieuwe regel aanmaken

  • Klik Add New Rule
  • Rule Information:
  • - Rule Name: "Zomerkorting Schoenen"

    - Status: Active

    - Websites: Selecteer websites

    - Customer Groups: Alle of specifiek

    - Date range: Start en einddatum

  • Conditions (welke producten):
  • ``

    If ALL of these conditions are TRUE:

    - Category is 5 (Schoenen)

    - Price is greater than 50

    `

  • Actions (wat gebeurt er):
  • - Apply: By Percentage of Original

    - Discount Amount: 20

    - Discard subsequent rules: Optioneel

    Condition voorbeelden

    • Categorie
    • Attribuut waarden (merk, kleur)
    • Prijs range
    • SKU pattern

    Belangrijk

    Na aanmaken moet je de catalog_product_price indexer reindexen voor prijzen te zien zijn.

    Cart Price Rules

    Wat zijn ze?

    Cart price rules geven korting in de winkelwagen. Perfect voor kortingscodes, gratis verzending, en complexere promoties.

    Navigatie

    Marketing > Promotions > Cart Price Rules

    Nieuwe regel aanmaken

  • Klik Add New Rule
  • Rule Information:
  • - Rule Name: "KORTING20"

    - Status: Active

    - Websites: Selecteer websites

    - Customer Groups: Alle of specifiek

    - Coupon: Specific Coupon

    - Coupon Code: KORTING20

    - Uses per Coupon: 1000

    - Uses per Customer: 1

    - Date range: Start en einddatum

  • Conditions (wanneer toepassen):
  • `

    If ALL of these conditions are TRUE:

    - Subtotal is greater than 50

    `

  • Actions (wat gebeurt er):
  • - Apply: Percent of product price discount

    - Discount Amount: 20

    - Maximum Qty Discount: 0 (onbeperkt)

    - Discount Qty Step: 0

    - Apply to Shipping: No

    - Free Shipping: No

    - Discard subsequent rules: Yes

    Coupon types

    No Coupon: Regel geldt automatisch

    Specific Coupon: Eén vaste code

    Auto-generated: Meerdere unieke codes genereren

    Auto-generated coupons

  • Sla regel op met "Auto-generated" coupon type
  • Open regel opnieuw
  • Tab Manage Coupon Codes
  • Stel in:
  • - Qty: 100

    - Code Length: 8

    - Code Format: Alphanumeric

    - Prefix: ZOMER-

  • Klik Generate
  • Geavanceerde promoties

    Buy X Get Y (BOGO)

  • Maak Cart Price Rule
  • Actions:
  • - Apply: Buy X get Y free (discount amount is Y)

    - Discount Amount: 1 (gratis product)

    - Discount Qty Step (Buy X): 2 (koop 2)

    - Maximum Qty Discount: 1

    Resultaat: Koop 2, krijg 1 gratis

    Gratis verzending boven bedrag

  • Maak Cart Price Rule
  • Conditions: Subtotal > 50
  • Actions:
  • - Apply: Percent of product price discount

    - Discount Amount: 0

    - Free Shipping: For shipment with matching items

    Korting op specifieke producten in cart

  • Maak Cart Price Rule
  • Conditions (cart level): Subtotal > 100
  • Actions - Apply to:
  • - Condition: Category is Accessories

    - Dit geeft korting alleen op accessories

    Staffelkorting

    Maak meerdere regels met prioriteit:

    • Regel 1: Subtotal > 50 → 5% korting (Priority 1)
    • Regel 2: Subtotal > 100 → 10% korting (Priority 2)
    • Regel 3: Subtotal > 200 → 15% korting (Priority 3)

    Zet "Discard subsequent rules" op Yes zodat alleen de hoogste toepast.

    Condities uitgelegd

    Cart Attribute condities

    • Subtotal (incl/excl tax)
    • Total Items Quantity
    • Total Weight
    • Payment Method
    • Shipping Method
    • Shipping Region/Country

    Product Attribute condities

    Op rule level of action level:

    • Category
    • SKU
    • Attribute Set
    • Custom attributen

    Combineren met AND/OR

    `

    If ANY of these conditions are TRUE:

    If ALL of these conditions are TRUE:

    - Category is Kleding

    - Price is greater than 30

    If ALL of these conditions are TRUE:

    - Category is Schoenen

    `

    Labels en weergave

    Korting label

    In Cart Price Rule onder Actions:

    • Default Rule Label: "20% Korting"
    • Store View Specific Labels: Per taal

    Dit label verschijnt in de winkelwagen bij de korting.

    Prijs weergave catalog rules

    Bij catalog rules kun je de "was/nu" prijs tonen:

    • Stores > Configuration > Sales > Catalog
    • Enable "Show As Low As Price in Catalog"

    Testing en troubleshooting

    Regel werkt niet

    Checklist:

    • Status: Active
    • Datum range correct
    • Customer group ingesteld
    • Website geselecteerd
    • Condities kloppen
    • Cache geflushed

    Korting stapelt niet

    Check "Discard subsequent rules" instelling. Als Yes, stoppen latere regels.

    Coupon niet geaccepteerd

    • Code correct gespeld (case sensitive!)
    • Uses limit niet bereikt
    • Customer group match

    Test zonder cache

    Flush cache voor testen:

    bin/magento cache:flush`

    Best practices

    Naamgeving

    Gebruik beschrijvende namen met datum:

    "Kerst2024 - 20% op alles boven €50"

    Priority

    Stel prioriteiten logisch in. Lagere nummer = hogere prioriteit.

    Einddatum

    Zet altijd een einddatum. Vergeten acties kosten geld.

    Limieten

    Gebruik "Uses per Coupon" en "Uses per Customer" om misbruik te voorkomen.

    Monitoren

    Check regelmatig het effect van promoties in Reports > Marketing > Promotions.

    Deel deze handleiding:

    Info

    Niveau
    Gemiddeld
    Duur
    35 minuten
    Magento
    2.4.x
    PHP
    8.1+
    Views
    9

    Vereisten

    • Toegang tot Magento 2 admin panel
    • Basis begrip van e-commerce promoties

    Wat je leert

    • Verschil tussen cart en catalog price rules
    • Kortingscodes aanmaken en beheren
    • Condities en acties configureren
    • Geavanceerde promoties zoals BOGO

    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.