admin管理员组文章数量:1130349
As the questions implies I want to add a setup-fee for certain products. The additional fee should be displayed in the product mask, cart and checkout. How is it possible to get that functionality?
As the questions implies I want to add a setup-fee for certain products. The additional fee should be displayed in the product mask, cart and checkout. How is it possible to get that functionality?
Share Improve this question asked Oct 18, 2018 at 13:03 manifestormanifestor 3136 silver badges15 bronze badges1 Answer
Reset to default 0I found a solution using this plugin. It's very easy. If you want to display the setup fee in your product description, use the following code:
$id = get_the_ID();
$fee_name = get_post_meta( $id, 'product-fee-name', true );
$fee_amount = get_post_meta( $id, 'product-fee-amount', true );
echo $fee_name . ' - ' . $fee_amount;
As the questions implies I want to add a setup-fee for certain products. The additional fee should be displayed in the product mask, cart and checkout. How is it possible to get that functionality?
As the questions implies I want to add a setup-fee for certain products. The additional fee should be displayed in the product mask, cart and checkout. How is it possible to get that functionality?
Share Improve this question asked Oct 18, 2018 at 13:03 manifestormanifestor 3136 silver badges15 bronze badges1 Answer
Reset to default 0I found a solution using this plugin. It's very easy. If you want to display the setup fee in your product description, use the following code:
$id = get_the_ID();
$fee_name = get_post_meta( $id, 'product-fee-name', true );
$fee_amount = get_post_meta( $id, 'product-fee-amount', true );
echo $fee_name . ' - ' . $fee_amount;
本文标签: WooCommerce Adding a setup fee to certain products
版权声明:本文标题:WooCommerce: Adding a setup fee to certain products 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749244471a2338645.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论