Okay
  Public Ticket #3826294
Group Booking Incorrect Pricing & Coupon Application Issue
Open

Comments

  •  1
    Martin started the conversation
    Hello Amelia Support Team,

    We’ve encountered an issue with WPAmelia’s group booking calculations, particularly when applying coupons.

    Issue Summary:
    • We have a service that allows group bookings (1–18 participants).
    • The price per person is 999 kr, so for two people, the total should be 1,998 kr.
    • However, Amelia calculates the total as 1,598.40 kr instead of 1,998 kr before applying any discounts.
    • When a 999 kr coupon is applied, the final payment is incorrect.
    • Stripe metadata correctly shows 999 kr, but only 749,25 kr was actually charged.
    Additional Issue with Coupons:
    • An earlier booking in the same group had a 20% discount coupon applied, and it affected all participants in the group—even bookings made afterward.
    • We later removed that 20% discount coupon, but this new issue appeared immediately after.
    • Now, when a 999 kr gift card is used, the final charge is incorrect.
    • The issue only happens when a coupon is applied—if no coupon is used, the total price and payment processing work correctly.
    • This issue only affects group bookings—individual bookings with a coupon work fine.

    It seems like WPAmelia is still applying a hidden discount from the earlier 20% coupon or miscalculating the total amount when multiple participants are booked, leading to incorrect payments being processed.

    Can you investigate and provide guidance on how to resolve this?

    Best regards,
    Martin

  •  811
    Stefan replied

    Hi Martin,

    I hope you are doing well. If the service price is 100 USD, for example, the pricing can be only multiplied by the service price based on the number of people (so plus 100 USD), which means for 2 people, the price would be 200 USD. As shown 

    7959208569.png

    However, if i apply a coupon with an amount of 20 USD, for example 

    3308855599.png

    The discount is properly assigned to the total service price 

    3343580667.png

    Of course, this is without any taxes enabled. Perhaps you have Taxes enabled, but they are not enabled to be excluded? 


    9412397746.png

     

     

    Kind Regards, 

    Stefan Petrov
    [email protected]

    Rate my support

    Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •  1
    Martin replied

    Dear Stefan,

    Thank you for your response. I want to clarify the exact issue I’m experiencing, as I believe the core problem lies in how WPAmelia handles group bookings with coupons—specifically when a discount is applied after an initial group booking has been made.

    Issue Breakdown (Step by Step) – All for Service ID 199
    1. customer books a group of 2 for service ID 199, and the correct total price is calculated.
    2. Later, another customer books service ID 199 and applies a 20% discount coupon.
    3. This unexpectedly applies the discount retroactively to the first group booking, reducing the price for the previous customer as well.
    4. After removing the 20% discount coupon, a new booking is made for 2 people using a 999 kr fixed discount (gift card) for service ID 199.
    5. The finance system in WPAmelia correctly shows 1,998 kr as the total payment due after the discount.
    6. However, only 749,25 kr is actually paid, even though the metadata transfer to Stripe correctly lists 999 kr.
    7. The issue only happens when a voucher is applied—group bookings work fine without a discount.
    Important Context for VAT Compliance
    • In Denmark, all prices shown to private customers must include VAT at all times.
    • Customers must always see the full amount they are expected to pay, and the discount should be applied accordingly.
    What I Need Clarification On:
    1. Why is a discount applied to previous group bookings for service ID 199 when a coupon is used later?
    2. Why does WPAmelia’s finance section show the correct amount (1,998 kr) but only 749,25 kr is processed by Stripe, despite the metadata transfer correctly showing 999 kr  (after the coupon is calculated)?
    3. Is there a issue or bug in how WPAmelia processes group booking discounts across multiple bookings for the same service ID?

    I would appreciate your insights on this issue, as it is causing significant discrepancies in payments.

    Best regards,
    Martin