Progressus-io / postnl-for-woocommerce

GNU General Public License v3.0
4 stars 1 forks source link

Additional options unavailable with checkout settings disabled #41

Closed stijneikelboom closed 1 year ago

stijneikelboom commented 1 year ago

When the PostNL Pick-up Points and Delivery Days settings are currently disabled, no additional options are available on the WooCommerce order page. Only the number of labels and the return label options are shown.

Our use case requires that we keep these checkout-related settings disabled, but have the option for a letterbox parcel (Brievenbuspakje+) available when generating a label.

We have manually added the letterbox option on line 244 of src/Order/Base.php as a temporary solution.

https://github.com/Progressus-io/postnl-for-woocommerce/blob/37ab96c4947535e226cffe54339cd332c75f9fd9/src/Order/Base.php#L243-L245

It would be desirable to make the additional options available, even though the checkout-related preferences are disabled. For a letterbox parcel, this appears to work without any issues. I have not verified this for other options, but this should be similar.

Abdalsalaam commented 1 year ago

@stijneikelboom thank you! we are working on this

stijneikelboom commented 1 year ago

Thanks for the quick follow-up! Installed the latest version and verified that the issue is fixed.