WooCommerce: Adding a setup fee to certain products

admin2025-06-07  54

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 badges
Add a comment  | 

1 Answer 1

Reset to default 0

I 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;
转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1749244496a317567.html

最新回复(0)