在 Woocommerce 结账付款后移动优惠券字段? [英] Move coupon field after checkout payment in Woocommerce?
本文介绍了在 Woocommerce 结账付款后移动优惠券字段?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在结账付款后移动优惠券文件.这是我已经尝试过的一切:
I want to move the coupon file after the checkout payment. This is what I have tried all ready:
remove_action( 'woocommerce_before_checkout_form', 'woocommerce_checkout_coupon_form');
add_action( 'woocommerce_after_checkout_form', 'woocommerce_checkout_coupon_form' );
现在是结帐表格之后.
谢谢!
推荐答案
你应该试试这个:
remove_action( 'woocommerce_before_checkout_form', 'woocommerce_checkout_coupon_form', 10 );
add_action( 'woocommerce_review_order_before_payment', 'woocommerce_checkout_coupon_form' );
但不确定它是否会起作用……您还应该自定义 Woocommerce 模板 checkout/form-coupon.php
通过您的活动主题...
But not sure that it will be functional… You should need also to customize the Woocommerce template checkout/form-coupon.php
via your active theme…
这篇关于在 Woocommerce 结账付款后移动优惠券字段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文