add_filter( 'wdp_save_cart_item_keys', function ( $keys ) { $keys[] = 'booking'; return $keys; }, 10, 1 ); add_filter( "wdp_get_product_price", function ( $price, $product, $price_mode, $item_meta ) { if ( isset( $item_meta['booking']['_cost'] ) ) { $price = $item_meta['booking']['_cost']; } return $price; }, 10, 4 );
WooCommerce Bookings, by WooCommerce Print
Created by: Alex Prokaev
Modified on: Fri, 6 Sep, 2019 at 3:57 PM
Did you find it helpful? Yes No
Send feedbackSorry we couldn't be helpful. Help us improve this article with your feedback.