【发布时间】:2021-05-04 03:16:55
【问题描述】:
在像storefront theme 这样的标准 WooCommerce 购物车页面上,产品行下方是左侧的一行优惠券代码和右侧的更新购物车。我可以用woocommerce_cart_coupon勾在左边的优惠券旁边:
add_action( 'woocommerce_cart_coupon', 'addcode' );
function addcode() {echo 'hello';}
此代码进入左侧 div,因此我无法将其移动到右侧。
更新车旁边的钩子是什么?
woocommerce_cart_contents & woocommerce_after_cart_contents 太高,woocommerce_after_cart_table 在页面上太低。
【问题讨论】:
标签: woocommerce hook-woocommerce