X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   News and Announcements (https://forum.x-cart.com/forumdisplay.php?f=28)
-   -   X-Cart Mobile module released (https://forum.x-cart.com/showthread.php?t=65246)

qualiteam 12-04-2012 10:17 PM

Re: X-Cart Mobile module released
 
Alter this script: skin/common_files/modules/Xcart_Mobile/customer/core.js line 145, block:

Code:

/**
  * Update thumbnails sizing (products list, cart, etc.)
  */
 var current_em = Math.floor($('.product-thumbnail').width());
 
  $(".product-thumbnail img").each(function(){
    if (!$(this).hasClass('leveler')) {
     
      // Get on screen image
      var screenImage = $(this);
 
      // Create new offscreen image to test
      var theImage = new Image();
      theImage.src = screenImage.attr("src");
 
      var sizes = func_crop_dimensions (theImage.width, theImage.height, current_em, current_em);
     
      $(this).css({
        width: sizes[0],
        height: sizes[1]
      });
    }
  });


and replace the code above with this code:

Code:

  /**
  * Update thumbnails sizing (products list, cart, etc.)
  */
  var current_em = Math.floor(parseFloat($('.product-thumbnail').css('width')));
 
  $(".product-thumbnail img").each(function(){
    if (!$(this).hasClass('leveler')) {
     
      // Get on screen image
      var screenImage = $(this);

      // Create new offscreen image to test
      $('<img />').attr("src", screenImage.attr("src")).load(function(){
       
        var sizes = func_crop_dimensions (this.width, this.height, current_em, current_em);
     
        screenImage.css({
          width: sizes[0],
          height: sizes[1]
        });
       
      });
    }
  });


This should fix the missing images issue.

Mhodge@q1w.net 12-04-2012 11:49 PM

Re: X-Cart Mobile module released
 
I tried that and it did not fix the issue. If I hit refresh multiple times they will load but the images are cut in half. Also, detailed or additional images do not load. I am testing using a new iPhone 5 and and Android device. I have deleted my cache and went to the site again and the same thing happens.

qualiteam 12-05-2012 12:20 AM

Re: X-Cart Mobile module released
 
There seem to be an javascript error in your store. Please make sure you've applied the changes properly.

If problem persists, please contact our support team and supply FTP/SSH access details.

Mhodge@q1w.net 12-05-2012 02:33 PM

Re: X-Cart Mobile module released
 
OK, I updated the script exactly as described above and the javascript error is no longer present. When you go to the mobile site now and click on our first category "Phones", page 1 items photos do not show. If you hit Page 2, it shows them, go back to page 1 and it doesn't show them either. To get page 1 images to show I must hit F5. This happends using my new iPad, Iphone 5 and several android devices. I thought maybe there were too many products trying to load but I decreased it and even if I have 1 item, same problem. Once this is corrected, I think it is an awesome application. There are a few minor things on the "More" section where some links do not load. Also, the terms and conditions link doesn't work on checkout. Thanks for your support!

soldatov 12-05-2012 11:03 PM

Re: X-Cart Mobile module released
 
Mhodge@q1w.net

I've just checked your site on iPhone, on SIII, on Nexus and on desktop in several browsers.
Products list images appeared correctly.

Seems that javascript is cached in you phone. Could you please check that?

Mhodge@q1w.net 12-06-2012 11:02 AM

Re: X-Cart Mobile module released
 
I cleared my cache again and I get the same thing when I use the iPhone 3 user agent in Firefox as well. Same as above images.

Mhodge@q1w.net 12-06-2012 11:03 AM

Re: X-Cart Mobile module released
 
Same on a brand new android device I just pulled out of a box. I am in the wireless industry so I have almost every phone and browser available to me in my office.

Mhodge@q1w.net 12-06-2012 11:09 AM

Re: X-Cart Mobile module released
 
I just tried on a brand new GS3 as well and get the same as the images above.

Mhodge@q1w.net 12-06-2012 11:13 AM

Re: X-Cart Mobile module released
 
http://www.net10wirelessphones.com/images/GS3.JPG

Mhodge@q1w.net 12-06-2012 07:45 PM

Re: X-Cart Mobile module released
 
It appears it is only happening on the first page of the first category. Click on "Phones" on the main menu.


All times are GMT -8. The time now is 05:00 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.