Jump to content

Recommended Posts

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

post-278253-0-00115800-1319061839_thumb.jpg

post-278253-0-57303700-1319061846_thumb.jpg

  • Like 1
Link to comment
Share on other sites

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

  • 7 months later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...