Rome
Account created on 24 February 2006, over 18 years ago
#

Merge Requests

Recent comments

🇮🇹Italy afagioli Rome

See https://www.drupal.org/project/drupal/issues/3300835#comment-14861838 🐛 Title not translateable Closed: duplicate

🇮🇹Italy afagioli Rome

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

🇮🇹Italy afagioli Rome

You may set the weekly time table with desidered price.
What is you set your X price for every day/season?

🇮🇹Italy afagioli Rome

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

🇮🇹Italy afagioli Rome

ah! Thanks a lot Carlitus

It's my bad really
I must extend the phpcs check to *modules

🇮🇹Italy afagioli Rome

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

🇮🇹Italy afagioli Rome

https://www.drupal.org/project/bee_hotel/issues/3443554 🐛 'Room search' crash for bad image style Needs review

🇮🇹Italy afagioli Rome

How do we know whether this page is related to Drupal 7 or later?

🇮🇹Italy afagioli Rome

apply phpcs to "array()"

🇮🇹Italy afagioli Rome

Patch is facing more that this issue.
Better split in smaller pieces to be evaluated one by one

🇮🇹Italy afagioli Rome

More real world use cases would be welcome...

🇮🇹Italy afagioli Rome

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

🇮🇹Italy afagioli Rome

@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.

🇮🇹Italy afagioli Rome

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

🇮🇹Italy afagioli Rome

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.

🇮🇹Italy afagioli Rome

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.

🇮🇹Italy afagioli Rome

MR welcomed into the right place
Thanks!

🇮🇹Italy afagioli Rome

format

🇮🇹Italy afagioli Rome

fix error, improve readability.

🇮🇹Italy afagioli Rome

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.

🇮🇹Italy afagioli Rome

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!

🇮🇹Italy afagioli Rome

latest 2.21.7 Stable release released 5 April 2024 tested agaist the above install guide

🇮🇹Italy afagioli Rome

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

Production build 0.69.0 2024