Skip to main content

Different currency discounts

More
12 years 6 months ago #148721 by esotechie
-- 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.

More
12 years 6 months ago #148736 by nicolas
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:
Code:
'discount_currency_id = '.hikashop_getCurrency(),
after the line:
Code:
'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.

More
12 years 6 months ago #148772 by esotechie
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.

More
12 years 6 months ago #148785 by nicolas
That's indeed the case for that modification.

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

Time to create page: 0.226 seconds
Powered by Kunena Forum