Post by oli-infa » Fri Oct 30, 2020 1:04 am

Hello,
I have a site using GBP as default and euro as a second currency.
I have a value of 1 in the value field for both currencies under localizations >> currency meaning if someone has euro set they will buy a voucher for €100. (we have an extension for product prices allowing us to set different price for each currencies so we don't actually use the currency conversion from OP)
The issue is that the voucher is sent as £100 and a user can redeem it as either £100 or €100 which do not have the same value.

If I add a more accurate currency conversion then someone in euro can buy set the voucher value to 100 without knowing it is in sterling and be charged €115 at checkout for instance which is confusing and not what they actually want to do since they want to offer €100

Is there a way or extension that a voucher if sold in euro is actually in euro and only redeemable in euro?

Newbie

Posts

Joined
Wed Jul 22, 2020 4:44 pm

Post by khnaz35 » Fri Oct 30, 2020 1:21 am

Contact the extension developer to resolve the issue.

Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by oli-infa » Fri Oct 30, 2020 4:52 pm

Contact the extension developer to resolve the issue.
What extension developer? The vouchers seem to be part of the core?

Newbie

Posts

Joined
Wed Jul 22, 2020 4:44 pm

Post by straightlight » Fri Oct 30, 2020 7:16 pm

oli-infa wrote:
Fri Oct 30, 2020 4:52 pm
Contact the extension developer to resolve the issue.
What extension developer? The vouchers seem to be part of the core?
Correct. Which leads to this commit post: https://github.com/opencart/opencart/is ... -712877569 . Read the solution paragraph part which also includes space parts. It's also a good point, however, where it should of state as well that using a service provider may also provide more accuracy with the currency exchange values in the mean time.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by khnaz35 » Fri Oct 30, 2020 7:22 pm

oli-infa wrote:
Fri Oct 30, 2020 1:04 am
(we have an extension for product prices allowing us to set different price for each currencies so we don't actually use the currency conversion from OP)
This one.
Off course voucher is core part but things always can be mess with extensions.

As @straightlight mentioned on his github project
Solution: Use a reliable currency service provider which includes multi-language parameters via their REST APIs . The symbol left and right will return in response in the developed extension of your choice while using the auto-currency settings in OC. This will prevent all platform security issues with the spaced strings.

Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by ADD Creative » Fri Oct 30, 2020 7:27 pm

What version of OpenCart?

Is the actual value of the voucher wong or just the description? If just the description there is a fix here. https://github.com/opencart/opencart/pull/5298

www.add-creative.co.uk


Active Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by oli-infa » Wed Nov 04, 2020 9:50 pm

What version of OpenCart?
2.3.0.2

Newbie

Posts

Joined
Wed Jul 22, 2020 4:44 pm

Post by ADD Creative » Wed Nov 04, 2020 10:27 pm

Is the actual value of the voucher wrong or just the description?

Are you using any extensions that affect prices?

www.add-creative.co.uk


Active Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom
Who is online

Users browsing this forum: No registered users and 33 guests