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

Cash-on-delivery option still active when selecting carrier that does not allows "Cash-on-delivery" #694

Open
skinguru24 opened this issue Dec 31, 2024 · 2 comments

Comments

@skinguru24
Copy link

skinguru24 commented Dec 31, 2024

In the checkout form when using for example "PL Polská pošta PP" carrier I still have the "Cash-on-delivery" option active even though the carrier disallows "cash on delivery". When customers tries to submit it shows no error but the "Submit" button gets disabled and the customer gets confused.

I do get an order in woocommerce with a status of "Pending Payment".

image

Note: I have configured a display name of "Pocztex Punkty" for "PL Polská pošta PP"

{
"id": "14052",
"name": "PL Polská pošta PP",
"available": "true",
"pickupPoints": "true",
"apiAllowed": "true",
"separateHouseNumber": "false",
"customsDeclarations": "false",
"requiresEmail": "true",
"requiresPhone": "true",
"requiresSize": "true",
"disallowsCod": "true",
"country": "pl",
"currency": "PLN",
"maxWeight": "30",
"labelRouting": "P42-1*C-14052",
"labelName": "PL Poczta Polska PP"
}

I need to mention also that I ve configured in Packeta config who is the "Cash on delivery" payment method:
image

and in Woocommerce->Settings->Payments I have the "Cash on delivery" configured like this:
image

@skinguru24
Copy link
Author

i can see in changelog.txt file ( https://github.com/Zasilkovna/WooCommerce/blob/main/changelog.txt ) that its an implemented feature from 1.5.0 :
"Added: If the carrier does not support cash on delivery, it is now not possible to choose a cash on delivery payment at the checkout."

@MatyasKoval
Copy link
Contributor

Hello @skinguru24,
This is a limitation specific to the WP Block Checkout that our plugin supports since 1.8.0.
The classic legacy checkout does not have this limitation.

At this moment the block checkout does not support any limitation/disabling of payment methods for a specific carrier, including the cash on delivery disabling for carriers that do not support it.

Best regards,
Matyáš Kovaľ

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