0.00  View Cart

Can I get an invoice for my order?

Of course, just send an email and you’ll get one as fast as possible.

How can I display the price as “From $xx / day” instead of “$xx / day”?

Add this code to your theme’s functions.php:

add_filter( 'easy_booking_display_price', ebp_display_price', 10, 2 );

function ebp_display_price( $display_price, $product ) {

	// Get pricing data
	$product_prices = get_post_meta( $product->id, '_ebp_product_prices', true );
	$product_price = wceb_get_product_price( $product ); // Product base price

	$prices = array( $product_price );
	if ( ! empty( $product_prices ) ) {

		foreach ( $product_prices as $product_price ) {
			$prices[] = isset( $product_price['sale_price'] ) ? $product_price['sale_price'] : $product_price['price'];
		}

		// Get lower price
		$lower_price = min( $prices );
		$price_text = wceb_get_price_html( $product );

		$display_price = 'From ' . wc_price( $lower_price ) . '<span class="wceb-price-format">' . esc_html( $price_text ) . '</span>';
	}

	return $display_price;
}