Closed xcom-magento closed 2 months ago
Hi @xcom-magento thank you for reporting this issue. In order to reproduce it we want to know which currency are you using? Are you facing this problem on other requests also?
Hi @SyedWaqasNabi, we are using Euro (EUR) as currency. We didn't checked all the functionalities, but in the log file we only see the OneListCalculate
endpoint that gives errors.
Hi @xcom-magento thank you for providing the information. We would like to know what results you get for the GetPointRate call in the logs?
Hi @SyedWaqasNabi, below the request and response for the GetPointRate
call:
[2024-06-25T11:34:07.523505+00:00] OmniLoggerHandler.DEBUG: ==== REQUEST ==== 06-25-2024 11:34:05.199442 ==== GetPointRate ==== [] []
[2024-06-25T11:34:07.524736+00:00] OmniLoggerHandler.DEBUG:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://lsretail.com/LSOmniService/EComm/2017/Service">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<ns1:GetPointRate>
<ns1:currency>EUR</ns1:currency>
</ns1:GetPointRate>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
[] []
[2024-06-25T11:34:07.525216+00:00] OmniLoggerHandler.DEBUG: ==== RESPONSE ==== 06-25-2024 11:34:07.519918 ==== GetPointRate ==== [] []
[2024-06-25T11:34:07.525438+00:00] OmniLoggerHandler.DEBUG: ==== Time Elapsed ==== 0 minute(s) 2.320476 second(s) ==== GetPointRate ==== [] []
[2024-06-25T11:34:07.525845+00:00] OmniLoggerHandler.DEBUG:
<?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<GetPointRateResponse xmlns="http://lsretail.com/LSOmniService/EComm/2017/Service">
<GetPointRateResult>1</GetPointRateResult>
</GetPointRateResponse>
</s:Body>
</s:Envelope>
[] []
Hi @xcom-magento thank you for providing the request and response for GetPointRate. What locale option is selected in Magento configuration?
Hi @SyedWaqasNabi, the global locale of the webshop is Dutch (Netherlands). We also have two storeviews with a German locale.
Hi @xcom-magento thank you for the information. We were able to reproduce it and made some fixes. Currently, it's in testing we will let you know once it's in the master branch.
Hi @SyedWaqasNabi, do you have an idea when the changes will be implemented in the master branch?
Hi @xcom-magento this issue has been fixed and is available in the Master branch. It will also be available in the next release.
In the latest master branch there is an issue where points are converted to string that throws errors. In
vendor/lsretail/lsmag-two/src/Omni/Helper/LoyaltyHelper.php
theformatValue
method is changed to use the currencyHelper. This value is used in multiple requests and this is causing issues. For example theOneListCalculate
endpoint doesn't work so the product price is 0.Preconditions (*)
latest master commit
Steps to reproduce (*)
Expected result (*)
Actual result (*)
Below a request and response from the
OneListCalculate
Response:
Also when navigating to the cart the error
Warning: A non-numeric value encountered in /vendor/lsretail/lsmag-two/src/Omni/Plugin/Quote/CartTotalRepository.php
is thrown.