Created
May 26, 2023 11:19
-
-
Save akther80/f7b66dbe1394ffa80f25cebdba3e8ec7 to your computer and use it in GitHub Desktop.
MyTravel -Tour Booking form
This file contains hidden or 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
add_action( 'mytravel_single_tour_sidebar', 'mytravel_single_product_sidebar', 10 ); | |
if ( ! function_exists( 'mytravel_single_product_sidebar' ) ) { | |
/** | |
* Single tour sidebar functions | |
*/ | |
function mytravel_single_product_sidebar() { | |
global $product, $post; | |
$price_html = $product->get_price_html(); | |
if ( $price_html ) : | |
?> | |
<div class="border border-color-7 rounded mb-5"> | |
<div class="border-bottom p-4"> | |
<?php woocommerce_template_single_price(); ?> | |
</div> | |
<div class="p-4"> | |
<?php woocommerce_template_single_add_to_cart(); ?> | |
</div> | |
</div> | |
<?php | |
endif; | |
mytravel_single_hotel_sidebar_location_tags(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment