ajax-loader.gif not being loaded when Add Store Code to Urls is set to Yes

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.

Attachment 31753

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

Profile photo of Sherlock 0.00 $tone November 28, 2013
Public

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

#1

This question is now closed

Written By

Comments