Room quantity is not reflecting the correct on merchant payment page.
-
AuthorPosts
-
-
January 7, 2019 at 3:15 PM #389327jasonchuah4Participant
Hi,
I found out that the room quantity that I’ve booked is not reflecting the actual quantity booked. Please refer to the images below.
In my staging website I booked 7 rooms (https://prnt.sc/m3ywsu), but when making payment on Paypal platform, it only shows 1 quantity (https://prnt.sc/m3ywr2).
I suspect the code in here having some issue.
/** * Get cart description * * @return string */ if ( !function_exists( 'hb_get_cart_description' ) ) { function hb_get_cart_description() { $cart = WPHB_Cart::instance(); $description = array(); foreach ( $cart->get_rooms() as $room ) { $description[] = sprintf( '%s (x %d)', $room->name, $room->quantity ); } return join( ', ', $description ); } }
in wphb-cart-functions.php – line 60.
-
January 9, 2019 at 3:18 PM #390337AdminParticipant
Hi jasonchuah4,
How can I see the issue if I can’t checkout by PayPal? :) Can you please setup sandbox account so I can check?
Thoa Kim
———-
ThimPress Support Team
(GMT +7)
-
January 9, 2019 at 3:35 PM #390356jasonchuah4Participant
Hi Kim,
Kindly head to https://staging-rickresort.whenyoufree.com to test it out. I cannot setup a Paypal sandbox on the live website, sorry for the inconvenienced caused.
When prompt for Paypal sandbox username and password, use this following:
Username: [email protected]
Password: jasonchuah4-buyerRegards,
Jason Chuah -
January 15, 2019 at 9:01 AM #392651AdminParticipant
The issue has been resolved http://prntscr.com/m79qjp. Check it out plz.
Thoa Kim
———-
ThimPress Support Team
(GMT +7)
-
January 15, 2019 at 3:16 PM #392844jasonchuah4Participant
Hi Kim,
Appreciate your effort. Seems it is fixed already. :)
And for the hotel plugin functionality enhancement, are you able to add in a room availability validation before user click on the Pay Now button? Because for now, I can see the plugin only check for room availability when user select date, after the room is added into the cart, the steps after that doesn’t check for room availability again.
There are cases where user A selects a room and add into the cart, but he didn’t make payment immediately. And user B selects the same room on the same date and make the payment, so the room is booked and is not available for the date already. But after that user A make payment and hence, the booking got through and it becomes an overbook issue.
So if possible, I would like to have a validation before user make payment, at least it could prevent this overbooking issue.
Regards,
Jason
-
-
AuthorPosts
You must be logged in to reply to this topic. You can click here