Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have a module that implements hook_rooms_price_modifier_alter ::
/**
* Implements hook_rooms_price_modifier_alter().
*/
function pricing_rooms_price_modifier_alter(&$price_modifiers, $booking_info)
{
// This modifies all Units to have a price of 100
$price_modifiers['a'] = [
'#type' => ROOMS_DYNAMIC_MODIFIER,
'#quantity' => 1,
'#op_type' => ROOMS_REPLACE,
'#amount' => 100
];
}
This shows the correct price in the search results. When I book that unit, the basket shows the wrong price. It has not called my hook_rooms_price_modifier_alter function, so the price modifiers are not applied.
Viewing my unit in the search results shows the price to be £100. Clicking on 'Book Now' then adds it to the basket with the wrong price.
Comments
Comment #1
ITWest-jg CreditAttribution: ITWest-jg commented