Skip to content

Instantly share code, notes, and snippets.

@akther80
Created May 26, 2023 11:19
Show Gist options
  • Save akther80/f7b66dbe1394ffa80f25cebdba3e8ec7 to your computer and use it in GitHub Desktop.
Save akther80/f7b66dbe1394ffa80f25cebdba3e8ec7 to your computer and use it in GitHub Desktop.
MyTravel -Tour Booking form
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