janfrilich Posted April 6, 2014 Share Posted April 6, 2014 Hello, we have a problem with product combinations generator and I would really appreciate your help. In case we set product quantity to "0" (please see screenshot) and generate the combinations, the following issues occur in FO: - it is not possible to select combination - it is not possible to change currency - it is not possilbe to change language - it is not possible to enlarge the image If I check the console, there is following js error: Uncaught TypeError: Cannot read property 'length' of undefined (product.js:238) updateDisplay (product.js:238) findCombination (product.js:132) onchange We use PS 1.5.6.1 & 1.5.6.2 and error occurs also in default theme. Thank you in advance. Link to comment Share on other sites More sharing options...
El Patron Posted April 6, 2014 Share Posted April 6, 2014 What you set to '0' is the 'default' quantity, which should be set at min. '1'. This is not the stock quantity. I hope that helps you. Link to comment Share on other sites More sharing options...
janfrilich Posted April 7, 2014 Author Share Posted April 7, 2014 Thank you for your reply. I set default quantity to '1', generate combinations and everything works until I tried to purchase this product. After purchasing of this product the issue occurs again..! Do you have any idea what could be wrong? Please see my settings: Link to comment Share on other sites More sharing options...
El Patron Posted April 7, 2014 Share Posted April 7, 2014 Thank you for your reply. I set default quantity to '1', generate combinations and everything works until I tried to purchase this product. After purchasing of this product the issue occurs again..! Do you have any idea what could be wrong? Please see my settings: img.png so, we solved the issue of not being able to generate combinations by setting default quantity to 1, yes? When you say error occurs again, are you saying the error in generating combinations happens again? in your screen shot, can you turn on 'stock management', I assume are will be using stock management. Link to comment Share on other sites More sharing options...
janfrilich Posted April 7, 2014 Author Share Posted April 7, 2014 (edited) Please find answers below in red so, we solved the issue of not being able to generate combinations by setting default quantity to 1, yes? When you say error occurs again, are you saying the error in generating combinations happens again? There were no problems with generating of combinations...We were always been able to generate combinations, but when it was default quantity set to '0', the issues mentioned above occured. In case we set default quantity to '1' everything in FO worked well until we purchased this product. in your screen shot, can you turn on 'stock management', I assume are will be using stock management. We are planning to not use stock management. However, when I turn on stock management, the issues occur when the product quantity decrease to '0' again.. I have sent you admin details via PM. Edited April 7, 2014 by janfrilich (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted April 7, 2014 Share Posted April 7, 2014 We are planning to not use stock management. However, when I turn on stock management, the issues occur when the product quantity decrease to '0' again.. thanks for quick reply, but I am unsure of issue occurs again. Can you explain what the exact issue is if it's not original error off generating combination? thanks, sorry I'm a little slow this morning. Link to comment Share on other sites More sharing options...
janfrilich Posted April 7, 2014 Author Share Posted April 7, 2014 (edited) Ok, let me describe it step by step - lets assume that stock management is turned on. 1. I generate combinations for product, default quanity is set for example to '1' (when product quantity is set to '0', issue occurs immediately) 2. Everything in FO work well.. 3. I purchase the product (quantity decreases to 0) and following issues occur: - it is not possible to change product combination (price) - it is not possible to change language & currency - AJAX cart is not working - it is not possible to enlarge product image Hope it helps for better understanding.. I really appreciate your assisstance. Thank you. Jan Edited April 7, 2014 by janfrilich (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted April 9, 2014 Share Posted April 9, 2014 I've invited community member stottycabanas to help. They are very good with combinations. Link to comment Share on other sites More sharing options...
stottycabanas Posted April 10, 2014 Share Posted April 10, 2014 Ok, let me describe it step by step - lets assume that stock management is turned on. 1. I generate combinations for product, default quanity is set for example to '1' (when product quantity is set to '0', issue occurs immediately) 01.png 2. Everything in FO work well.. 3. I purchase the product (quantity decreases to 0) and following issues occur: - it is not possible to change product combination (price) - it is not possible to change language & currency - AJAX cart is not working - it is not possible to enlarge product image Hope it helps for better understanding.. I really appreciate your assisstance. Thank you. Jan Hi Jan, a number of observations and questions below. I have tried to recreate the issues you've encountered on a test 1.5.6.2 store by trying various permutations of default qty in the combinations generator set to 0 or 1, stock management on or off and allowing out-of-stock ordering on or off. In all cases, the behaviour is as I would expect and there were no errors. The error messages you quote are not, as far as I can tell, Prestashop error messages. I assume they must have come from a non-standard theme. So I'm puzzled that you get these errors when using the default theme. The console errors quote line numbers in product.js which don't seem to correspond with the product.js file in a standard Prestashop installation, so again this looks like a non-standard version of that file, presumably from your theme. It's not clear to me exactly where the errors are occurring. In point 1, you say that 'when product quantity is set to '0', issue occurs immediately'. Is 'immediately' as soon as you click on 'Generate these Combinations'? Do you get to see the list of combinations produced by the generator? Then in point 3 you say that 'you purchase the product ... and the following issues occur:' This implies the errors appeared in front office, not back office like in point 1. So are the errors in back office, front office or both? [but point 2 says everything in front office works well??] For point 3, at what precise point are the error messages generated? I.e. what page were you on, what action did you take and what happened immediately before the errors were shown? Do you get all the error messages at the same time? Have you made any code modifications since installing 1.5.6.2, or have you just made changes to your store via back office? Can you provide the url for your store and instructions on reproducing the issue? Ideally, access to your back office would be helpful too - if you're OK with that, can you PM me the login details. So, lots of questions, but I hope it will help to get to the bottom of the issue. Thanks, Dave 1 Link to comment Share on other sites More sharing options...
janfrilich Posted April 15, 2014 Author Share Posted April 15, 2014 Hello Dave, I have sent you login details to BO. Please find below answers in red. Thank you in advance. Hi Jan, a number of observations and questions below. I have tried to recreate the issues you've encountered on a test 1.5.6.2 store by trying various permutations of default qty in the combinations generator set to 0 or 1, stock management on or off and allowing out-of-stock ordering on or off. In all cases, the behaviour is as I would expect and there were no errors. The error messages you quote are not, as far as I can tell, Prestashop error messages. I assume they must have come from a non-standard theme. So I'm puzzled that you get these errors when using the default theme. The console errors quote line numbers in product.js which don't seem to correspond with the product.js file in a standard Prestashop installation, so again this looks like a non-standard version of that file, presumably from your theme. It's not clear to me exactly where the errors are occurring. In point 1, you say that 'when product quantity is set to '0', issue occurs immediately'. Is 'immediately' as soon as you click on 'Generate these Combinations'? Do you get to see the list of combinations produced by the generator? There is no problem with generating combinations - this works well. But when the quantity of any product/combinaton is set '0' or decreases to '0', the mentioned problems occurs. Then in point 3 you say that 'you purchase the product ... and the following issues occur:' This implies the errors appeared in front office, not back office like in point 1. So are the errors in back office, front office or both? [but point 2 says everything in front office works well??] Problem is in FO only. However only in case, when in BO is quantity of product/combnation set to '0'. For point 3, at what precise point are the error messages generated? I.e. what page were you on, what action did you take and what happened immediately before the errors were shown? Do you get all the error messages at the same time? No error messages - please try, I have sent you login details in PM. Have you made any code modifications since installing 1.5.6.2, or have you just made changes to your store via back office? No modifications have been made. Can you provide the url for your store and instructions on reproducing the issue? Ideally, access to your back office would be helpful too - if you're OK with that, can you PM me the login details. So, lots of questions, but I hope it will help to get to the bottom of the issue. Thanks, Dave Link to comment Share on other sites More sharing options...
stottycabanas Posted April 16, 2014 Share Posted April 16, 2014 Hi Jan, I had a quick look at your site and was able to see some of the issues you referred to. However, there were also times when the behaviour was as it should be. I'll try & do some further tests over the next day or so. Cheers, Dave Link to comment Share on other sites More sharing options...
stottycabanas Posted April 18, 2014 Share Posted April 18, 2014 Jan, apologies, I've run out of time to do some further testing, and will now be on holiday until 28 April. I'm not sure if I'll be able to get access while I'm away, but if you still need assistance when I'm back, I'll try & help then. Cheers, Dave Link to comment Share on other sites More sharing options...
janfrilich Posted April 30, 2014 Author Share Posted April 30, 2014 Jan, apologies, I've run out of time to do some further testing, and will now be on holiday until 28 April. I'm not sure if I'll be able to get access while I'm away, but if you still need assistance when I'm back, I'll try & help then. Cheers, Dave Hi Dave, hope you´re back, because we still need your help Thank you in advance. Jan Link to comment Share on other sites More sharing options...
stottycabanas Posted May 1, 2014 Share Posted May 1, 2014 Jan, I'm back and I haven't forgotten you. Please bear with me as I am pretty busy at the moment, but I will get to this as soon as I can, hopefully in the next day or so. Cheers, Dave Link to comment Share on other sites More sharing options...
Varun Krishnappa Posted October 18, 2014 Share Posted October 18, 2014 (edited) Hi Friends, Need help from you all to solve this error. I am facing an error in the product size combinations , We have different size combinations such as XS,S,M,L,XL,XXL,XXXL however when we select L as a size at the time of purchase , it takes a defult combination as XS. please refer this link if you want to check the error in details. http://www.carttopeople.com/en/warm-wear/1887-softshell-bionassay-lady-m8188776.html?search_query=SOFTSHELL+BIONASSAY&results=4 Regards, varun Edited October 18, 2014 by Varun Krishnappa (see edit history) Link to comment Share on other sites More sharing options...
Guest locen Posted April 7, 2016 Share Posted April 7, 2016 Hi, i have this problem with combinations: - I enabled the combinations and with the first visualization you show also photos that are only for the other combination.- Then if you change combination and you rechange combinations like the first time all photos are will be ok like image associated with the combinations. can anyone help me? Link to comment Share on other sites More sharing options...
Recommended Posts