| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | Mark Forums Read | User manuals | Login |
Compatability Bug With Lytebox, IE and Xcart | |||
|
|
Thread Tools |
#1
|
|||||||
|
|||||||
Compatability Bug With Lytebox, IE and Xcart
Xcart 4.1.8+ (and possibly earlier).
Possibly this should be in 3rd party mods, but this type of error will likely occur with lots of custom javascript and is really hard to track down partly due to the old style way that xcart scripts are scattered throughout the page. If using Lytebox on your product pages and product variants you may well find that the price or stock quantity or variant images don't update when you make a new selection. This only occurs in IE (6 & 7), Firefox and Safari are fine. The problem comes from the way Lytebox extends the array object, it adds 2 functions to the array object, which IE then includes when it iterates through the array of product variants in a "for...in.." loop, this will cause IE to crash if you try to access a property/do something on those extra functions. To get around this you can: a) not use (insert name of 3rd party js code here) b) check for object types as you iterate and skip the functions added to the arrays eg An example of this is in /modules/Product_Options/func.js Before: Code:
Code:
__________________
Version 4.1.8 Version 4.1.11 |
|||||||
#2
|
|||||||
|
|||||||
Re: Compatability Bug With Lytebox, IE and Xcart
Going to move this to Third Party Add-Ons, as this really isn't a bug just a compatibility issue.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||||
|
|||||||||
Re: Compatability Bug With Lytebox, IE and Xcart
Hi Benz -
I don't believe you will see the issue if you apply the patch provided by QT in this thread
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold (CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module) |
|||||||||
#4
|
|||||||
|
|||||||
Re: Compatability Bug With Lytebox, IE and Xcart
I patched lytebox so I don't need to worry about running into this elsewhere.
In lytebox.js find this: Code:
Code:
Code:
Code:
Code:
Code:
Code:
Code:
__________________
Manuka Bay Company X-Cart Version 4.0.19 [Linux] UGG Boots and other fine sheepskin products http://www.snowriver.com |
|||||||
#5
|
|||||||
|
|||||||
Re: Compatability Bug With Lytebox, IE and Xcart
Thanks gb2world, that patch is a bit more comprehensive!
@geckoday: nicer fix, but I think for now I'll go down the patch Xcart route rather than try to alter every single JS library/script as and when I use it
__________________
Version 4.1.8 Version 4.1.11 |
|||||||
#6
|
|||||||||
|
|||||||||
Re: Compatability Bug With Lytebox, IE and Xcart
right - I've run into other javascript applications besides Lytebox that need it - so QT patch is probably best. Hopefully - they will include it in 4.2. It was still is not in 4.1.11
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold (CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module) |
|||||||||
|
Thread Tools | |
|
|
|
|||
X-Cart forums © 2001-2020
|