积分抵扣功能

AI摘要
小武站
热帖

所有修改位置总结:

1️⃣ 位置1:积分抵扣启用检查(zibpay-func.php 第584行)

// return false; //注释掉

2️⃣ 位置2:积分抵扣UI显示(zibpay-func.php 第538行)

// 去掉条件检查
if (!$is_initiate_pay) {

位置3:积分抵扣处理(zibpay-order.php 第478行)

// 去掉条件检查
if ($user_id && !empty($post_data['points_deduction'])) {

位置1:zibpay_is_allow_points_deduction 函数(第584行)
文件: wp-content/themes/zibll/zibpay/functions/zibpay-func.php

// 原代码:
return false;

// 修改为:
// return false;

位置2:积分抵扣UI显示代码(第538行)
文件: wp-content/themes/zibll/zibpay/functions/zibpay-func.php

修改内容:

// 原代码:
if (!$is_initiate_pay && zibpay_is_allow_points_deduction($pay_type)) {

// 修改为:
if (!$is_initiate_pay) {

位置3:积分抵扣处理逻辑(第478行)

文件: wp-content/themes/zibll/zibpay/functions/zibpay-order.php

修改内容:

// 原代码:
if ($user_id && !empty($post_data['points_deduction']) && zibpay_is_allow_points_deduction($order_type)) {
    $points_deduction_rate  = _pz('points_deduction_rate', 30);

// 修改为:
if ($user_id && !empty($post_data['points_deduction'])) {
    $points_deduction_rate  = 30;

 

若您发现内容有误或已失效,请在下方 留言 反馈,我会及时核实更新。
© 版权声明
THE END
喜欢就支持一下吧
点赞886支持作者 分享
评论标题 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情图片快捷回复

    暂无评论内容