This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This function loops over cart items, and moves any item with shipping class 'special-class' into a new package. | |
* The new package in this example only takes flat rate shipping. | |
*/ | |
function split_special_shipping_class_items( $packages ) { | |
$found_item = false; | |
$special_class = 'special-class'; // edit this with the slug of your shippig class | |
$new_package = current( $packages ); | |
$new_package['contents'] = array(); | |
$new_package['contents_cost'] = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Modify the color styles of the WooCommerce Bookings datepicker calendar. | |
Add any/all of these styles to your theme's custom CSS, but be sure to change | |
the color hex codes to your choice. They're all black here. | |
*/ | |
/* Month header background color */ | |
#wc-bookings-booking-form .wc-bookings-date-picker .ui-datepicker-header { | |
background-color: #000000; | |
} |