I am having an issue with the ajax-loader.gif image not being loaded when I set Add Store Code to Urls to Yes in the backend. My store URLs look like http://www.example.com/us/home and http://www.example.com/de/home but now the image url for ajax-loader.gif is generated as following: http://www.example.com/us/skin/frontend/default/jm_crafts/wavethemes/jmbasetheme/profiles/example/images/default/ajax-loader.gif
because of the addition of /us/ or /de/ the image is not being loaded. See attachment for an example.
I tried to edit line 24 at /app/design/frontend/default/jm_crafts/template/joomlart/jmproducts/list.phtml
$loadingimage = "skin/frontend/default/".$default."/wavethemes/jmbasetheme/profiles/".Mage::helper("jmbasetheme")->getprofile()."/images/".$baseconfig["loadajax"];
but the addition of the http url is added elsewhere in /skin/frontend/default/jm_crafts/js/jquery.infinitescroll.js
But I am unable to find exactly how. How can I fix this?
2 answers
Hi mate,
For this issue, you can open the file of app\design\frontend\default\jm_craftstemplate\pag e\html\head.phtml there you would see this line of code
PHP Code:
var Baseurl = '<?php echo str_replace("index.php/","",Mage::getBaseUrl()); ?>';
you can change it to
PHP Code:
var Baseurl = '<?php echo str_replace("index.php/","",Mage::getStoreConfig("web/secure/base_url")); ?>';
Let me know if this helps
Problem solved! Thank you! (might be good to update this in the template for everyone)
This question is now closed