File tree Expand file tree Collapse file tree 1 file changed +21
-5
lines changed Expand file tree Collapse file tree 1 file changed +21
-5
lines changed Original file line number Diff line number Diff line change @@ -80,13 +80,22 @@ public function render_payment_fields()
80
80
padding-left: 0px !important;
81
81
}
82
82
#pf-overlay {
83
- position: absolute ;
84
- background-color: rgba(255,255,255,0.5 );
83
+ position: fixed ;
84
+ background-color: rgba(255,255,255,0.95 );
85
85
background-image: url("<?= get_site_url ()."/wp-content/plugins/ " .Plugin::TEXT_DOMAIN ."/assets/fac-visa-mc.png " ; ?> ");
86
86
background-repeat: no-repeat;
87
87
background-position: center;
88
88
text-align: center;
89
89
top: 0;
90
+ z-index: 1000;
91
+ }
92
+ #pf-overlay p {
93
+ height: 100%;
94
+ justify-content: center;
95
+ align-items: center;
96
+ display: flex;
97
+ margin-top: 50px;
98
+ font-weight: bolder;
90
99
}
91
100
</style>
92
101
<?php
@@ -102,9 +111,16 @@ public function render_fieldset_end()
102
111
103
112
<script>
104
113
(function(){
114
+ jQuery("form[name='checkout']").off();
105
115
jQuery("#place_order").click(function(e) {
106
- jQuery("form[name='checkout']").off();
107
- jQuery("#place_order").hide();
116
+ jQuery(this).hide();
117
+
118
+ let o = jQuery("<div id='pf-overlay'><p>Please wait...</p></div>")
119
+ .width(window.innerWidth).height(window.innerHeight);
120
+
121
+ jQuery("body").prepend(o);
122
+
123
+ return true;
108
124
/*
109
125
let f = jQuery("#<?= $ fieldsetId ; ?> ");
110
126
let h = f.outerHeight(true);
@@ -131,7 +147,7 @@ public function render_fieldset_end()
131
147
jQuery("#pf-overlay").fadeOut();
132
148
},5000);
133
149
*/
134
- return true;
150
+
135
151
});
136
152
}());
137
153
</script>
You can’t perform that action at this time.
0 commit comments