Display another currency

  • Posts: 28
  • Thank you received: 0
10 years 6 months ago #192868

-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.4.38

Hi everyone,
my main currency is Euro; I want to display prices in XOF.
I set up already the rate for that but I want to display only the prices in XOF. Can you heelp me please?

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

  • Posts: 84304
  • Thank you received: 13698
  • MODERATOR
10 years 6 months ago #192873

Hi,

Select that currency in the "main currency" option of the HikaShop configuration and it will be that currency which will be used for the display of the prices on the frontend.

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

  • Posts: 28
  • Thank you received: 0
10 years 6 months ago #192967

Trank you,
When i do that, prices are displayed both in euro and xof. I want the main currency to be euro because PayPal doesnt support xof. But i want xof to be displayed for the users. How can I do it ?

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

  • Posts: 13201
  • Thank you received: 2322
10 years 6 months ago #192975

Hi,

To display only in xof, it will require some view overrides on the view "product / listing_price".
www.hikashop.com/support/support/documen...ize-the-display.html

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

  • Posts: 28
  • Thank you received: 0
10 years 6 months ago #193046

Hi,
thank you. I think i should give an example to make myself better understood:

Config 1:
Main currency: Euro
Product A: 1€ (prices displayed in euro)
PayPal plugin is shown on the payment

Config 2:
Main currency: XOF
Product A: 656 XOF ( 1€ ) (both prices displayed: XOF and euro)
PayPal plugin not shown on the payment.

What I want is :
Main currency: euro
Product A: 656 XOF
So that PayPal plugin will come on the payment.

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

  • Posts: 13201
  • Thank you received: 2322
10 years 6 months ago #193067

Hi,

You must have the main currency in Euro, and set the price in XOF on your product, then do the view edition to have only the price in XOF.

The following user(s) said Thank You: jymm221

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

  • Posts: 28
  • Thank you received: 0
10 years 6 months ago #193173

Hi,
thank you. This is what I wanted.
I would also want to ask what view I should change for the prices displayed in chart (unit price , sub-total, tax, total) and how can I remove brackets?

Last edit: 10 years 6 months ago by jymm221.

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

  • Posts: 84304
  • Thank you received: 13698
  • MODERATOR
10 years 6 months ago #193208

Hi,

For the cart module, it's the file "cart" of the view "product".
For the cart in the checkout, it's the file "cart" of the view "checkout".

The following user(s) said Thank You: jymm221

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

  • Posts: 28
  • Thank you received: 0
10 years 6 months ago #193270

Hi,
Thank you. The price is now like that: (10xof). How can I rénové brackets and have 10xof ?

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

  • Posts: 84304
  • Thank you received: 13698
  • MODERATOR
10 years 6 months ago #193284

Try a translation override to remove the brackets before and after the prices:
hikashop.com/download/languages.html#modify

The following user(s) said Thank You: jymm221

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

  • Posts: 28
  • Thank you received: 0
10 years 6 months ago #193426

Thank you so much.

I found that I should remove this code:

if($this->params->get('price_with_tax')){
				echo $this->currencyHelper->format(@$price->price_value_with_tax,$price->price_currency_id);
			}
			if($this->params->get('price_with_tax')==2){
				echo JText::_('PRICE_BEFORE_TAX');
			}
			if($this->params->get('price_with_tax')==2||!$this->params->get('price_with_tax')){
				echo $this->currencyHelper->format($price->price_value,$price->price_currency_id);
			}
			if($this->params->get('price_with_tax')==2){
				echo JText::_('PRICE_AFTER_TAX');
			}

I tried but it's not working fine: sub-total, tax and total are only displayed in euro (kindly see screenshot attached).
Also I'm using multicart and now I have no price displayed in the mini cart.
Could you help me with the code to edit please?
Kindly see the screenshot attached.

Attachments:

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

  • Posts: 84304
  • Thank you received: 13698
  • MODERATOR
10 years 6 months ago #193439

Hi,

You should not remove that code. That's the code displaying the price. If you remove it, the price won't display at all (like you got in the cart).
As I said, use a translation override instead to remove the brackets only.

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

  • Posts: 28
  • Thank you received: 0
10 years 6 months ago #193606

Hi,
thank you.
You mean I can display 10XOF only with translation override? But I have no idea about how to do that. I put back the code I removed previously.
Can you help me ? What should I do?

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

  • Posts: 84304
  • Thank you received: 13698
  • MODERATOR
10 years 6 months ago #193648

Hi,

The documentation link I gave previously explains how to add translation overrides:
hikashop.com/download/languages.html#modify

And if you follow that, you'll directly see the translations that you want to override:
PRICE_BEFORE_ORIG=" ("
PRICE_AFTER_ORIG=") "
PRICE_DISCOUNT_START=""
PRICE_DISCOUNT_END=""
PRICE_BEFORE_TAX=" ("
PRICE_AFTER_TAX=" excl VAT) "

Remove the parenthesis of these translation keys with translation overrides and you won't see the parenthesis around the prices.

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

  • Posts: 28
  • Thank you received: 0
10 years 6 months ago #193649

Hi,
Thank you. I have already removed the parenthesis ; but now I have the price like this (when I put back the code):

1euro 10XOF.

How should I hide 1euro everywhere (products pages, checkout) without removing the code?

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

  • Posts: 28
  • Thank you received: 0
10 years 6 months ago #193997

Hi,
any help with this?

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

  • Posts: 28
  • Thank you received: 0
10 years 6 months ago #194423

Hi,
can you help please?

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

  • Posts: 84304
  • Thank you received: 13698
  • MODERATOR
10 years 6 months ago #194582

Hi,

Removing euros everywhere is not the solution. You need to have euros on the checkout. Otherwise, you won't be able to pay by PayPal as the price displayed on the checkout has to be the price billed by PayPal.

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

  • Posts: 28
  • Thank you received: 0
10 years 6 months ago #194599

Hi,
OK. But can you suggest a work around solution please ? Something to hide the euro price (not remove it). So that price is displayed in xof but the real price sent to PayPal is euro

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

  • Posts: 12953
  • Thank you received: 1778
10 years 6 months ago #194687

Hello,

Config 1:
Main currency: Euro
Product A: 1€ (prices displayed in euro)
PayPal plugin is shown on the payment

Config 2:
Main currency: XOF
Product A: 656 XOF ( 1€ ) (both prices displayed: XOF and euro)
PayPal plugin not shown on the payment.

What I want is :
Main currency: euro
Product A: 656 XOF


Will you set all you product price currency to "XOF" ?
Do you want the price of your product to be displayed with the "XOF" currency everywhere or only through the checkout workflow ?

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

Time to create page: 0.115 seconds
Powered by Kunena Forum