Free and Premium WordPress Plugins & Themes Forums WordPress Plugins Hotel Booking Pricing on the checkout page.
- This topic has 7 replies, 5 voices, and was last updated 4 years, 7 months ago by Ryan Labelle.
- AuthorPosts
- January 14, 2020 at 9:04 pm #904959Ryan LabelleParticipant
It appears that I have to select the number of people, but before I can see the default price. The checkout page shows two different prices: lowest price in price breakdown, and highest price at the bottom of the page. That’s kind of confusing. Any ideas on how to work around this?
Here is a screenshot:
January 20, 2020 at 5:13 pm #907075SteveKeymasterLooks like ‘Price Breakdown’ shows ‘Base Price’, while ‘Total Price’ shows price per variation (with accommodation capacity). We’ll fix this issue in next updates. Thank you.
January 23, 2020 at 12:27 am #908393Ryan LabelleParticipantThat’s great thanks you.
Is there is a simple way to change the code of that variable, so as to show the base price?
A hook or filter? Or to template one of the files in my child theme?
January 24, 2020 at 4:43 pm #909379J. DavisKeymasterHi Ryan,
Thank you for your question. We would recommend for this fix to be released in the next version. Though you will need to replace code in this file
/motopress-hotel-booking/includes/shortcodes/checkout-shortcode/step-checkout.php
replace this
$this->booking = apply_filters('mphb_sc_checkout_step_checkout_booking_object', Entities\Booking::create($bookingAtts));
with this
MPHB()->reservationRequest()->setupParameter( 'pricing_strategy', 'base-price' ); $this->booking = apply_filters('mphb_sc_checkout_step_checkout_booking_object', Entities\Booking::create($bookingAtts)); MPHB()->reservationRequest()->resetDefaults( array( 'pricing_strategy' ) );
best regards,
J. DavisJanuary 30, 2020 at 6:11 pm #911937Pascal GroßParticipant+1
But the suggested fix does not fix the problem for me.
- This reply was modified 4 years, 8 months ago by Pascal Groß.
January 30, 2020 at 8:26 pm #911956Ryan LabelleParticipantThanks J. I’ll try this solution. 🙂
February 10, 2020 at 3:07 pm #916404Mary EvansParticipantHello,
We are glad to inform you about update of the Hotel Booking plugin to the version 3.7.4 where we have fixed the issue with the price discrepancy between the Price Breakdown table and Total Price when the number of guests is not set.We notify you since you have requested this fix in Hotel Booking.
If you own a Hotel Booking plugin purchased apart from a rental theme you may get this version now. Though Hotel Booking plugin that was integrated into themes will be updated later with next theme release.
Let us know if you have any further questions.
Best Regards,
M. EvansFebruary 10, 2020 at 9:15 pm #916601Ryan LabelleParticipantThanks Mary. I’ll make sure to update. Awesome.
- AuthorPosts
- You must be logged in to reply to this topic.