Jump to content

Paypal message "Currency is not supported"


matejmili

Recommended Posts

Hi!

I have found the file, can someone help me how to hide the message if the currency is in USD and CHF?

<p>{l s='Benefit from many PayPal advantages such as :' mod='paypal'}</p>
<p><img src="{$path|escape:'html':'UTF-8'}views/img/protected.png" style="height: 43px; padding-right: 10px;">{l s='Your orders are protected' mod='paypal'}*</p>
<p><i>{l s='* See conditions on PayPal website' mod='paypal'}</i></p>
{if Context::getContext()->cookie->id_currency != 3}
<p class="alert alert-danger">{l s='Currency is not supported. Please select supported currency.'}</p>
<p>
	<a class="btn btn-info" href="?SubmitCurrency=1&id_currency=3">{l s='Change currency' mod='paypal'}</a>
</p>
{/if}

 

Link to comment
Share on other sites

You cannot edit the php functions in your tpl file that are linked to your PayPal account. Do you have currencies other than EUR allowed in your PayPal account? What are your PayPal payment options set in the administration?

Link to comment
Share on other sites

i have payment options Paypal and bankwire

Bankwire is only avible  for currency  EUR and HRK, Paypal for EUR, USD, HRK and CHF.

If customer have in checkout currency HRK and choice Paypal payment then will geht this message "Currency is not supported. Please select supported currency." - this is correct!

But this same message will get also when currency is in USD and CHF.

When is currency USD and CHF i need this message to hide.

How can I do this?

Link to comment
Share on other sites

Gerade eben schrieb matejmili:

i think  need to edit file from here /home/themes/mytheme/modules/paypal/views/templates/front/filexxx.tpl

here is the code:

<p>{l s='Benefit from many PayPal advantages such as :' mod='paypal'}</p>
<p><img src="{$path|escape:'html':'UTF-8'}views/img/protected.png" style="height: 43px; padding-right: 10px;">{l s='Your orders are protected' mod='paypal'}*</p>
<p><i>{l s='* See conditions on PayPal website' mod='paypal'}</i></p>
{if Context::getContext()->cookie->id_currency != 3}
<p class="alert alert-danger">{l s='Currency is not supported. Please select supported currency.'}</p>
<p>
	<a class="btn btn-info" href="?SubmitCurrency=1&id_currency=3">{l s='Change currency' mod='paypal'}</a>
</p>
{/if}

 

Link to comment
Share on other sites

thanks for your time and help but don't understand correctly what i want.

If currency in checkout is HRK i want show message "Currency is not supported. Please select supported currency."

If currency is in CHF and USD i don't want this message "Currency is not supported. Please select supported currency."

For this i need edit file payment_infos.tpl but i don't know how do? = hide message for USD and CHF.

 

 

Screenshot at Apr 10 14-01-25.png

Link to comment
Share on other sites

sorry but i don't understand what you mean.

Can you please write what need to change?

<p>{l s='Benefit from many PayPal advantages such as :' mod='paypal'}</p>
<p><img src="{$path|escape:'html':'UTF-8'}views/img/protected.png" style="height: 43px; padding-right: 10px;">{l s='Your orders are protected' mod='paypal'}*</p>
<p><i>{l s='* See conditions on PayPal website' mod='paypal'}</i></p>
{if Context::getContext()->cookie->id_currency != 3}

<p class="alert alert-danger">{l s='Currency is not supported. Please select supported currency.'}</p>
<p>
	<a class="btn btn-info" href="?SubmitCurrency=1&id_currency=3">{l s='Change currency' mod='paypal'}</a>
</p>
{/if}

 

Link to comment
Share on other sites

1 minute ago, matejmili said:

 


<p>{l s='Benefit from many PayPal advantages such as :' mod='paypal'}</p>
<p><img src="{$path|escape:'html':'UTF-8'}views/img/protected.png" style="height: 43px; padding-right: 10px;">{l s='Your orders are protected' mod='paypal'}*</p>
<p><i>{l s='* See conditions on PayPal website' mod='paypal'}</i></p>

{if $id_currency_cookie == 1}

<p class="alert alert-danger">{l s='Currency is not supported. Please select supported currency.'}</p>
<p>
	<a class="btn btn-info" href="?SubmitCurrency=1&id_currency=3">{l s='Change currency' mod='paypal'}</a>
</p>

{/if}

 

 

Link to comment
Share on other sites

DONE

<p>{l s='Benefit from many PayPal advantages such as :' mod='paypal'}</p>
<p><img src="{$path|escape:'html':'UTF-8'}views/img/protected.png" style="height: 43px; padding-right: 10px;">{l s='Your orders are protected' mod='paypal'}*</p>
<p><i>{l s='* See conditions on PayPal website' mod='paypal'}</i></p>

{if $currency.iso_code == 'HRK'}

<p class="alert alert-danger">{l s='Currency is not supported. Please select supported currency.'}</p>
<p>
	<a class="btn btn-info" href="?SubmitCurrency=1&id_currency=3">{l s='Change currency' mod='paypal'}</a>
</p>

{/if}

 

Link to comment
Share on other sites

You can rate my posts by clicking on the gray heart.

I gladly helped.
Next time, please remember to write a version of PrestaShop.

Link to comment
Share on other sites

  • 1 month later...

Hi!

i have added new currency RSD and want show error same  currency HRK.

i have tried change {if $currency.iso_code == 'HRK'} to {if $currency.iso_code == 'HRK' or 'RSD'} but did not works.

Can you please give tips what i need to change?

 

Link to comment
Share on other sites

8 minutes ago, matejmili said:

Hi!

i have added new currency RSD and want show error same  currency HRK.

i have tried change {if $currency.iso_code == 'HRK'} to {if $currency.iso_code == 'HRK' or 'RSD'} but did not works.

Can you please give tips what i need to change?

 

{if $currency.iso_code == 'HRK' ||  $currency.iso_code == 'RSD' }

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...