問題描述
Gravity Form 不適用於結帳頁面 (Gravity Form doesn't work with Checkout Page)
我有一個重力表格,一旦用戶指定了詳細信息,就轉到結帳頁面,而不是轉到結帳頁面,它會顯示變量轉儲。
https://pastebin.com/Dhzgqkwi
https://prnt.sc/r1l6n6
但是我在本地配置了相同的遠程站點它工作正常。不同的是PHP版本。我的是 7.x,遠程的是 5.x。
https://prnt.sc/r1l6rl
我應該在哪裡查看?我應該如何插入 die() 命令來檢查結果?
參考解法
方法 1:
I found the solution myself.
- The dump code is normal behavior, the problem was not redirecting after dumping the variables.
- wp_redirect('Cart_Url'); exit;
This code didn't work which is absolutely normal code. The reason behind this was 'Header already sent warnings'. - There was some marketing analysis code added in the beginning of WordPress index.php file like
</p>