How add a fee or charge to the cart for Woocommerce Virtual Products
Add the following to your theme’s functions.php file changing $specialfeecat = 86 to the ID of your category and $spfeeperprod = 0.05 to the amount that you want to add. Also change ‘Ticket Concierge Charge’ to the text that you want to describe the additional fee or charge. function df_add_ticket_surcharge( $cart_object ) { global $woocommerce;…
Read more