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

willvincent’s picture

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

willvincent’s picture

Status: Active » Postponed
dasii’s picture

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

szczym’s picture

We 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

willvincent’s picture

szczym: 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.

weblance’s picture

Discount does not work with UC hotel booking. I have tried already.

willvincent’s picture

As I said, it would require custom coding. It will not work out of the box.

matt s’s picture

Hi 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

larowlan’s picture

Version: 6.x-1.x-dev » 6.x-2.0-beta4
Assigned: Unassigned » larowlan
Status: Postponed » Active
Issue tags: +Release blocker

Thanks
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

spydmobile’s picture

Subscribe - 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

larowlan’s picture

hi, 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.

spydmobile’s picture

Hi 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

larowlan’s picture

Hi
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

larowlan’s picture

Sorry, 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

spydmobile’s picture

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

Aldus’s picture

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

larowlan’s picture

Status: Active » Fixed

There is a submodule called hotel discounts that comes with the module that does this.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

ayalsule’s picture

@larowlan
please ,what is the name of the module

willvincent’s picture

hotel discounts

It's packaged with uc_hotel, just needs to be enabled and configured.

ayalsule’s picture

@willvincent
thanks but where The uc_hotel include Hotel Booking, and Hotel Booking - Upgrades & Addons
I didn`t see hotel discounts

willvincent’s picture

I believe it's only part of the dev version currently.

larowlan’s picture

Try the dev release.
Also it's not in the 'Ubercart - Hotel' group.
If you've got drush run

drush en -y hotel_discounts
ayalsule’s picture

Version: 6.x-2.0-beta4 » 6.x-2.x-dev

@larowlan ,@willvincent
thanks
as you said it`s included in dev version thanks

Anonymous’s picture

Will discount module be available for 7 version?

Thank you in advance

larowlan’s picture

Eventually, just need to find the time.