Jokerino Posted October 19, 2011 Share Posted October 19, 2011 Hi All, I have some problem on setting the Cart Block module correctly. The local version on my computer works fine, layout of the cart block is correct and animation once click on ''CART' (to add the product) works fine. The version that i am trying to put online does not work, the block does not shows properly and animation does not work too. See the 2 images. I have noticed that on the local version (that works ok), if i open the source code of the home page these 2 reference are present: ... <link href="/prestashop-nuovo/themes/matrice/css/modules/blockcart/blockcart.css" rel="stylesheet" type="text/css" media="all" /> .... <script type="text/javascript" src="/prestashop-nuovo/modules/blockcart/ajax-cart.js"></script> In the non-working version these 2 links are not present, but i don't understand why... is this the problem? how can i solve it? could anyone help me please?? Prestashop version: 1.4.5.1 (same problem with previous version) thanks! antonio 1 Link to comment Share on other sites More sharing options...
Tom_Rufener Posted October 20, 2011 Share Posted October 20, 2011 Hi Antonio, I had a similar problem just two days ago - it was caused by a css file which hadn't been loaded. I solved this issue by hard-coding the absolute url of the cart modules' css into the header.tpl of my theme. So, in the header.tpl of your theme (Matrice), find the following code lines: {if isset($css_files)} {foreach from=$css_files key=css_uri item=media} <link href="{$css_uri}" rel="stylesheet" type="text/css" media="{$media}" /> {/foreach} {/if} Get the absolute (!) url of your blockcart.css and put it into the header.tpl; it should look something like this: {if isset($css_files)} {foreach from=$css_files key=css_uri item=media} <link href="{$css_uri}" rel="stylesheet" type="text/css" media=" <link rel="stylesheet" type="text/css" href="http://www.yourshop.com/themes/matrice/css/modules/blockcart/blockcart.css" media="screen" /> {/foreach} {/if} This should solve the problem; at least it did in my case. (I repeated this also for other modules' css files which hadn't been loaded.) Link to comment Share on other sites More sharing options...
Jokerino Posted October 20, 2011 Author Share Posted October 20, 2011 Hi Tom_Rufener, I have added the CSS and JS in the header.tpl and it works!! Thanks!!!!!!!!!!!!!! :-)) antonio p.s. I am wondering why $css_files and $js_files do not contain the missing entry/file.. :-( Link to comment Share on other sites More sharing options...
yesiam Posted October 23, 2011 Share Posted October 23, 2011 The problem is that, if you move the cart to the header block of your page works perfectly, without copying any code. Just copy the module to the header (positionmodules / header), that's all. Best regards 1 Link to comment Share on other sites More sharing options...
[email protected] Posted May 24, 2012 Share Posted May 24, 2012 The problem is that, if you move the cart to the header block of your page works perfectly, without copying any code. Just copy the module to the header (positionmodules / header), that's all. Best regards yup it works perfectly.all user , if the product in cart does not align properly and the flying product image doesnt work do this , everything will get fine 4 sure :-) , thx a tonn buddy , ur a life saver 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