Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用诸如“免费结帐”之类的付款扩展来测试结帐(下测试订单)的最佳方法是什么。尽管此付款扩展仅对管理员可用,例如管理员登录时与维护模式相同,但他们可以选择免费结帐?
还是有另一种不修改代码的方法?
打开/catalog/model/payment/free_checkout.php
/catalog/model/payment/free_checkout.php
寻找
if ($total <= 0) {
将其更改为
if ($total <= 0 || !empty($this->session->data['user_id'])) {