Rome
Account created on 24 February 2006, almost 19 years ago
#

Merge Requests

Recent comments

🇮🇹Italy afagioli Rome

update title

🇮🇹Italy afagioli Rome

Deprecaed

🇮🇹Italy afagioli Rome

Deprecated

🇮🇹Italy afagioli Rome

DEPR

🇮🇹Italy afagioli Rome

Depr

🇮🇹Italy afagioli Rome

add label DEPR

🇮🇹Italy afagioli Rome

fix link

🇮🇹Italy afagioli Rome

Deprecated

🇮🇹Italy afagioli Rome

Deprecated. Exposed updated link

🇮🇹Italy afagioli Rome

improve text

🇮🇹Italy afagioli Rome

custom PA status

🇮🇹Italy afagioli Rome

update path, add custom PA how to

🇮🇹Italy afagioli Rome

update module list

🇮🇹Italy afagioli Rome

update modules

🇮🇹Italy afagioli Rome

updating for Drupal 11

🇮🇹Italy afagioli Rome

update composer require

🇮🇹Italy afagioli Rome

Remove from page  assumption "Please do it only if you really know what you're doing, though." which is true for every doc page on drupal.org

🇮🇹Italy afagioli Rome

correcting nonstandard spelling "tho" 

🇮🇹Italy afagioli Rome

This is a scenario where modules need one eachother.
They can all be disabled via
drush pm:uninstall module1 module2 etc

What you are correctly pointing out is a UI limit discussed here
https://www.drupal.org/project/drupal/issues/3374766 📌 Allow uninstalling modules and the modules which are dependent in the same action Needs work

🇮🇹Italy afagioli Rome

add drupal version and time or reference

🇮🇹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.

Production build 0.71.5 2024