i didnt see much use in having a traditional cart page for a hotel room booking after clicking the 'book this room' button on the search results page.
i therefore setup a cart redirect under the ubercart cart settings to go directly to the checkout page after adding a room through the search results. this worked fine until recently.
other products in my ubercart redirect fine to the checkout. it is only when adding a reservation that it redirects to the homepage with a drupal message stating
'product added to your cart'
i'm thinking that an error is happening in the background causing this to happen, but my site logs show nothing.
any ideas?
Comment | File | Size | Author |
---|---|---|---|
#5 | 673182.patch | 998 bytes | willvincent |
Comments
Comment #1
willvincent CreditAttribution: willvincent commentedThe hotel booking module has its own redirect setting so that it can be configured to redirect to the upgrade/addon product form after a booking is added to the cart.
My guess would be that is what's causing the issue. Try altering the setting for the redirect options at /admin/store/hotel_booking/hotel_settings
Comment #2
willvincent CreditAttribution: willvincent commentedComment #3
clevername CreditAttribution: clevername commentedAlright found it and fixed it. Seems the real issue is that the 'URL to redirect to' field is reset to blank after clicking the 'save configuration' button at the bottom of the page. So that if you ever change anything else on the page later without re-entering your redirect link again, it screws up the redirect setting.
Comment #4
willvincent CreditAttribution: willvincent commentedThat should not be the behavior of that form element... I will take a look and fix it if necessary
Thanks
Comment #5
willvincent CreditAttribution: willvincent commentedOk, the problem was not that the value wasn't being stored, but the the variable_get command to populate that field in the form was incorrect so it wasn't reloading it on future loads of the admin form, ultimately causing it to be cleared.
The attached patch will fix this issue.
Apply it before the next time you make changes in the hotel settings admin form and you shouldn't have to reset the value again.
Comment #6
willvincent CreditAttribution: willvincent commented