Hello,

I am trying to integrate this module with Ubercart. I'd like shoppers to be able to choose their delivery date from the Availability Calendar on the product page and then click "Add to Cart". The issue is that it seems like they must click the "Book This Resource" button in order to book, which takes them away from that product page. Is there some way to bind the "Book" button to the "Add To Cart" button, or (better yet) allow the system to confirm that the order has been completed before booking the date that they chose?

I am opening to funding this development... please contact me if this is an option.

Thanks!

Comments

hockey2112’s picture

Issue summary: View changes
fietserwin’s picture

I thought I had answered this morning, but apparently I had closed the browser before saving.What I answered this morning (not exactly, but the same ideas):

The book now button is defined as a field in a sub module. It indeed redirects to a new page, but that page is configurable (even multi-lingual); the method is configurable (get/post) and with a hook_form_alter you can add/change the fields on the form. you can also set it as a select single date only (your case).

But, if I understand correctly, in your situation, the field is (or should be) part of a larger form (cart/checkout), and as such you do not want the form tags and the buttons rendered by this field, but just the date fields (and probably the hidden fields). I guess that by defining a new field formatter, this should not be too difficult. The new formatter should only render the date fields, not the buttons. it should also still interact with the calendar, so the existing js can either be reused or be adapted slightly to the new situation.

If you want to do so, fine. If we indeed manage to arrive at a solution for you with a new formatter, I will add it to the module (and of course add you and your project to the sponsor list) and take over maintenance. If you want me to do it, please contact me personally (of course, also in this case, your project will also be added to the sponsor list).

fietserwin’s picture

Status: Active » Closed (outdated)

I am currently going through the issue queue and am closing old issues that have not had any response since long. Please feel free to reopen if you still want this feature, providing as much of the requested details as possible and how this issue can be forwarded (developing it yourself, funded development, ...).