Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello larowlan,
As in site i want let user to add their hotels(room content type). This user will pay and and add room type content. But the prices for the hotel he would not able to add . As we add Base rate from admin system . So i want user be able to add prices recently admin can do this. So can it possible in this module.
Thanks & Regards
CIS.DRUPAL
Comments
Comment #1
larowlanNot sure what you're asking here.
I think you're saying you want the user to be able to nominate prices when they create their listing.
The forms that are used for the base rates etc are all editable using hook_form_alter so you can add your own logic if needs be.
Lee
Comment #2
cis.drupal CreditAttribution: cis.drupal commentedHello Lee,
Actually i want when user other than admin create a room type content then he should be able to add the price of hotel. Recently he has to select a Base rate or any other rate made by admin from the url
admin/store/hotel_booking/rates/add.
Thanks
CIS.DRUPAL
Comment #3
larowlanHi
This is getting on the trickier side of things.
You can embed the form in the node form by calling the form builder function.
You'll then need to attach additional validation and update/insert logic to the node save operation using hook_nodeapi.
You should be able to reuse logic from the module for the saving/inserting of the pricing. After you save the prices, you'll need to then write the new base rate id to the appropriate table (mimicing what the user does when they select a base rate on the node edit form)
LR