opencart 新增支付方式

2021-09-30 13:17:02 字數 728 閱讀 5175

我們在使用 opencart  時,需要對接乙個新的本**的支付方式,在網上找半天沒有完整的,所以記錄一下自己的心得

一 先建立9個檔案 ,其中的具體內容可複製同目錄的 cod 檔案 ,檔案內部的 所有 包含  "cod"  文字全部替換成 "custom" ,並注意大小寫

1、  建立admin/controller/payment/custom.php

2、 建立admin/language/english/payment/custom.php

3、 建立admin/language/zh-cn/payment/custom.php

4、 建立 catalog\controller\payment/custom.php

5、 建立 catalog\language\english\payment/custom.php

6、 建立 catalog\language\zh-cn\payment/custom.php    //注該頁面的text_title 需自行定義

7、 建立 catalog\model\payment/custom.php

8、 建立 catalog\view\theme\default\template\payment/custom.php

9、 建立 admin/view/template/payment/custom.tpl

二  後台 擴充套件功能-> 支付管理 進行安裝

三  可以在前台 使用者的支付 方式顯示 該定義的支付方式

Magento新增支付方式

增加類似check money order 這樣的線下支付方式check1 money order 並且在前台讓客戶選擇,在後台管理訂單中也能正確顯示客戶選擇的支付方式。1 找到 複製這個標籤及其包含的內容,緊接著這個標籤貼上乙份,把checkmo改名為checkmo1,check money or...

多支付方式選擇

由於業務需要,原單一支付方式現存在多種支付方式的可能性,故在原有基礎上進行擴充,可自由增減付款方式 最少一種,最多三種 如下圖 html 部分 style width 100px 售價 th type text value 3000.00 id txtamount td tr style width...

支付方式 策略模式

很多企業的工資支付方式是很靈活的,可支付方式是比較多的,比如 人民幣現金支付 美元現金支付 銀行轉賬到工資帳戶 銀行轉賬到工資卡 一些創業型的企業為了留住骨幹員工,還可能有 工資轉股權等等方式 隨著公司的發展,會不斷有新的工資支付方式出現,這就要求能方便的擴充套件 另外工資支付方式不是固定的,是由公...