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

larowlan’s picture

Not 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

cis.drupal’s picture

Hello 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

larowlan’s picture

Hi
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