PrestaShop Forums: AJAX Cart giving jQuery error after change to layout - PrestaShop Forums

Jump to content


Welcome to the PrestaShop Forum! We hope you'll share your comments and suggestions with us. We ask that you please post in English to the main sections of the PrestaShop Forum. If you want to write in another language, please post in the corresponding PrestaShop Community section below.

Please note that PrestaShop Community sections are largely self-moderated. PrestaShop team members may or may not participate in non-English sections. To improve the chances of receiving feedback to your question or comment, please post it in English to the main sections of our Forum.

NYC

Vous parlez français ? par ici !


AJAX Cart giving jQuery error after change to layout


AJAX Cart giving jQuery error after change to layout

#1 Guest_mark2_*

  • --
  • Guests

Posted 26 November 2009 - 04:01 PM

Hi,

I am getting the following error when selecting the "add to cart" link from a category page using the AJAX Cart :

jQuery.transferHelper.css("width", z.start.wb + "px").css("height", z.start.hb + "px").css is not a function

This problem appears when a layout change is made. The specific change is:

There is a div block holding the product with class defined in global.css as:

.product_block {
float: left; /* This seems to break the AJAX cart ?*/
background: #d0d3d8 url('../img/block_category_item_bg.jpg') repeat-x;
border: solid 1px #d0d3d8;
padding: 6px;
height:130px;
margin-bottom:0.3em;
width: 550px;
}


The "float:left" has the effect of laying out the products horizontally. By commenting out this line the products are layed out vertically and the AJAX cart works.

Does anyone have any similar experiences or ideas as to what the problem may be ?

Regards,
Mark

#2 Guest__*

  • --
  • Guests

Posted 26 November 2009 - 04:35 PM

I was able to work around the issue by using a table to do the layout. I guess it is a bug in the ifxtransfer.js extension to jQuery.

#3 Guest__*

  • --
  • Guests

Posted 16 February 2011 - 12:42 PM

remove float: left; from id="image-block"

BAD/WRONG
css
.detail-img {float: left;}
html




CORRECT
css
.detail-img {}
.detail-img-div {float: left;}
html










1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users