WPprodigy / woocommerce-product-fees

Add additional fees at checkout based on products that are in the cart.
https://wordpress.org/plugins/woocommerce-product-fees/
Other
26 stars 19 forks source link

How I can add the amount and name of the fee in the product page? #27

Closed profesoryeow closed 7 years ago

profesoryeow commented 7 years ago

Hello Sr. First: Thanks for your great plugin WooCommerce Product Fees. I'm start to work in a small travel agency and your plugin is great because all travels have different tax/fees (is not fixed or percent).. so your plugin is great.

I'm a designer and i don't know a lot of woocommerce. I would like to ask you if can help me for show the custom fees i load with your plugin, not only in the checkout, also in the product page.

Thanks for your time and sorry for my bad English. Regards from Argentina. Also i send you an email. Thanks again.

PD: I practically use variable products

WPprodigy commented 7 years ago

This isn't possible to do by default. You can get the fee name and amount using https://developer.wordpress.org/reference/functions/get_post_meta/, but you'll need to edit template files.

If you aren't comfortable with custom code, I would recommend just writing the fee information manually in the product short description.