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 year, 6 months ago by J. Davis.
- AuthorPosts
- September 27, 2022 at 7:27 am #1358974Marcelo CardosoParticipant
Hello Emanuel,
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 SmitsParticipantHi,
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?
Most appreciated,
MichielMay 28, 2023 at 9:30 am #1460952J. DavisKeymasterHi Michiel,
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.
best regards,
John DavisMay 29, 2023 at 1:55 am #1461099Michiel Hasselo SmitsParticipantThanks,
Can you also share where to add this code? I cannot just save this in the functions.php
`echo $service->getDescription();
Regards,
MichielJune 1, 2023 at 11:54 am #1463336J. DavisKeymasterHi,
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.
best regards,
John Davis - AuthorPosts
- You must be logged in to reply to this topic.