Hello @curiousdigital,
Thanks for getting in touch, we appreciate the feedback! Out-of-the-box the free version of this plugin does not do that, but if you get in touch with a developer who can work with WooCommerce hooks to do something like this (obviously it’d need to be customized for your purposes):
<?php
// add a wrap fee to your order - $3 per item
function gift_wrapping_chrges() {
if ( is_admin() && ! defined( 'DOING_AJAX' ) ) return;
$fee = 0.00;
// go through each cart item...
foreach ( WC()->cart->get_cart() as $cart_item_key => $cart_item ) {
// here you could check for certain item types worth wrapping,
// but this is a simple example where we just add $3 for each
// item in the cart
$fee += $3.00;
}
if ( $fee > 0 ) {
WC()->cart->add_fee( 'Gift Wrap', $fee, false );
}
}
add_action( 'woocommerce_cart_calculate_fees', 'gift_wrapping_chrges' );
?>
The “Plus” version of this plugin allows you to force add 1:1 wrap (1 product:1 wrap) if desired, or only allow one wrap per product, or just allow any number of wrap per product. It does not calculate gift wrapping cost based on the amount of products, and that feature isn’t planned. With the help of a developer, you could further customize any plugin to get exactly what you need, or even just add some code on the side (such as the code above) to achieve what you need. I recommend you check out jobs.wordpress.net if you need help with getting a free plugin to do something it doesn’t!
Thanks for the swift reply!
I’m currently learning to use woocommerce since I’m usually a nodejs developer, so the mix of hooks filters and template files are just giving me an anurism :’)
I’ll look into the plus version,
Thanks!
@curiousdigital I’m sure it could be overwhelming, but luckily there is SO much documentation available online for WordPress and WooCommerce, and loads of code examples, such that I’m sure you could be going with it this week. I’m just not sure this plugin offers you exactly what you need, which is why I suggest using hooks and a few lines of code here and there to achieve your desired function.