Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

X-Cart Mobile module released

 
Reply
   X-Cart forums > News and Announcements
 
Thread Tools
  #31  
Old 12-04-2012, 10:17 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default 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.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote

The following 2 users thank qualiteam for this useful post:
pcombs (12-05-2012), skot (12-04-2012)
  #32  
Old 12-04-2012, 11:49 PM
 
Mhodge@q1w.net Mhodge@q1w.net is offline
 

Advanced Member
  
Join Date: Aug 2012
Posts: 55
 

Default 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.
__________________
Mike
Reply With Quote
  #33  
Old 12-05-2012, 12:20 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default 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.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #34  
Old 12-05-2012, 02:33 PM
 
Mhodge@q1w.net Mhodge@q1w.net is offline
 

Advanced Member
  
Join Date: Aug 2012
Posts: 55
 

Default 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!
__________________
Mike
Reply With Quote
  #35  
Old 12-05-2012, 11:03 PM
  soldatov's Avatar 
soldatov soldatov is offline
Moderator
 

X-Cart team
  
Join Date: Apr 2011
Posts: 163
 

Default 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?
Reply With Quote
  #36  
Old 12-06-2012, 11:02 AM
 
Mhodge@q1w.net Mhodge@q1w.net is offline
 

Advanced Member
  
Join Date: Aug 2012
Posts: 55
 

Default 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.
__________________
Mike
Reply With Quote
  #37  
Old 12-06-2012, 11:03 AM
 
Mhodge@q1w.net Mhodge@q1w.net is offline
 

Advanced Member
  
Join Date: Aug 2012
Posts: 55
 

Default 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.
__________________
Mike
Reply With Quote
  #38  
Old 12-06-2012, 11:09 AM
 
Mhodge@q1w.net Mhodge@q1w.net is offline
 

Advanced Member
  
Join Date: Aug 2012
Posts: 55
 

Default Re: X-Cart Mobile module released

I just tried on a brand new GS3 as well and get the same as the images above.
__________________
Mike
Reply With Quote
  #39  
Old 12-06-2012, 11:13 AM
 
Mhodge@q1w.net Mhodge@q1w.net is offline
 

Advanced Member
  
Join Date: Aug 2012
Posts: 55
 

Default Re: X-Cart Mobile module released

http://www.net10wirelessphones.com/images/GS3.JPG
__________________
Mike
Reply With Quote
  #40  
Old 12-06-2012, 07:45 PM
 
Mhodge@q1w.net Mhodge@q1w.net is offline
 

Advanced Member
  
Join Date: Aug 2012
Posts: 55
 

Default 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.
__________________
Mike
Reply With Quote
Reply
   X-Cart forums > News and Announcements



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 08:14 PM.

   

 
X-Cart forums © 2001-2020