Main currency issue

  • Posts: 128
  • Thank you received: 1
7 years 9 months ago #246047

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.6

Hi,

as seen in the screen shots, the front end shows the original and shop main currency well and correct.

Yet when going to the back-end, in the orders and the product listing it just shows the buyers selected currency, and nut both, hence selected and main shop currency as in the front end.

Please help me to display the main shop currency, in my case its Pounds always next to the selected currency.

Thanks for the setting or code in a specific php file. (I am not a programmer)

Regards
Thomas





Attachments:
Last edit: 7 years 9 months ago by thomasf.

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

  • Posts: 81641
  • Thank you received: 13088
  • MODERATOR
7 years 9 months ago #246070

Hi,

The modification is in the same vain as what you already did on the listing of orders:
www.hikashop.com/support/forum/orders-ma...back-end.html#245013
Instead, you have to edit the file "show_products" and add the code:
echo ' ('.$this->currencyHelper->format(($this->currencyHelper->convertUniquePrice($product->order_product_price,$this->order->order_currency_id,hikashop_getCurrency()), $this->order->order_currency_id).')';

after the line:
echo $this->currencyHelper->format($product->order_product_price, $this->order->order_currency_id);

Please note that for such customizations, you should contact a developer.
We can't continue giving you custom code for all the views of HikaShop for each thing you want to change.

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
7 years 9 months ago #246134

Hi, I fully understand that and appreciate your given code. Thank you very much for that. I will try to limit further issues and questions to errors and questions of not understanding, or like the bug in the wishlist.
Thanks again and keep the good job up.
Kind regards
Thomas

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

  • Posts: 128
  • Thank you received: 1
7 years 9 months ago #246136

Hi,
sadly the code doesn't do the job. I am sorry, but at last the code should be correct right? It just destroys the back-end view.
Regards

Attachments:

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

  • Posts: 26025
  • Thank you received: 4006
  • MODERATOR
7 years 9 months ago #246145

Hi,

It means that you have a PHP fatal error below in your page.
I think that you made a PHP mistake during your "copy/paste".
Please check your page code and your PHP error log.

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
7 years 9 months ago #246176

Hi,
I solved the problem, but had to change the code more. For anybody who is interested in having the order price without handling and shipping fee shown, here is the working part to modify in the show_products.php file starting at line 212.

?></td>
<td class="hikashop_order_item_quantity_value"><?php echo $product->order_product_quantity;?></td>
<td class="hikashop_order_item_total_price_value"><?php echo $this->currencyHelper->format($product->order_product_total_price, $this->order->order_currency_id);echo ' ('.$this->currencyHelper->format($this->currencyHelper->convertUniquePrice($product->order_product_total_price,$this->order->order_currency_id,hikashop_getCurrency()),hikashop_getCurrency).')';?></td>
<?php

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

Time to create page: 0.085 seconds
Powered by Kunena Forum