Coupons and Discounts

  • Posts: 292
  • Thank you received: 5
  • Hikashop Business
13 years 8 months ago #11199

An interesting issue has just been raised.

Regular customers get a voucher giving them 10% off.
However, a short period special 5% discount is also running.

Don't want to give regular customers 10% off the discounted price.
An option to ignore the discount if the customer enters a voucher worth more might be useful.

Another solution in this case might be to use ACLs - put regular customers in a regular customer ACL group which automatically gives them a 10% discount.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 8 months ago #11224

You have different solutions indeed.
You could limit the discount to some groups and the vouncher (counpon) to another group and put your regular customers into that group. That way, they wouldn't get the 5% discoun in the prices but could use the 10% oupon.

Please Log in or Create an account to join the conversation.

  • Posts: 292
  • Thank you received: 5
  • Hikashop Business
13 years 6 months ago #16005

Been thinking about this issue a bit more.

Could an option be added to (say to a coupon) so that:

(a) Discounted price is shown in shop / cart / checkout by default (as current)
(b) Customer enters a voucher (as current)
(c) Non-discounted total price calculated.
(d) Voucher discarded if non-discounted total price minus voucher is less then discounted total price.
(e) Voucher used and discount ignored if non-discounted total price minus voucher is more than discounted total price.
Prices in checkout changed to show non-discounted prices.
(f) Need to delete voucher(s) and start again if customer goes back into shop and adds another product to cart.

Products with different discounts / vouchers should work in the above scenario.

Confusing for customer they put a £90£100 (i.e. 10% discount) item into cart and then enter a 25% voucher.
The item price changes to £100, £25 voucher discount shown and total price of £75 shown.

Anyone have other thoughts on this subject?

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 6 months ago #16072

I'm not sure about adding such option. It seems that not a lot of users would have a need for it but that it would mean some serious hacks in the structure of HikaShop in order to handle the possibility of not applying discounts to prices based on the coupon in the cart...

There is a way of overriding HikaShop which isn't documented but would allow you to easily implement the changes you want without touching the core files of HikaShop.

In the function hikashop::get, the system only include the file if the class does not already exists. So you could create a joomla system plugin and override the hikashopCurrencyClass and hikashopCartClass classes by defining a copy of them there with your changes. That way, you would have your classes loaded before hikashop's and you would be able to do that with a few changes to them.

Please Log in or Create an account to join the conversation.

  • Posts: 292
  • Thank you received: 5
  • Hikashop Business
13 years 6 months ago #16080

Thanks for the tip, useful to know if in a corner, but would prefer to avoid for now.

Maybe not a good idea having a 10% off everything promotion and giving out 25% vouchers off everything at the same time. Need to find out where this idea is coming from and what they are really thinking. If the 25% is for selected customers then ACLs could be the way to go.

Please Log in or Create an account to join the conversation.

  • Posts: 292
  • Thank you received: 5
  • Hikashop Business
13 years 6 months ago #16136

One solution is to have 2 vouchers.

VOUCHER1 - say for 5% with auto-load in cart option enabled.
VOUCHER2 - say for 10%.

On checkout a customer wishing to use VOUCHER2 could delete VOUCHER1 and enter VOUCHER2 instead.

As the discounted prices are NOT displayed, would require shop owner to make sure the offer is prominently advertised throughout the site.

On testing this on the demo site found that I could not delete VOUCHER1 and enter VOUCHER2 at the checkout. Bug? :unsure:

Also, untested, what would happen in the following scenario:
Both vouchers have auto-load in cart enabled.
VOUCHER2 is only enabled for certain customers.
Will VOUCHER2 be the one to get automatically loaded?
What will happen if VOUCHER2 is worth less than VOUCHER1 (no ACL on VOUCHER1).
Will VOUCHER1 then get auto-loaded instead of VOUCHER2?

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 6 months ago #16145

auto loaded coupons are automatically loaded. If you remove it, it will be back automatically.

You should put both coupons on auto load. Actually, the auto loaded coupons are not reselected automatically when the cart changes. With next version of HikaShop, the auto load will automatically reselect the coupon if you change the cart so that it will switch between the 5% and the 10% automatically.

The system auto loads the best coupon possible. So if a group has two auto loaded coupon and one is better than the other, the most interesting one for the customer is selected.

Please Log in or Create an account to join the conversation.

  • Posts: 292
  • Thank you received: 5
  • Hikashop Business
13 years 4 months ago #21023

Have a possible solution to the 5% product discount and 15% voucher issue where the shop owner wants to limit the total saving to 15%.

Products displayed in shop in normal way with any applicable product discounts.
For instance customer buys £100 worth of goods for a total discounted price of £88.
They then enter a voucher which gives them UP TO 20% off the NORMAL PUBLISHED PRICE.

Without any product discounts this would be worth £20, but they already have £12 worth of discounts.
So the voucher is only worth £8 - that is the value that gets displayed and used in the cart.

Similarly if the voucher gave them up to £30 off (as opposed to a percentage), then it would be worth only £18.

Would require some sort of 'Voucher off published price' field on the discounts table - default would be existing behaviour.

Does this seem like a reasonable solution, one for the wishlist?

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 4 months ago #21051

That sounds more like something possible indeed. We'll add that to the todo list.

Please Log in or Create an account to join the conversation.

  • Posts: 292
  • Thank you received: 5
  • Hikashop Business
13 years 4 months ago #21055

Thanks.

Please Log in or Create an account to join the conversation.

  • Posts: 1
  • Thank you received: 0
13 years 2 months ago #25910

Hi Nicolas, did this make it into release 1.5.3?

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 2 months ago #25927

No and it won't be in 1.5.4 either.

Please Log in or Create an account to join the conversation.

  • Posts: 292
  • Thank you received: 5
  • Hikashop Business
13 years 1 month ago #26844

Any target date / release for this please?

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 1 month ago #26857

We didn't had time to work on that one yet. We don't have it in plans for next release either.

That could be done by adding some code in the function check of the file administrator/components/com_hikashop/classes/discount.php
in order to alter the coupon price based on the prices of the products in the cart and an additional option in the coupon edition interface.

I know that you're good at coding so I'm sure that you would be able to handle it on your own without too much trouble. We're getting short on resources at the moment over here.

Please Log in or Create an account to join the conversation.

  • Posts: 292
  • Thank you received: 5
  • Hikashop Business
13 years 3 weeks ago #28493

Please Log in or Create an account to join the conversation.

Time to create page: 0.093 seconds
Powered by Kunena Forum