patch #2 seems to work
See https://www.drupal.org/project/drupal/issues/3300835#comment-14861838 🐛 Title not translateable Closed: duplicate
I'd suggest price alterators, for a better flexibility.
"if a 'double room', for example, needs to have a different price for one guest and a higher price for two guests"
use the "Occupancy" alterator.
if existing alterators won't be enough, write a custom price alterator to override price at wish, limitless.
Even is BEE HOTEL is not meant to be used in a multistore enviroment, the node control may help you splitting units across more owners. it may be an interesting implementation. Please share with us your progress
You may set the weekly time table with desidered price.
What is you set your X price for every day/season?
afagioli → created an issue.
you have it fixed already in 8.x-10.x
https://git.drupalcode.org/project/bat/-/blob/8.x-10.x/modules/bat_event...
That's why was that difficult to re-create. Better use latest release where possible
ah! Thanks a lot Carlitus
It's my bad really
I must extend the phpcs check to *modules
Thanks for pointing that out!
Next release will have something like
/**
...
use Drupal\image\Entity\ImageStyle;
/**
* Implements hook_requirements().
*/
function bee_hotel_requirements($phase) {
$requirements = [];
/*
* Check image styles
*/
// Required image styles.
$data['required']['styles'] = [
"cover_image_teaser",
"thumbnail",
];
$styles = ImageStyle::loadMultiple();
foreach ($data['required']['styles'] as $required_style) {
$key = 'bee_hotel_style_' . $required_style;
$missings_styles[$required_style] = FALSE;
$requirements[$key] = [
'title' => t('Required image style'),
'description' => t('@style not fund. Please <a href="/admin/config/media/image-styles">check or create image style @style', ['@style' => $required_style]),
'severity' => REQUIREMENT_ERROR,
];
foreach (ImageStyle::loadMultiple() as $id => $object) {
if ($required_style == $id ) {
unset($requirements[$key]);
}
}
}
return $requirements;
}
inside bee_hotel.install, reporting missing requirements, as styles.
To be noted also required styles are created by the samplehotel_beehotel module
Done!
Thanks a lot
https://www.drupal.org/project/bee_hotel/issues/3443554 🐛 'Room search' crash for bad image style Needs review
How do we know whether this page is related to Drupal 7 or later?
Inactivity and lack of details. Closing
I'm afraid this is not related to #3411329
Note: The https://git.drupalcode.org/project/bee/-/merge_requests/4/diffs:206 part is removing argument description, required as Drupal code standard.
Patch is facing more that this issue.
Better split in smaller pieces to be evaluated one by one
More real world use cases would be welcome...
BeeHotel works with daily units.
You can of course have more BAT hourly entity not managed byt BEE HOTEL of course (IE: upsells)
If an error occors, that would be a bug
Please follow the guide with beehotel_samplehotel to get rid of the "field_availability_daily" issue
@londova, drupal.org needs best positive contributions.
BeeHotel also needs best positive contribution.
...module cannot be installed from Admin interface...
not true
...should be removed from the Drupal website...
not true.
Maybe you need to discuss this with more people.
The guide is for a error free install. I'd suggest:
* start a fresh Drupal instance
* follow the guide
* report details
* post new issues when different problems come up
Going academically, following the install guide, at which point you receive?
"Drupal\Component\Plugin\Exception\PluginNotFoundException: The "commerce_checkout_flow" entity type does not exist. in Drupal\Core\Entity\EntityTypeManager->getDefinition() (line 139 of core/lib/Drupal/Core/Entity/EntityTypeManager.php)."
Please share modules already installed before the exception.
BeeHotel setup is a strict sequence of steps really. Drush makes it doable. I'm just not sure you can run a business based on Beehotel without drush at all.
This issue is to be closed "works as designed". Please closed it back once we agree this concept is acceptable.
MR welcomed into the right place
Thanks!
Thanks for MR!
module running constantly.
Well, the samplehotel module is just a bunch of setup script run on install.
Once install is done, there's nothing really to be run from it. Weightless.
I see...
The sample hotel module will help you anyway: open the code and follow the setup process by hand.
Note also that once setup is done (manually or not), you may try and remove beehotel_samplehotel_uninstall()
and then get rid of the module with drush pm:uninstall beehotel_samplehotel
. The set up will stay there.
Please share your progress.
Thanks!
latest 2.21.7 Stable release released 5 April 2024 tested agaist the above install guide
You can install BEE on Drupal 10.2.* following this guide
https://www.drupal.org/docs/extending-drupal/contributed-modules/contrib... →
From code, I see the "/node/NODE_ID/add-reservation" form will add the actual node to empty (or new) carts.
For different uses, write some code for a new custom form
Fixed with bat_get_entity_display()
Applied
See "Type" as template, canvas, model.
Tested with https://www.drupal.org/project/bat/issues/3420929 🐛 Trying to access array offset on value of type null in bat_event_cron Needs review
Moving back to the BEE module issue queue