matejmili Posted April 7, 2020 Share Posted April 7, 2020 Hi guys! Can someone help me hide this message when the currency is dollar or CHF? This message should only be displayed when the currency is HRK. Link to comment Share on other sites More sharing options...
matejmili Posted April 8, 2020 Author Share Posted April 8, 2020 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 More sharing options...
matejmili Posted April 10, 2020 Author Share Posted April 10, 2020 Nobody wants to help me?😮 Link to comment Share on other sites More sharing options...
Guest Posted April 10, 2020 Share Posted April 10, 2020 Hi, In administration -> Payments -> Payment settings You must enable currencies and countries. Link to comment Share on other sites More sharing options...
matejmili Posted April 10, 2020 Author Share Posted April 10, 2020 Hi, all currencies and countries is enabled, but this message "Currency is not supported. Please select supported currency." will show again. When I select the currency EURO, the message does not appear. Link to comment Share on other sites More sharing options...
matejmili Posted April 10, 2020 Author Share Posted April 10, 2020 file is in this folder themes/prs001/modules/paypal/views/templates/front Link to comment Share on other sites More sharing options...
Guest Posted April 10, 2020 Share Posted April 10, 2020 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 More sharing options...
matejmili Posted April 10, 2020 Author Share Posted April 10, 2020 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 More sharing options...
Guest Posted April 10, 2020 Share Posted April 10, 2020 (edited) And again, it must be in the payment settings. Edited April 10, 2020 by Guest (see edit history) Link to comment Share on other sites More sharing options...
matejmili Posted April 10, 2020 Author Share Posted April 10, 2020 it is customer currency Link to comment Share on other sites More sharing options...
Guest Posted April 10, 2020 Share Posted April 10, 2020 and carrier restriction ? Link to comment Share on other sites More sharing options...
Guest Posted April 10, 2020 Share Posted April 10, 2020 Must be depend country -> state -> carrier -> currency Link to comment Share on other sites More sharing options...
matejmili Posted April 10, 2020 Author Share Posted April 10, 2020 Link to comment Share on other sites More sharing options...
matejmili Posted April 10, 2020 Author Share Posted April 10, 2020 i think need to edit file from here /home/themes/mytheme/modules/paypal/views/templates/front/filexxx.tpl Link to comment Share on other sites More sharing options...
matejmili Posted April 10, 2020 Author Share Posted April 10, 2020 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 More sharing options...
Guest Posted April 10, 2020 Share Posted April 10, 2020 Please screen Internation -> Localization -> Currencies Link to comment Share on other sites More sharing options...
matejmili Posted April 10, 2020 Author Share Posted April 10, 2020 Link to comment Share on other sites More sharing options...
Guest Posted April 10, 2020 Share Posted April 10, 2020 (edited) Oh, I see it now. Only currency with id = 3 (EUR) is allowed. Attached original file payment_infos.tpl Backup original and replace new. payment_infos.tpl Edited April 10, 2020 by Guest (see edit history) Link to comment Share on other sites More sharing options...
matejmili Posted April 10, 2020 Author Share Posted April 10, 2020 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. Link to comment Share on other sites More sharing options...
Guest Posted April 10, 2020 Share Posted April 10, 2020 {if $id_currency_cookie == 1} error message {/if} Link to comment Share on other sites More sharing options...
Guest Posted April 10, 2020 Share Posted April 10, 2020 This means: when the currency id is 1, show error message. Link to comment Share on other sites More sharing options...
matejmili Posted April 10, 2020 Author Share Posted April 10, 2020 yes, how edit the code? Link to comment Share on other sites More sharing options...
Guest Posted April 10, 2020 Share Posted April 10, 2020 Replace in backup file. {if Context::getContext()->cookie->id_currency != 3} Link to comment Share on other sites More sharing options...
matejmili Posted April 10, 2020 Author Share Posted April 10, 2020 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 More sharing options...
Guest Posted April 10, 2020 Share Posted April 10, 2020 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 More sharing options...
Guest Posted April 10, 2020 Share Posted April 10, 2020 I'm not at the computer, I've modified your code. I have to edit it on my mobile. Link to comment Share on other sites More sharing options...
matejmili Posted April 10, 2020 Author Share Posted April 10, 2020 thx! now don't show error message if is USD,EUR and CHF - is correct! But don't also show if is currency HRK - is worng! Can please check the code again? Link to comment Share on other sites More sharing options...
Guest Posted April 10, 2020 Share Posted April 10, 2020 Store url ? Link to comment Share on other sites More sharing options...
Guest Posted April 10, 2020 Share Posted April 10, 2020 Prestashop version ? Link to comment Share on other sites More sharing options...
matejmili Posted April 10, 2020 Author Share Posted April 10, 2020 I send to private message Link to comment Share on other sites More sharing options...
matejmili Posted April 10, 2020 Author Share Posted April 10, 2020 Prestashop 1.7.5.1 Link to comment Share on other sites More sharing options...
Guest Posted April 10, 2020 Share Posted April 10, 2020 Open PHPMyAdmin and put code: SELECT `id_currency`, `iso_code` FROM `ps_currency`; Make screen table result. Link to comment Share on other sites More sharing options...
Guest Posted April 10, 2020 Share Posted April 10, 2020 Link to comment Share on other sites More sharing options...
matejmili Posted April 10, 2020 Author Share Posted April 10, 2020 here Link to comment Share on other sites More sharing options...
matejmili Posted April 10, 2020 Author Share Posted April 10, 2020 vor 13 Minuten schrieb Guest: yes Link to comment Share on other sites More sharing options...
Guest Posted April 10, 2020 Share Posted April 10, 2020 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 More sharing options...
matejmili Posted April 10, 2020 Author Share Posted April 10, 2020 great! Now work fine, thank you very much Link to comment Share on other sites More sharing options...
Guest Posted April 10, 2020 Share Posted April 10, 2020 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 More sharing options...
matejmili Posted May 24, 2020 Author Share Posted May 24, 2020 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 More sharing options...
Guest Posted May 24, 2020 Share Posted May 24, 2020 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 More sharing options...
Guest Posted May 24, 2020 Share Posted May 24, 2020 or = || and = && Link to comment Share on other sites More sharing options...
matejmili Posted May 24, 2020 Author Share Posted May 24, 2020 oh yes 😄 Thank you very much! Link to comment Share on other sites More sharing options...
Guest Posted May 24, 2020 Share Posted May 24, 2020 These are the basics of PHP 😉 I gladly helped. Link to comment Share on other sites More sharing options...
matejmili Posted May 24, 2020 Author Share Posted May 24, 2020 You recived get my private message? Link to comment Share on other sites More sharing options...
Guest Posted May 24, 2020 Share Posted May 24, 2020 I do not have private messaging enabled. Link to comment Share on other sites More sharing options...
matejmili Posted May 24, 2020 Author Share Posted May 24, 2020 Okay. Can you help me about this post? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now