We would like to make PO number mandatory for a client.
We tried these approaches:
- approach:
-
Make initial PO number metafield on an order and create a UI extension on checkout where it is mandatory
-
Use a webhook to set the original PO number with the value from the new initial PO number metafield
-
Hide the original Shopify PO Number ( This last bit is not possible, verified with support)
- approach:
- Use a UI extension on checkout tha validate the Shopify PO number
(The UI extension is sandboxed and we cannot access the PO number)
Does anyone have another approach, workaround, or hack that can validate that PO number is set on checkout?
The Shopify PO Number is a b2b feature in Shopify - with b2b enabled we cannot add additional js to the checkout page.