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 am looking for a way to give discount for long-term. For example:
1-6 days - 100% per day
7-30 days - 80% per day
30-year - 50% per day
What do you think can be the right solution for it ?
Is the only way is to create new kind of modifiers (similar to occupancy) ?
Comments
Comment #1
willvincent CreditAttribution: willvincent commentedThis functionality is in the works..
You will be able to set up discounts based on a variety of criteria and assign specific actions to take if those criteria are met... kind of like conditional actions.
It will be a very flexible system, but that flexibility also makes it a bit more challenging to develop. It will be in a future version.
Comment #2
willvincent CreditAttribution: willvincent commentedComment #3
dasii CreditAttribution: dasii commentedWe are looking for this functionality as well ...
For your reference -
Our specific needs are:
1. First night - Add a fixed service charge
2. Four Night Weekend (Check-in on a Thursday or a Friday, Check-out on a Monday or Tuesday) - A percentage or dollar value discount and no first night surcharge (or incorporated in the discount).
3. Weekly Rate - A percentage or dollar value discount and no first night surcharge (or incorporated in the discount).
These need to be 'availability calendar' aware.
Of course, it would be great if the options became available as dates are selected, although packages might be handled differently.
Comment #4
szczym CreditAttribution: szczym commentedWe are looking fo it too, at our case its just every 7th night is free.
maybe there is some way to define it via other ubercart modules ? im beginner with that cart thing
Comment #5
willvincent CreditAttribution: willvincent commentedszczym: It is possible that you could implement that sort of specific functionality through the ubercart discount framework, but even in that case it would take some custom coding.
The planned discount/promotional pricing system will handle this and every other situation listed here in stride. It will be similar to conditional actions or rules, in that each discount or promotion will have certain conditions that must be met before it applies the discount. This portion of code is still several months out.
Comment #6
weblance CreditAttribution: weblance commentedDiscount does not work with UC hotel booking. I have tried already.
Comment #7
willvincent CreditAttribution: willvincent commentedAs I said, it would require custom coding. It will not work out of the box.
Comment #8
matt s CreditAttribution: matt s commentedHi all,
Very new to Drupal development but extremely impressed with the possibilities and this module.
I was curious to know if this feature, as mentioned in the above posts has been addressed in any subsequent releases (Im currently testing 2.0-beta4). If so I may just need some further information on how/where to adjust it.
For context, we would like to advertise a simple 5 days + = 10% overall discount, 7 days + = 15% for example.
Thanks, Matt
Comment #9
larowlanThanks
This sub-module has been written (thanks to Johan (Mr J)) for sponsoring my work on this.
It supports
*Length of stay discounts (applied to all nights/subsequent nights) with compounding rates if desired
*Length of stay based rates (eg weekly or monthly rates)
I'll include it with the next release which should be in the next two weeks, all things going to plan
Comment #10
spydmobile CreditAttribution: spydmobile commentedSubscribe - Great looking forward to it, I have need of:
small room + large room = discount rate
small room + large room , and over 7 days = discount rate + additional discount
Comment #11
larowlanhi, in the dev version of the 6.2 branch you can find a module called hotel discounts.
it will do the second of your two options and you can use it as a basis for the first of the two.
php5 required.
Comment #12
spydmobile CreditAttribution: spydmobile commentedHi Lee, Nice! I missed that but now have the Dev and new features! This is great and I guess this will all be in the next release version too? Anyhow thanks for responding so quick, But I still need your guidance/advice. My Client *INSISTS* (read this as they want it this way no matter how inappropriate I say it is) on what we are calling "The Suite" Challenge
The customer has a bed and breakfast with 2 rooms one standard and one master. in the store I have created two room types to match, but the customer insists they want to use "The Suite" Strategy ARGGHH.
The Suite is nothing more than renting the master room and the standard room together at a discounted rate. I have tried creating a Kit, that does not work with this module, I tried letting the client handle it manually in email/paypal but that puts the room availability out of sync, and I have tried letting them sell both rooms at full price then give a refund on the credit card, this has caused no end of trouble with the govt. clients of the BandB who have to do crazy paperwork for a refund they dont even care about.
I tried convincing the client to let this go , but they insist on this approach, so I am now trying to find a way to use conditional actions to detect both rooms in the cart and give a discount but now I cannot see rooms in the conditions, but I can see availability in the actions so I know this module is aware. How do I now make my room types available to be detected in the cart??? Maybe this should be in a new issue?
Thanks for a great module, it holds great promise and a very active future!!!
Franco
Comment #13
larowlanHi
You should be able to achieve what you need by implementing hook_cart_item.
This is an Ubercart hook that allows other modules to operate on cart items.
You can use uc_cart_get_contents to see what is in the cart.
Look at uc_attributes for an example.
Lee
Comment #14
larowlanSorry, should have said this requires making a custom module.
If you're not keen on doing that, I can quote on it, it won't be much.
Lee
Comment #16
spydmobile CreditAttribution: spydmobile commentedHi Lee, that would be awsome. PM me a quote on it (I have to go over it with the client but I think they will be happy) and we can give it back to the community......
Comment #17
Aldus CreditAttribution: Aldus commentedanyone working on this already? Would be useful to me and my customer.
If someone is interested in this development I can quote on it as well, would take me something like 8 hours.
Comment #18
larowlanThere is a submodule called hotel discounts that comes with the module that does this.
Comment #20
ayalsule CreditAttribution: ayalsule commented@larowlan
please ,what is the name of the module
Comment #21
willvincent CreditAttribution: willvincent commentedhotel discounts
It's packaged with uc_hotel, just needs to be enabled and configured.
Comment #22
ayalsule CreditAttribution: ayalsule commented@willvincent
thanks but where The uc_hotel include Hotel Booking, and Hotel Booking - Upgrades & Addons
I didn`t see hotel discounts
Comment #23
willvincent CreditAttribution: willvincent commentedI believe it's only part of the dev version currently.
Comment #24
larowlanTry the dev release.
Also it's not in the 'Ubercart - Hotel' group.
If you've got drush run
Comment #25
ayalsule CreditAttribution: ayalsule commented@larowlan ,@willvincent
thanks
as you said it`s included in dev version thanks
Comment #26
Anonymous (not verified) CreditAttribution: Anonymous commentedWill discount module be available for 7 version?
Thank you in advance
Comment #27
larowlanEventually, just need to find the time.