Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter( 'woocommerce_cart_contents_weight', 'add_weight_2_wc_cart', 10000 );
- function add_weight_2_wc_cart( $weight ) {
- $weight = $weight + 125; // add 15 kg or g, depending on settings
- return $weight;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement