Free and Premium WordPress Plugins & Themes Forums WordPress Plugins Hotel Booking Link to services on checkout form (or pop-up info window)
- This topic has 19 replies, 6 voices, and was last updated 1 week ago by J. Davis.
- September 27, 2022 at 7:27 am #1358974Marcelo CardosoParticipant
I think so, I just included a line to show the DESCRIPTION of the services (and not just the name/value as is the original).
The original is (lines 412-413):
<?php echo esc_html( $service->getTitle() ); ?> <em>(<?php echo wp_kses_post( $service->getPriceWithConditions(false) ); ?>)</em>
So, my function just add a line after this:
<?php echo "<br>"; echo $service->getDescription(); ?>May 21, 2023 at 9:53 pm #1457285Michiel Hasselo SmitsParticipant
Can you please advise which file(s)/location needs to be changed with the above code to get the link to services on checkout form?
Is the code still accurate?
MichielMay 28, 2023 at 9:30 am #1460952J. DavisKeymaster
You may find the code example with an explanation on the first page of the current topic. You may add it to the functions.php file of your theme or to the Code Snippets plugin.
John DavisMay 29, 2023 at 1:55 am #1461099Michiel Hasselo SmitsParticipant
Can you also share where to add this code? I cannot just save this in the functions.php
MichielJune 1, 2023 at 11:54 am #1463336J. DavisKeymaster
You may override the services section by removing the action below and then add it again with your custom modifications:
add_action( ‘mphb_sc_checkout_room_details’, array( ‘\MPHB\Views\Shortcodes\CheckoutView’, ‘renderServiceChooser’ ), 40, 4 );
You may also contact our support team to describe your request in more detail with the screenshots. We may review it as a custom order.
- You must be logged in to reply to this topic.