Default HPOS value to true

This commit is contained in:
Rodel Calasagsag 2023-10-22 20:57:25 +08:00
parent ffda17042d
commit 240fdefb7a
1 changed files with 3 additions and 1 deletions

View File

@ -11,7 +11,9 @@ export const customer_username =
export const customer_password = __ENV.C_PW || 'password';
export const customer_user_id = __ENV.C_UID || '2';
export const hpos_enabled = __ENV.HPOS === 'true';
export const hpos_enabled = [ 'true', 'false' ].includes( __ENV.HPOS )
? JSON.parse( __ENV.HPOS )
: true;
export const admin_orders_base_url = 'edit.php?post_type=shop_order';
export const hpos_admin_orders_base_url = 'admin.php?page=wc-orders';