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

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

  •  843
    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

  •  843
    Stefan replied

    Hi Martin,

    Thanks for the detailed explanation, but i wasn't able to reproduce the same issue on our local host. If i book a test appointment for two where the service price is 100 USD, it is registered correctly as 200 USD 

    3154888222.png

    The next appointment is booked for the same date / time and employee, but with the discount code applied (20 percent discount). That's 80 USD in this case. As you can see, the grand total is 280 USD. which is correct. 

    1093673849.png

    I would have to ask for the WP admin credentials so i can troubleshoot this on your website. 

     

    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

    Thank you for your response and for attempting to reproduce the issue. However, the test you performed does not fully reflect the scenario we described.

    The Issue Is Not Just a Basic Discount Application

    You tested a straightforward booking where:

    1. A service is booked for two people at full price.
    2. A second booking applies a 20% discount, correctly reducing only that booking’s total.

    This is not the issue we are experiencing. Our issue occurs when a discount is applied to a later booking but retroactively affects earlier bookings.

    How to Reproduce the Issue Properly:
    Example Service ID 199, price 999 kr; the setting is inclusive of tax.
    LIVE Environment Stripe
    1. Book a group of two for service ID 199. Ensure the total is correctly calculated.
    2. Make a new booking for the same service ID 199 but apply a 20% discount.
    3. Check if the first booking is unexpectedly affected by the discount as well.
    4. Now remove the 20% discount and try booking another group of two with a 999 kr discount.
    5. Check if the WPAmelia finance system correctly shows 1,998 kr due but only 749,25 kr is actually processed in Stripe—even though the metadata sent to Stripe correctly states 999 kr.
    Regarding Admin Credentials:

    For security reasons, we cannot provide direct admin access. However, if you need to troubleshoot on our live system, we can:

    • Provide detailed logs/screenshots.
    • Run tests with debugging enabled and share relevant data with you.

    We have also now moved away from services to events, but the issue remains.

    Please let us know how you’d like to proceed securely without compromising site integrity.

    Best regards,
    Martin

  •  843
    Stefan replied

    Hi Martin,

    Apologies for the delayed answer. Please note that we do not work on weekends. I'm still troubleshooting this with developers. I will get back to you as soon as i have a feedback.

    Thank you for your patience and understanding. 

    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

  •   Stefan replied privately
  •  1
    Martin replied

    Dear Stefan,

    Thank you for your private response. We have disabled the coupons in WPAmelia because the system’s behavior with group bookings and discount handling is not only unreliable but has also become more problematic after transitioning from services to events.

    Support Concerns:

    It is clear that my previous messages were not fully read, as the testing scenarios you described did not match the specific issues I outlined. I am not particularly impressed with the support style so far, as there has been a lack of clear communication and concrete action steps.

    The Current Issues with Coupon Handling:
    1. Retroactive Discounts: Applying a new discount coupon still affects previous bookings for the same event, leading to incorrect payment amounts.
    2. Services, Discrepancy in Stripe Payments: The Stripe metadata shows 999 kr, but only 749,25 kr is processed, causing serious financial inconsistencies.
    3. New Issue After Switching to Events:
      • When applying a 100kr discount coupon to an event priced at 999 kr Incl. VAT, the subtotal changes incorrectly to 974 kr before the discount is even applied.
      • The final amount displayed is 874 kr Incl. VAT, which does not match a 100 kr reduction from 999 kr(which should be 899 kr).
    Important Context for VAT Compliance:
    • In Denmark, all prices shown to private customers must include VAT at all times.
    • The incorrect subtotal and final amount displayed are not only confusing but also risk non-compliance with Danish tax laws.
    Regarding Admin Access:

    I must reiterate that providing admin access to our live site is not an option, as it would be unprofessional and insecure. I had previously offered alternative ways to assist in troubleshooting, including:

    • Providing detailed logs and screenshots.
    • Enabling debugging and sharing relevant data.


    Attached files:  strange discount before.jpg
      strange discount after.jpg

  •  843
    Stefan replied

    Hi Martin,

    I understand your concern, and I apologize if I gave the wrong impression. I appreciate your explanation and want to assure you that your message has been fully read. However, as I mentioned earlier, we are unable to replicate the issue you’re experiencing. We have tested it following your steps, and the coupon feature appears to be working as designed.

    I also understand that you cannot provide admin credentials, but without access, we are unable to investigate further. Unfortunately, logs alone won’t be sufficient for troubleshooting. Our standard practice is to request WP admin credentials (or access to a staging site, if available), as this allows us to examine the issue directly. The fact that we cannot reproduce the issue on our end doesn’t mean there isn’t a problem on your website, which is why direct access is important.

    Please rest assured that any credentials provided are strictly used for troubleshooting purposes and are not shared with or used by third parties.

    Apologies for the inconvenience, and thank you for your understanding.

    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