Point payment not under all currencies

  • Posts: 128
  • Thank you received: 1
8 years 5 months ago #242596

-- HikaShop version -- : 2.6.3

Hi,
I would like the points payment method to appear in each geolocation and any currency shown.
It doesnt work, see attachment

Thanks for your help

Regards

Thomas



Attachments:

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
8 years 5 months ago #242614

Hi,

Did you use the currency restriction setting of the user point payment method to have it display only for the USD maybe ?

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

  • Posts: 128
  • Thank you received: 1
8 years 5 months ago #242643

Hi, no I tried it both ways, leaving the currency field blank and then putting all currencies I accept into the field. Both ways it doesn't work. It shows for Euro, Dollar, Pound and Ghana currency.
No success

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
8 years 5 months ago #242675

Hi,

Wait, you're saying that you see the payment method for all the currencies except PHP ?
Did you change something in the settings of that currency ?

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

  • Posts: 128
  • Thank you received: 1
8 years 5 months ago #242747

Hi no, it shows in no currencies only in USD, euro, pound an Ghana cedi
I didn't manipulate any currency settings. I tried to add and remove restrictions, but always the same result. Only four currencies show the points as payment choice. All others not

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
8 years 5 months ago #242776

Hi,

I don't see why that would be the case.
Please provide a backend access, a link to the page with the issue and a link to this thread through our contact form and we'll look at the problem.

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

  • Posts: 128
  • Thank you received: 1
8 years 5 months ago #242801

Hi, where do I send it to? I am asking cause my last mail request never reached you guys even I user the contact form.
I did send the credentials through your contact form again.

Last edit: 8 years 5 months ago by thomasf.

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

  • Posts: 128
  • Thank you received: 1
8 years 5 months ago #242835

Hi, I found something weird. I gave the test user super much points and then they appeared. But that shouldnt be, as one dollar is one dollar even under another currency. After buying with points again, after giving many, the available point value fell under 400 USD with a point value of 0.01 USD, the point payment option disappeared in Peso for example but remained in Dollar, pounds and euros.
My base currency is USD, so it should not matter what other currency the user switches to, as long as the points have enough Dollar value to be able to buy something.
In short, if the user has 1 USD, equals 100 points in my system, it shouldnt matter to what currency he switches as 51 peso is still one dollar or 43 dalasi also.

Last edit: 8 years 5 months ago by thomasf.

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

  • Posts: 128
  • Thank you received: 1
8 years 5 months ago #243071

Dear support, since my last reply it is pending 2 days. I have sent you my log in credentials via the contact form as requested but no reaction yet. Sorry I am of course a bit in urge as the official launch is on July 1. We are in a testing phase in June now. Thanks very much,
Thomas

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
8 years 5 months ago #243092

Hi,

Thank you for the access. We were able to reproduce the issue on our end and add the necessary fix. Please download again the install package via the menu My account>My subscriptions on our website and install it on yours and that will add the patch to fix that problem.

The following user(s) said Thank You: thomasf

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

  • Posts: 128
  • Thank you received: 1
8 years 5 months ago #243122

thank you very much, I will do that and give feedback

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

  • Posts: 128
  • Thank you received: 1
8 years 5 months ago #243251


Hello, the system shows now always the points , but my base currency is Pounds, so 40400 points shouldnt show worth 404 USD. So now this is what happens. Why is it not showing the the corect dollar value? 1 pound doesnt equal 1 dollar of course, but the system shows it just like that.


If I switch to Pounds it shows the same amount but just changes the pound symbol. When I switch to USD it should show the correct exchange rate

Pay with Jetshop24 Reward Points:

You can pay with points using this payment method
You have 40421 points (£ 404.21) available. You can pay the full order with your points, it will cost you 32916 points.

With Philippine Peso the same, symbol changes but not the exchange rate for points:

Pay with Jetshop24 Reward Points:

You can pay with points using this payment method
You have 40421 points (404,21 PHP) available. You can pay the full order with your points, it will cost you 32916 points.

HENCE, it seems to base everything on my base currency Pounds, but it treats all currencies equal by just taking the number but disregarding the exchange rate. It does exchange rate the other payment options, just not the points payment.

Attachments:
Last edit: 8 years 5 months ago by thomasf.

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

  • Posts: 128
  • Thank you received: 1
8 years 5 months ago #243370

Dear support team, kindly help out here. The update didn't solve the problem. A new problem occurred. Please help cause shop launch is near. Thanks and regards.

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

  • Posts: 128
  • Thank you received: 1
8 years 5 months ago #243572

Dear support team, how far are you with solving the problem? Thanks for your reply- Regards

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

  • Posts: 128
  • Thank you received: 1
8 years 5 months ago #243923

Hi,

I have sent a mail through contact form and now here again. This problem is still pending. May I know if you guys are working on it or its forgotten?

Thanks and regards

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

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
8 years 5 months ago #244197

Hi,

The points conversion is always with the main currency store. The value that you can find between parentheses is not really in USD but in Pounds.
In latest package, Nicolas added a patch which might fix some elements but it does not fix all the display.
The plugin has not be designed for that and it would require a specific development in order to add that support.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 128
  • Thank you received: 1
8 years 5 months ago #244201

Hi,

I understand, but then why did it show correctly converted in the other currencies value before the patch repair? And why is it now still showing the different currencies next to the points? If you say that now the points are only displayed, then please tell me how to remove the currency sign next to the points that can be used.
Its sad that it doesn't convert the value of the points anymore as before though.

Regards and thanks for your reply

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
8 years 4 months ago #244840

Hi,

Try to change the code:

if($this->main_currency != $currency_id)
				$this->payment_params->value = $currencyClass->convertUniquePrice($this->payment_params->value, $this->main_currency, $currency_id);

			if(empty($check))
				$check = $this->checkPoints($cart);
			if($check !== false && $check > 0) {
				$coupon = $check * $this->payment_params->value;
to:
$value = $this->payment_params->value;
			if($this->main_currency != $currency_id)
				$value = $currencyClass->convertUniquePrice($value, $this->main_currency, $currency_id);

			if(empty($check))
				$check = $this->checkPoints($cart);
			if($check !== false && $check > 0) {
				$coupon = $check * $value;
in the file plugins/hikashoppayment/userpoints/userpoints.php

The following user(s) said Thank You: thomasf

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

  • Posts: 128
  • Thank you received: 1
8 years 4 months ago #245047

Hi,

sadly the code does nothing

Pay with JetShare Points:

You can pay with points using this payment method
You have 37812 JetShare points (378,12 PHP) available. You can pay the full order with your JetShare points, it will cost you 1073 points.

Also the code you wanted me to replace looks a bit different:
if($this->main_currency != $currency)
				$this->payment_params->value = $currencyClass->convertUniquePrice($this->payment_params->value, $this->main_currency, $currency);

			if(empty($check))
				$check = $this->checkPoints($cart);
			if($check !== false && $check > 0) {
				if(isset($cart->order_currency_id))
					$currency_id = $cart->order_currency_id;
				else
					$currency_id = hikashop_getCurrency();

				$coupon = $check * $this->payment_params->value;

instead of yours:
if($this->main_currency != $currency_id)
				$this->payment_params->value = $currencyClass->convertUniquePrice($this->payment_params->value, $this->main_currency, $currency_id);

			if(empty($check))
				$check = $this->checkPoints($cart);
			if($check !== false && $check > 0) {
				$coupon = $check * $this->payment_params->value;

So please what next?

Regards

Last edit: 8 years 3 months ago by Jerome. Reason: [code] is nice

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

Time to create page: 0.121 seconds
Powered by Kunena Forum