Open tharmann opened 2 years ago
This would be great. At least apply a filter for shipping options in express checkout.
Hi, This issue has gone 150 days (5 months) without any activity. This means it is time for a check-in to make sure it is still relevant. If you are still experiencing this issue with the latest version, you can help the project by responding to confirm the problem and by providing any updated reproduction steps. Thanks for helping out.
Is your feature request related to a problem? Please describe. Some shipping methods require more than just a simple choice on the cart/checkout page. A shipping method that allows you to choose the delivery date, for example would require you to choose that shipping method plus a date. Another common one is a shipping method that allows for local pickup and requires you to choose a date and timeslot that you'd like to pick your order up. These shipping methods don't seem to work well in the express checkouts because they require more interactive content. A work-around for this would be to let the user perform the requirements on the website and then open the express checkout to use the shipping method that has been selected.
Describe the solution you'd like A possible solution to achieve this would be to allow the shipping methods displayed in the express checkouts to be filtered. The data that handles this is instantiated in a variable on line 1113 of the woocommerce-gateway-stripe/includes/payment-methods/class-wc-stripe-payment-request.php file in the get_shipping_options() function. It is then populated, sorted, and then returned - it could be filtered at some point in this process with an apply_filters call. It would also be great to leverage the ‘detail’ element of this data to display further info (such as the chosen delivery date or pickup time slot). This would also be possible if the data was filterable.
Describe alternatives you've considered I think the best-case scenario would be to allow the user to actually perform required steps (like choosing a delivery date) within the express checkout iframe. I don't know how plausible this would be, though.
Additional context N/A