-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Update of delivery methods #838
Comments
Did you ever figure this out? |
Sadly I think this still occurs ... Do you have the same or a similar issue? |
Yes, kind of. I’m looking to modify the label of the modifier depending on the country selected. It works fine if you select a single country and don’t change it. Even if you do change it, the prices will update on the backend but the label on the site will not. |
As for now, I precalculated possible values ... but that only helps temporary ... I will let you know, if I can come up with something. |
So I think that I have a workaround for at least changing the page display...you may be able to use it in order to just hide the limited delivery option that you're trying to implement...it's a little messy and it sometimes loses synchronization but bear with me. In each one of my modifiers, I made and instantiated an handler class with a
Then I overrode the
From there, you can create a
I also modified the
I'm not sure if any of this helps you but you may be able to use the AJAX call to just outright hide the shipping modifier from view instead of changing its name. Let me know what you think. |
Thanks for the extensive research. I wil have a look at it, and will come back to you. It looks promising. |
Hi
I have a delivery method, which is only valid if a customer is living in a certain area in which she/he lives in.
But somehow it will not be disabled, if distance is greater than my configured shipping distance. And now in my production instance I am getting errors like:
But it should not even be a possibilty to select anyways... This error always occurs for the first shipping. After that this error does not occur anymore.
I guess it has to do something with saving shipping address to a customer... but I do not really get any other error than
WARNING: Forbidden: /shop/api/shipping_address/add
Any suggestions how to either adapt the error message or check for distance in another way?
The text was updated successfully, but these errors were encountered: