Here are my issues.

1. I do not see end date on the block
2. when I clicked the "create order", I am getting the following error.

Do you have idea?

CommentFileSizeAuthor
error.PNG3.27 KBparkydrupal
block.PNG7.15 KBparkydrupal

Comments

parkydrupal’s picture

I figured out one issue.

for the block issue,
If you do not add "Label of date2" on a category, the date field won't display on the block.

the second one, I do not know yet.

Now, I have one more question. How can I modify the block?
I would like to get rid of the unit field. Does any one know how to modify this block?
I checked all the views but, could not find them yet.

agill’s picture

hello, thanks for the error report.
i will have a look at this and report back the following days if nothing
unforeseen happens (like server-errors or other catastrophes) ;-)

regarding the unit field and how to get rid of it:
in the category-node there is a drop-down field with the label:
"Ask number of units? "

if you select no, the unit number field should be deactivated in the search widget.

parkydrupal’s picture

Hello,
Durpal is community based project.
I know my question is a simple & easy. But I like to share what I found.
there are some functions such as hook_block_info(), hook_block_view(). these functions are the start point.
I found a great book for a module development. the book is "Drupal Module Development" by packt.

Hope this helps,

zeezhao’s picture

I also saw these errors.

FranCarstens’s picture

Issue summary: View changes

For anyone else looking to de-activate the "Ask number of units?" field display, the "if" on the code was commented out for some reason in agreservations.module.

1286   // if ($cat->field_agres_shownumberunits[$langcode][0]['value'] == 1) {
1287     $form['unittypebook']['units'] = array(
1288       '#prefix' => '<div>',
1289       '#type' => 'select',
1290       '#title' => t('units'), //$category->title . ' ' . t('count'), //t('Units'),
1291       '#default_value' => $cat->field_agres_numberunits[$langcode][0]['value'],
1292       '#options' => array(
1293         1 => 1,
1294         2 => 2,
1295         3 => 3,
1296         4 => 4,
1297         5 => 5,
1298         6 => 6,
1299         7 => 7,
1300         8 => 8,
1301         9 => 9,
1302         10 => 10,
1303       ),
1304       '#suffix' => '</div>',
1305     );
1306   //}

Just uncomment line 1286 and line 1306 and the function should work.