WooCommerce icon indicating copy to clipboard operation
WooCommerce copied to clipboard

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

Open skinguru24 opened this issue 1 year ago • 2 comments

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 avatar Dec 31 '24 21:12 skinguru24

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."

skinguru24 avatar Jan 01 '25 16:01 skinguru24

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ľ

MatyasKoval avatar Jan 06 '25 14:01 MatyasKoval

Support for restricting/disabling payment methods in the block-based checkout is available since version 2.0.5.

zemekoule avatar Sep 26 '25 06:09 zemekoule