【发布时间】:2019-06-29 09:35:40
【问题描述】:
我已经开发了自定义支付网关,它会延迟通过 ajax 进行的支付过程。我想展示目前在 woocommerce 中使用的同一个微调器。
这是我的 jQuery 代码的摘录:
function callAjax(){
jQuery.ajax({
type : "POST",
url: '<?php echo site_url().'/?wc-api=custom_ function'; ?>',
data: response,
//data: {action:'gateway'},
dataType : "json",
cache: false,
success: function(response) {
//alert("Your vote could not be added");
//alert(response);
flag = true;
// window.location = response.redirect;
//console.log(response);
return false;
}
});
}
setTimeout(
function(){ callAjax();
}, 3000);
所以我想做这个:
如何在结帐页面中启动和停止 ajax Woocommerce 覆盖微调器?
【问题讨论】:
-
如何调用叠加层微调器
标签: php jquery ajax wordpress woocommerce