Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delivery time and cut off dates in past #121

Open
hassanmah opened this issue Mar 11, 2024 · 3 comments
Open

Delivery time and cut off dates in past #121

hassanmah opened this issue Mar 11, 2024 · 3 comments

Comments

@hassanmah
Copy link

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
Copy link
Member

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
Copy link
Author

@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
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants