如何更改捆绑产品Woo Commerce的价格位置?

时间:2019-06-24 19:48:33

标签: wordpress woocommerce

我正在使用 YITH插件在WOO Commerce中创建捆绑产品。如何更改价格头寸? I want to change the position as in the image

1 个答案:

答案 0 :(得分:0)

将以下代码添加到主题的functions.php中,

remove_action('woocommerce_single_product_summary','woocommerce_template_single_price',10); add_action('woocommerce_single_product_summary','woocommerce_template_single_price',25);

尝试更改表示钩子优先级的值25。优先级按顺序

  • @hooked woocommerce_template_single_title – 5
  • @hooked woocommerce_template_single_price – 10
  • @hooked woocommerce_template_single_excerpt – 20
  • @hooked woocommerce_template_single_add_to_cart – 30
  • @hooked woocommerce_template_single_meta – 40
  • @hooked woocommerce_template_single_sharing – 50
相关问题