verbb / events

Craft CMS Plugin for events management and ticketing.
Other
22 stars 13 forks source link

Events Causing Extra Shipping Charges in the Cart. #140

Closed pbmills closed 1 month ago

pbmills commented 9 months ago

Describe the bug

I've configured Seminars using the Events Plugin alongside Craft Commerce. In Commerce, my products include Books, each with two shipping options: Rural and Urban, each with different pricing tiers. For instance, for Rural shipping, if the book's cost is $1 - $100, the shipping cost is $7.80, and for anything $101 and above, it's $14.

Now, when a user adds a $55 book and a $150 seminar to their cart, the total comes to $205. However, at checkout, it seems that the Seminars product is unexpectedly adding a shipping cost.

Despite my book being priced at $55 with an expected shipping cost of $7.80, the checkout is displaying a shipping cost of $14. This indicates that the system is calculating the total cart price instead of considering only the individual product at the commencement stage.

Steps to reproduce

  1. Adding Events tickets for me which is named as Seminars to cart
  2. Adding product from the Craft Commerce to cart
  3. checkout at Cart.

Craft CMS version

4.6.0

Plugin version

2.0.4

Multi-site?

No

Additional context

No response

engram-design commented 9 months ago

Tickets aren't setup with dimensions or weight so they shouldn't be factored into shipping rules. In fact, we specifically say that they're not shippable.

What are you shipping rules and shipping setup? You may need to setup correct Shipping Categories (if you haven't already) so ensure that only the event types aren't factored into shipping calculations.

In your shipping rules, you might like to Disallow s shipping category you create. Then, hook that shipping category up to the ticket type.

image
pbmills commented 9 months ago

Hi,

I have created a shipping category for $0 and have applied that to events plugin but that isn’t getting applied to checkout for some reason. I have made sure of to Disallow of it to the ticket type but doesn’t seems to be working.

Regards,

Priti Burfield-Mills

M: 0220443081

W: https://burfieldmills.com


From: Josh Crawford @.> Sent: Friday, February 2, 2024 1:01:54 AM To: verbb/events @.> Cc: Priti Burfield-Mills @.>; Author @.> Subject: Re: [verbb/events] Events Causing Extra Shipping Charges in the Cart. (Issue #140)

Tickets aren't setup with dimensions or weight so they shouldn't be factored into shipping rules. In fact, we specifically say that they're not shippablehttps://github.com/verbb/events/blob/135bae8094f264026d2fc6268e7b4071b56c13be/src/elements/Ticket.php#L691.

What are you shipping rules and shipping setup? You may need to setup correct Shipping Categories (if you haven't already) so ensure that only the event types aren't factored into shipping calculations.

In your shipping rules, you might like to Disallow s shipping category you create. Then, hook that shipping category up to the ticket type.

image.png (view on web)https://github.com/verbb/events/assets/1221575/68c1af9c-0ec1-4dbd-83a6-fdb1a93866c5

— Reply to this email directly, view it on GitHubhttps://github.com/verbb/events/issues/140#issuecomment-1921168450, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHTN2AYCTXP3M34RDPIGPM3YRN73FAVCNFSM6AAAAABCUERRHOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRRGE3DQNBVGA. You are receiving this because you authored the thread.Message ID: @.***>

pbmills commented 9 months ago

Hi,

This are the steps I am working on

1) Created a Shipping Category with E-Tickets name

2) Setting up Shipping Methods and Rules where I assigning disallow for the Shipping price.

3) Hooking that shipping category up to the ticket type

After doing all this when I go to front end, the shipping cost shows incorrect because it is calculating the total order value [Books as products and Seminars as E-Tickets] as Shipping. Where it should only be the Books.

Please help me, I have this website live and we having this issue on live site.

engram-design commented 9 months ago

Just to be clear, I meant that you should disallow the shipping category in your shipping method.

image

So here I have a $10 flat rate shipping method, and I have set "Events" shipping category to "Disallow".

I then ensure my ticket types are using that same shipping category.

image

I'm not sure if your last response was supposed to contain attachments, but they haven't come through.

pbmills commented 9 months ago

Oh yes just checked that my last comment did missed the screenshots which they are here now with explanation.

1) Created a Shipping Category with E-Tickets name

Screenshot 2024-02-02 at 22 13 30

2) Setting up Shipping Methods and Rules where I assigning disallow for the Shipping price. compass ploi-staging smokeylemon com_admin_commerce_shipping_shippingmethods_2_shippingrules_2

3) Hooking that shipping category up to the ticket type

Screenshot 2024-02-02 at 22 15 09

The only change in my Shopping Conditions are the Total Value Order.

But yes, it is still not working for me. when I go to front end, the shipping cost shows incorrect because it is calculating the total order value [Books as products and Seminars as E-Tickets] as Shipping. Where it should only be the Books.

engram-design commented 9 months ago

Okay, I can see you've set up everything correctly, and I've replicated that on my end. It's indeed not working. Unfortunately, it looks like this might be a Commerce issue, where it's not taking into account the "Shipping Category Conditions" before actioning the "Order Total Value" value.

As you mentioned, the cart total is $205, but we want to remove the $150 item that's covered by the "E-Tickets" shipping category, with a "Disallow" condition on the shipping method.

We might have to raise this with the Commerce team. It's really down to how the order total is calculated and there's not much we can do about it.

pbmills commented 9 months ago

@engram-design I have been in touch initially and they said to be in touch with the Events Plugin support. Is there any chance you can be in touch with them and raise the ticket about this issue? Or do I need to do that?

engram-design commented 9 months ago

@pbmills Was that through their support system (email), Discord or GitHub? If email, please cc me into the conversation with them! I'll reach out to them regardless about it

pbmills commented 9 months ago

It was via support. I will CC you shortly.

pbmills commented 9 months ago

@engram-design is this the right email address web@verbb.io?

engram-design commented 9 months ago

yup!