-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not able to load thumbnail images using ajax update call #26
Comments
Hi Satish, What version are you using? Are the swatches working when you disable my plugin? |
Hi Wigman I was not able to find the issue. Can you please explain brief what are the things I need to take care and keep in mind while using AjaxSwatches extension ? Thanks for response and great extension ! |
I meant which version of my module, but ok. You should have images in your simple products. There's not much else you have to do. I can't debug your problem without details or access to your system. There's many factors that could interfere, but none really related to my module, just basic Magento 101 things. |
I am using version 0.4.4 of your module. |
Hi Wigman Again it's stopped working. I am stuck now. What to do now ? |
send me a link to the test-environment if you have it available |
Let me install in test-environment |
It's working fine on dev. server. in my localhost I have override view.phtml and media.phtml for make look and feel of configurable product different. I am changing layout based on attribute set. |
Then it's a matter of customization issues. The ajax call should still be fired, but It's very possible that the javascript can't find the thumbnails that have to be replaced because you altered the elements. I can't really support you much further, try to trace back your changes. |
Okay let me try to trace it. |
Hi Wigman please refer stackoverflow below link: Thanks |
Hi Wigman Thanks |
You can comment to my post on stackoverflow (and accept the answer if it helped you). I will respond there. |
To debug the keepFrame issue enable template hints, you'll find out what file is being used. If that doesn't work, post a question on magento.stackexchange.com (you'll get fasted answers then on the general stackoverflow). |
I believe I was having a similar issue - I would click a product swatch and it would return images from a different child product. The following line was returning an empty array: It ended up not being a problem with any of the Wigman plugin files, but an issue with the ConfigurableMediaImages.arrayIntersect() function. I rewrote the function and now everything is working properly: arrayIntersect: function(a, b) {
var result = new Array();
for( var i=0; i<a.length; i++ ){
if( b.indexOf(a[i])>-1 ){
result.push( a[i] );
}
}
return result;
} |
Hi
Extension is working fine. But had some issue after sometime. Whenever I am clicking on color it's not making ajax call to update images. I debug code in swatches-extend.js where in function ConfigurableMediaImages.updateImage returning false before making ajax call due to getting product id null while calling the var pid = ConfigurableMediaImages.getSwatchProdId(productId, label, selectedLabels); so below code returning false before ajax update call :
f(!pid){
return false;
}
What can be the solution ? Is there I am doing something wrong ?
The text was updated successfully, but these errors were encountered: