Express checkout with multi-vendor marketplace
-
I use the Yith Multi-Vendor Marketplace plugin on my WooCommerce site. I would like to use the WooCommerce Stripe Gateway plugin so that I can have the Express Checkout elements available.
At the moment, the two plugins are incompatible. The point of incompatibility is in the checkout page (which is where I would like to use the express checkout element). The file
wp-content/plugins/woocommerce-gateway-stripe/includes/payment-methods/class-wc-stripe-payment-request.php
(this line) prevents the express checkout element appearing when there are multiple shipping packages. This is understandable because the Google Pay pop-up cannot deal with multiple shipping packages. The problem is though that if the Yith Multi-Vendor Plugin is configured such that each vendor can configure their own shipping options, it will create two shipping packages even when only one item is being purchased. One shipping package is associated to the parent order and another one for each suborder, with a suborder for each vendors involved in the transaction.Of course, this is quite a special case. To make this work when it can with the multi-vendor plugin, the Stripe plugin would need to permit the Express Checkout element to be shown when the number of shipping package was no more than 2 (currently hard-coded as no more than 1). Would it be possible to add a filter such that this logic could be changed if necessary, such as in this case?
- The topic ‘Express checkout with multi-vendor marketplace’ is closed to new replies.