Main currency issue
10 years 2 months ago - 10 years 2 months ago #246047
by thomasf
Main currency issue was created by thomasf
-- 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
-- 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
Last edit: 10 years 2 months ago by thomasf.
Please Log in or Create an account to join the conversation.
10 years 2 months ago #246070
by nicolas
Replied by nicolas on topic Main currency issue
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 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.
10 years 2 months ago #246134
by thomasf
Replied by thomasf on topic Main currency issue
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
Thanks again and keep the good job up.
Kind regards
Thomas
Please Log in or Create an account to join the conversation.
10 years 2 months ago #246136
by thomasf
Replied by thomasf on topic Main currency issue
Please Log in or Create an account to join the conversation.
10 years 2 months ago #246145
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Main currency issue
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,
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.
Please Log in or Create an account to join the conversation.
10 years 2 months ago #246176
by thomasf
Replied by thomasf on topic Main currency issue
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
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.257 seconds