Wrong currency with HikaSerial AttachSerial

  • Posts: 24
  • Thank you received: 0
  • Hikaserial Standard Hikaserial Subscription
1 year 2 months ago #255512

-- HikaShop version -- : 2.6.4
-- HikaSerial version -- : 1.10.3
-- Joomla version -- : 3.6.4
-- Browser(s) name and version -- : any

I am selling Tickets that are created by HikaSerial AttachSerial. They also show the price.
As I have a multicurrency shop, the tickets can be bought in USD, EUR, CHF.
In HikaShop, I have defined CHF as the main currency. So, all the tickets show "CHF" as the currency with the ticket price. Unfortunately, even when customers switch the shop to EUR, (so customers also get a EUR price and pay in EUR) the ticket shows "CHF" but with the number that represents the Euro price. Of course, this is not correct.

Example: CHF price is CHF 189 and EUR price is EUR 169.
So, for customers who paid in CHF, it shows "CHF 189", which is correct.
But for customers who paid in EUR, it should show "EUR 169" but it shows "CHF 169" :-(

How can I avoid this? It looks to me as if it is a bug.
Thanks for your help!

Chris


________________________________
CSK Management

www.cskmanagement.com
Last Edit: 1 year 2 months ago by cskmanagement.

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

  • Posts: 21761
  • Thank you received: 3404
  • MODERATOR
1 year 2 months ago #255515

Hi,

Would it be possible to have more details about your configuration in order to reproduce it in a local test website ?
(pack, generator, sample order, element which show the issue, etc)

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: 24
  • Thank you received: 0
  • Hikaserial Standard Hikaserial Subscription
1 year 2 months ago #255550

Hi Jérôme

Sure.
Here is what I believe could be important:
Pack "3B tickets":
- Pack Data: Pack SQL Data
Main Configuration in HikaShop:
- Main Currency: CHF
Generator:
- "seriesgen - ticketserie3": Generated with "Series - HikaSerial Generator plugin"
Product:
- Prices defined for CHF and EUR (both for quantities 1 - 10)
- with Serials attached "3B Tickets"

I also tried to switch the main Hikashop currency to EUR but if someone who chooses CHF
will get the ticket as attached. So it seems that the ticket always shows the main currency but the amount of the chosen currency.




I am happy to provide you with access to our site if you wish.

regards,
Chris


________________________________
CSK Management

www.cskmanagement.com
Attachments:

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

  • Posts: 21761
  • Thank you received: 3404
  • MODERATOR
1 year 2 months ago #255580

Hi,

Please provide details about the order and your "attach serial" configuration.

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: 24
  • Thank you received: 0
  • Hikaserial Standard Hikaserial Subscription
1 year 2 months ago #255591

I have created a sample order:
- Chosen currency (Currency Switcher): EUR
- Invoice amount: EUR 169 + VAT + Shipping = EUR 204.12

However, Ticket shows CHF 169 (it's written there that VAT and other costs are not shown, this is ok) instead of EUR 169

Please find attached:
- screenshot of order overview in backend
- ticket with wrong currency (shows CHF instead of EUR)
- screenshot of AttachSerial settings and pack settings (several screenshots)

hope this helps...

regards and thanks in advance,
Chris


________________________________
CSK Management

www.cskmanagement.com

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

  • Posts: 21761
  • Thank you received: 3404
  • MODERATOR
1 year 2 months ago #255626

Hi,

The display of the currency is based on the "order_currency_id" ; if the value is not available it can explain why the currency is not right.
In the plugin, please replace the line

$params->order = $order;
By
$params->order = $fullOrder;
It will force the usage of the full order object from the database and assure the plugin that it will have the order_currency_id information.

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: 24
  • Thank you received: 0
  • Hikaserial Standard Hikaserial Subscription
1 year 2 months ago #255640

wonderful. worked right away.
thanks a million, Jérôme!
very appreciated
Chris


________________________________
CSK Management

www.cskmanagement.com

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

Moderators: Obsidev
Time to create page: 0.093 seconds
Powered by Kunena Forum