Gravity Form 不適用於結帳頁面 (Gravity Form doesn't work with Checkout Page)


問題描述

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.

  1. The dump code is normal behavior, the problem was not redirecting after dumping the variables.
  2. wp_redirect('Cart_Url'); exit;
    This code didn't work which is absolutely normal code. The reason behind this was 'Header already sent warnings'.
  3. There was some marketing analysis code added in the beginning of WordPress index.php file like
    </p>

(by SkyDevSkyDev)

參考文件

  1. Gravity Form doesn't work with Checkout Page (CC BY‑SA 2.5/3.0/4.0)

#shopping-cart #gravity-forms-plugin #wordpress






相關問題

PHP PDO - 無法序列化或反序列化 PDO 實例 (PHP PDO - cannot serialize or unserialize PDO instances)

Prestashop 在註冊表單中添加額外字段 (Prestashop Add extra fields to registration form)

接近購物車存儲,帶有 sessionID 的數據庫 (Approach shopping cart storage, database with sessionID)

購物車不工作,我想哭 (Shopping cart won't work and I want to cry)

如何在 UITableView 中使用 dequeueReusableCellWithIdentifier 快速管理購物車? (How to manage shopping cart in UITableView with dequeueReusableCellWithIdentifier in swift?)

如何區分 Rs 和 % 值? (How to differentiate Rs and % values?)

貝寶購物車的運費之一 (One of delivery charge for paypal shopping cart)

ZenCart 中的優惠券問題 (Coupon problem in ZenCart)

PAYPAL 貨幣不起作用 (PAYPAL currency is not working)

RESTful 購物車網絡服務 (RESTful Shopping Cart web service)

Gravity Form 不適用於結帳頁面 (Gravity Form doesn't work with Checkout Page)

帶有對象的數組,單擊按鈕後增加/減少對像中的值之一 (Array with objects, increasing/decreasing one of the value in object after click on button)







留言討論