Different currency discounts

  • Posts: 180
  • Thank you received: 13
10 years 8 months ago #148721

-- HikaShop version -- : 2.3.0
-- Joomla version -- : 3.1.1

Hi

We are looking to have a site with 2 currencies, with the prices entered for each product for both currencies. We would also like to have some discounts, but the discounts should be by currency, e.g.

Price £20 - Discount £5 - Final price £15
Price €24 - Discount €4 - Final price €20

But Hikashop takes all discounts into account, calculates the conversion and applies the largest. So here we would end up with

Price £20 - Discount £5 - Final price £15
Price €24 - (Discount €4 ignored) - Discount £5 (€5.95) - Final price €18.05

Is there a way to force the discounts to only apply to the currency they are set for?

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 years 8 months ago #148736

Hi,

There is no option for that.
You would have to edit the file administrator/components/com_hikashop/classes/currency.php and add the line:

'discount_currency_id = '.hikashop_getCurrency(),
after the line:
'discount_start < '.time(),
Note that you need to do that change twice in the file.

The following user(s) said Thank You: esotechie

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

  • Posts: 180
  • Thank you received: 13
10 years 8 months ago #148772

You are a hero Nicolas. Thank you.

I assume we have to keep on top of this and do this after every update.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
10 years 8 months ago #148785

That's indeed the case for that modification.

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

Time to create page: 0.052 seconds
Powered by Kunena Forum