Problem in currency symbol while placing order

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
haseeb
Posts: 9
Joined: 24 Feb 2021, 16:34

Problem in currency symbol while placing order

Post by haseeb » 17 Mar 2021, 18:27

"php": "^7.2",
"aimeos/aimeos-laravel": "~2019.10",
"laravel/framework": "^6.0",

hello,
i have problem occur in currency id if i select currency to "AED" and it is same on the Summary but when i click on buy , the order is place in database but at that time it use my default Currency id which is USD, so can you please tell me why this happen and how can i resolve this .
Attachments
this one is database
this one is database
databaseorder.PNG (9.06 KiB) Viewed 1872 times
this is summary
this is summary
summary.PNG (15.69 KiB) Viewed 1872 times
this is basket image
this is basket image
basket.PNG (18.36 KiB) Viewed 1872 times

User avatar
aimeos
Administrator
Posts: 7895
Joined: 01 Jan 1970, 00:00

Re: Problem in currency symbol while placing order

Post by aimeos » 19 Mar 2021, 06:27

Did you add the currency to the routes?
https://aimeos.org/docs/latest/laravel/extend/#routes
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

haseeb
Posts: 9
Joined: 24 Feb 2021, 16:34

Re: Problem in currency symbol while placing order

Post by haseeb » 19 Mar 2021, 10:34

yes language and currency is present in all url through out the website .
and one more thing
how can i apply VAT on total is there any function present ,if not so how can i apply vat on total and save it to database successfully ?

User avatar
aimeos
Administrator
Posts: 7895
Joined: 01 Jan 1970, 00:00

Re: Problem in currency symbol while placing order

Post by aimeos » 20 Mar 2021, 15:19

Did you made any customizations so the currency ID is lost before the order is stored?
We can't reproduce that in our test environment.

Also note, that 2019.10 isn't supported any more, only if you have an ELTS support contract from the Aimeos company:
https://aimeos.com/support#c428
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

haseeb
Posts: 9
Joined: 24 Feb 2021, 16:34

Re: Problem in currency symbol while placing order

Post by haseeb » 22 Mar 2021, 10:49

in which function i can check that my currency id before placing order ?

haseeb
Posts: 9
Joined: 24 Feb 2021, 16:34

Re: Problem in currency symbol while placing order

Post by haseeb » 22 Mar 2021, 13:21

My language id is 'en' and on that i have three different currency but when i click on buy it will automatically change the order to USD and save it , i also check basket on summary page its shows me currency id AED but after click on buy the order place in USD how can i resolve this issue ?
thanks in advance

User avatar
aimeos
Administrator
Posts: 7895
Joined: 01 Jan 1970, 00:00

Re: Problem in currency symbol while placing order

Post by aimeos » 23 Mar 2021, 07:33

The order is stored here:
https://github.com/aimeos/ai-client-htm ... d.php#L267

Maybe the currency is lost for some reason in your setup so the basket is automatically converted to the currency of the first locale entry for "en" in the Locale panel.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply