Comment afficher « À partir de xx€ / jour » au lieu de « xx€ / jour » ?
Ajoutez ce code au fichier functions.php de votre thème :
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 = 'À partir de ' . wc_price( $lower_price ) . '<span class="wceb-price-format">' . esc_html( $price_text ) . '</span>';
}
return $display_price;
}
Puis-je avoir une facture pour ma commande ?
Bien sûr, envoyez un e-mail avec le formulaire de contact en précisant votre numéro de commande et vous la recevrez rapidement.