diff --git a/includes/Services/Settings.php b/includes/Services/Settings.php
index 691d3b6..4822cbb 100644
--- a/includes/Services/Settings.php
+++ b/includes/Services/Settings.php
@@ -35,6 +35,7 @@ class Settings {
'dequeue_script_handles' => array(
'admin-bar',
'wc-add-to-cart',
+ 'wc-stripe-upe-classic',
),
'dequeue_style_handles' => array(
'admin-bar',
diff --git a/templates/payment.php b/templates/payment.php
index 607d010..e6366c3 100644
--- a/templates/payment.php
+++ b/templates/payment.php
@@ -6,7 +6,7 @@
* HOWEVER, this is not recommended , don't be surprised if your POS breaks
*/
-defined( 'ABSPATH' ) || exit;
+\defined( 'ABSPATH' ) || exit;
?>
>
@@ -20,6 +20,8 @@
font-size: 14px;
margin: 0 !important;
padding: 0 !important;
+ color: #000000 !important;
+ background-color: #ffffff !important;
}
h1, h2, h3, h4, h5, h6 {
margin: 0;
@@ -52,6 +54,11 @@
margin-bottom: 4px;
}
+ .woocommerce {
+ color: #000000 !important;
+ background-color: #ffffff !important;
+ }
+
.woocommerce-pos-troubleshooting {
border-left: 4px solid #007cba; /* For the blue vertical line */
padding: 5px 10px; /* Padding around the text */
@@ -258,23 +265,23 @@
>
queue;
- $scriptHandles = $wp_scripts->queue;
-
- $style_exclude_list = apply_filters(
- 'woocommerce_pos_payment_template_dequeue_style_handles',
- woocommerce_pos_get_settings( 'checkout', 'dequeue_style_handles' )
- );
-
- $script_exclude_list = apply_filters(
- 'woocommerce_pos_payment_template_dequeue_script_handles',
- woocommerce_pos_get_settings( 'checkout', 'dequeue_script_handles' )
- );
-
- $mergedStyleHandles = array_unique(array_merge($styleHandles, $style_exclude_list));
- $mergedScriptHandles = array_unique(array_merge($scriptHandles, $script_exclude_list));
- ?>
+ global $wp_styles, $wp_scripts;
+$styleHandles = $wp_styles->queue;
+$scriptHandles = $wp_scripts->queue;
+
+$style_exclude_list = apply_filters(
+ 'woocommerce_pos_payment_template_dequeue_style_handles',
+ woocommerce_pos_get_settings( 'checkout', 'dequeue_style_handles' )
+);
+
+$script_exclude_list = apply_filters(
+ 'woocommerce_pos_payment_template_dequeue_script_handles',
+ woocommerce_pos_get_settings( 'checkout', 'dequeue_script_handles' )
+);
+
+$mergedStyleHandles = array_unique(array_merge($styleHandles, $style_exclude_list));
+$mergedScriptHandles = array_unique(array_merge($scriptHandles, $script_exclude_list));
+?>
@@ -285,23 +292,23 @@
@@ -335,13 +342,13 @@
get_formatted_billing_address( esc_html__( 'N/A', 'woocommerce' ) ) ); ?>
- get_billing_phone() ) : ?>
+ get_billing_phone() ) { ?>
get_billing_phone() ); ?>
-
+
- get_billing_email() ) : ?>
+ get_billing_email() ) { ?>
get_billing_email() ); ?>
-
+
@@ -351,9 +358,9 @@
get_formatted_shipping_address( esc_html__( 'N/A', 'woocommerce' ) ) ); ?>
- get_shipping_phone() ) : ?>
+ get_shipping_phone() ) { ?>
get_shipping_phone() ); ?>
-
+
@@ -376,15 +383,15 @@
get_items( 'coupon' );
- if ( $coupons ) {
- echo '' . __('Applied coupons', 'woocommerce') . '
';
- echo '';
- foreach ( $coupons as $coupon ) {
- echo '- ' . esc_html( $coupon->get_code() ) . '
';
- }
- echo '
';
- }
- ?>
+if ( $coupons ) {
+ echo '' . __('Applied coupons', 'woocommerce') . '
';
+ echo '';
+ foreach ( $coupons as $coupon ) {
+ echo '- ' . esc_html( $coupon->get_code() ) . '
';
+ }
+ echo '
';
+}
+?>