Pricing on the checkout page.

This topic contains 3 replies, has 3 voices, and was last updated by   J. Davis 2 days, 7 hours ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #904959

    Ryan Labelle
    Participant

    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:

    prices_611.jpg

    #907075

    Steve
    Keymaster

    Looks 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.

    #908393

    Ryan Labelle
    Participant

    That’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?

    #909379

    J. Davis
    Keymaster

    Hi 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. Davis

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.