verbb / postie

A Craft Commerce shipping calculator plugin.
Other
12 stars 18 forks source link

Delivery time and cut off dates in past #121

Open hassanmah opened 6 months ago

hassanmah commented 6 months ago

Describe the bug

The Delivery time and cut off dates are in past.

Steps to reproduce

Outputting {{ dump( method.shippingMethod) }} results in past delivery time and cut-off dates.

This was done 3/11

image

Craft CMS version

4.8.1

Plugin version

"dev-craft-4 as 3.1.4."

Multi-site?

No response

Additional context

No response

engram-design commented 6 months ago

What are your "Ship Date" and "Ship Time" settings set to for DHL Express? This data is returned to us by the API, but we do supply the request with date/time for ShipTimestamp. I was going to say this is a timezone issue, but if we're talking 10 days out of date, that must be something else.

hassanmah commented 6 months ago

@engram-design It doesn't matter what I set those up, it still gives the same result, weirdly it's always the start of the month ie 03/01

image
engram-design commented 6 months ago

Are you using the Test Endpoint? I just wanted to check if these were just indicative times, as this is what the API returns to us.

I actually can't seem to get any rates returned on my end with my testing credentials at the moment, but will keep working on it.

If you felt like debugging, add Craft::dd($payload); at this line just to check what you're sending to their API.