Code: Select all
..\catalog\view\theme\default\template\common\language.twig
-
VIEW ALL EXTENSIONS * EXTENSION SUPPORT * WEBSITE * CUSTOM REQUESTS
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Any URL you could post?
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Sorry, I am testing offline on my PC now, and will upload to the host when it is complete.
But I am using the default theme, so any advice on how to change the default theme to remove the language dropdown list, will be so much appreciated.
Thanks alot
Code: Select all
{{ language }}
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
straightlight wrote: ↑Mon May 06, 2019 3:44 amSimply remove this ...
Code: Select all
{{ language }}
Thank you very much for your support.
I couldn't found the line you mentioned, below is the file contents:
Code: Select all
{% if languages|length > 1 %}
<div class="pull-left">
<form action="{{ action }}" method="post" enctype="multipart/form-data" id="form-language">
<div class="btn-group">
<button class="btn btn-link dropdown-toggle" data-toggle="dropdown">
{% for language in languages %}
{% if language.code == code %}
<img src="catalog/language/{{ language.code }}/{{ language.code }}.png" alt="{{ language.name }}" title="{{ language.name }}">
{% endif %}
{% endfor %}
<span class="hidden-xs hidden-sm hidden-md">{{ text_language }}</span> <i class="fa fa-caret-down"></i></button>
<ul class="dropdown-menu">
{% for language in languages %}
<li>
<button class="btn btn-link btn-block language-select" type="button" name="{{ language.code }}"><img src="catalog/language/{{ language.code }}/{{ language.code }}.png" alt="{{ language.name }}" title="{{ language.name }}" /> {{ language.name }}</button>
</li>
{% endfor %}
</ul>
</div>
<input type="hidden" name="code" value="" />
<input type="hidden" name="redirect" value="{{ redirect }}" />
</form>
</div>
{% endif %}
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
From which file are you posting these codes? More information is needed.I couldn't found the line you mentioned, below is the file contents:
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
ٍSorry for the misunderstanding, I replied after that confirming that I found the line and removed it, put the Language selection disapeared totally. Kindly I need to make it as a button or URL or any other one-click option.straightlight wrote: ↑Tue May 07, 2019 5:22 amFrom which file are you posting these codes? More information is needed.
Thanks alot for following up.
From which file did you looked into for this big block of language code above?I couldn't found the line you mentioned, below is the file contents:
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Code: Select all
{% if languages|length > 1 %}
<div class="pull-left">
<form action="{{ action }}" method="post" enctype="multipart/form-data" id="form-language">
<div class="btn-group">
{% for language in languages %}
<button class="btn btn-link language-select" type="button" name="{{ language.code }}"><img src="catalog/language/{{ language.code }}/{{ language.code }}.png" alt="{{ language.name }}" title="{{ language.name }}" /> {{ language.name }}</button>
{% endfor %}
</div>
<input type="hidden" name="code" value="" />
<input type="hidden" name="redirect" value="{{ redirect }}" />
</form>
</div>
{% endif %}
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
From the language.twig filestraightlight wrote: ↑Thu May 09, 2019 3:58 amI was referring to your reply:
From which file did you looked into for this big block of language code above?I couldn't found the line you mentioned, below is the file contents:
Thank you very much, that was very helpful. it put two buttons with the two languages.letxobnav wrote: ↑Thu May 09, 2019 7:50 amyou can use this
Code: Select all
{% if languages|length > 1 %} <div class="pull-left"> <form action="{{ action }}" method="post" enctype="multipart/form-data" id="form-language"> <div class="btn-group"> {% for language in languages %} <button class="btn btn-link language-select" type="button" name="{{ language.code }}"><img src="catalog/language/{{ language.code }}/{{ language.code }}.png" alt="{{ language.name }}" title="{{ language.name }}" /> {{ language.name }}</button> {% endfor %} </div> <input type="hidden" name="code" value="" /> <input type="hidden" name="redirect" value="{{ redirect }}" /> </form> </div> {% endif %}
Is there any way to make it one button for the other language?
Sorry for the many questions.
Thanks in advance.
Code: Select all
{% if languages|length > 1 %}
<div class="pull-left">
<form action="{{ action }}" method="post" enctype="multipart/form-data" id="form-language">
<div class="btn-group">
{% for language in languages %}
{% if language.code != code %}
<button class="btn btn-link language-select" type="button" name="{{ language.code }}"><img src="catalog/language/{{ language.code }}/{{ language.code }}.png" alt="{{ language.name }}" title="{{ language.name }}" /> {{ language.name }}</button>
{% endif %}
{% endfor %}
</div>
<input type="hidden" name="code" value="" />
<input type="hidden" name="redirect" value="{{ redirect }}" />
</form>
</div>
{% endif %}
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
I really can't Thank you enough. Thanks very much for you support.letxobnav wrote: ↑Sat May 11, 2019 12:34 amCode: Select all
{% if languages|length > 1 %} <div class="pull-left"> <form action="{{ action }}" method="post" enctype="multipart/form-data" id="form-language"> <div class="btn-group"> {% for language in languages %} {% if language.code != code %} <button class="btn btn-link language-select" type="button" name="{{ language.code }}"><img src="catalog/language/{{ language.code }}/{{ language.code }}.png" alt="{{ language.name }}" title="{{ language.name }}" /> {{ language.name }}</button> {% endif %} {% endfor %} </div> <input type="hidden" name="code" value="" /> <input type="hidden" name="redirect" value="{{ redirect }}" /> </form> </div> {% endif %}
So much appreciated.
Users browsing this forum: shivankagrawal and 144 guests