Searching fields in component dont load in second language
Oct 29, 2015 5:09 pm by 4ctrade
Oct 29, 2015 5:09 pm by 4ctrade
Hi, I need help with my website, when a new language is selected, the search fields dont load...
http://4ctrade.com/buscar-diamantes.html
Please your help with this issue.
Enterprise account here.
Re: Searching fields in component dont load in second langua
Oct 30, 2015 3:58 am by Edvard
Oct 30, 2015 3:58 am by Edvard
Hi,
To load the form it uses AJAX request to your 4ctrade.com. When you are on a different language it still tries to load the form from your original website, because you have this in your javascript code:
var url = 'http://4ctrade.com/index.php?option=com_djclassifieds&view=item&task=getSearchFields&cat_id=' + cat_id;
You will need to make the URL relative, so it looks like this:
var url = '/index.php?option=com_djclassifieds&view=item&task=getSearchFields&cat_id=' + cat_id;
Also you have this:
url: 'http://4ctrade.com/index.php',
which should become:
url: '/index.php',
Thanks!
SIMILAR TOPICS
Highly increased load on website from 51.255.131.149 | Feb 19, 2019 8:29 pm | Replies: 1 | Post by: Ant_Z |
Large numbers of crawl errors with double language code | Jan 24, 2019 1:43 am | Replies: 1 | Post by: natastna2 |
Translate website to any specific language, on page load | Jan 19, 2019 6:49 am | Replies: 1 | Post by: Leaon7756 |
Graphic translation for every language is missing | Dec 19, 2018 7:54 am | Replies: 1 | Post by: Daryl Dixon |
How to remove mobile Language Select Button transparency | Dec 5, 2018 10:06 pm | Replies: 10 | Post by: JeffTR |