ruchit.devil Posted January 9, 2014 Share Posted January 9, 2014 (edited) Hi, My product combination is not working. I am able to create combinations in the back office but it is not reflected in front office. click the following url to check the problem. http://www.thelaptopcare.in/studio/878-battery-for-dell-studio-xps-l402x-l502x-l702x.html I had created the combination as compatible and genuine. i had kept the price of compatible as 1550 and the price for genuine as 3600. but when i select genuine, it shows me the same price as the compatible. this problem occur only for newly added product. for older product, there is no such issue. Edited February 8, 2014 by ruchit.devil (see edit history) Link to comment Share on other sites More sharing options...
ruchit.devil Posted January 12, 2014 Author Share Posted January 12, 2014 also there is one more error. The category menu is displayed for older products but it is not been displayed for new products. So, for new products the product combination is not shown and the category menu does not appear on the left. Please help me out. Unable to add new products. Link to comment Share on other sites More sharing options...
ruchit.devil Posted January 12, 2014 Author Share Posted January 12, 2014 bump.... no one to answer my query.... Link to comment Share on other sites More sharing options...
webdev0008 Posted January 16, 2014 Share Posted January 16, 2014 Hi Ruchit I found a javascript error "doesntExistNoMore is not defined" when selecting the combination. Make sure the this javascript variable is defined in your product.tpl Thanks Link to comment Share on other sites More sharing options...
ruchit.devil Posted January 18, 2014 Author Share Posted January 18, 2014 Hi Webdev, thanks for the reply. Can you please tell me which line exactly has to be edited. I am not a programmer. thanks Link to comment Share on other sites More sharing options...
webdev0008 Posted January 22, 2014 Share Posted January 22, 2014 Hi Webdev, thanks for the reply. Can you please tell me which line exactly has to be edited. I am not a programmer. thanks in your product.tpl like this // Translations var doesntExist = '{l s='This combination does not exist for this product. Please select another combination.' js=1}'; var doesntExistNoMore = '{l s='This product is no longer in stock' js=1}'; // you need to add this line in your product.tpl. var doesntExistNoMoreBut = '{l s='with those attributes but is available with others.' js=1}'; 1 Link to comment Share on other sites More sharing options...
ruchit.devil Posted January 25, 2014 Author Share Posted January 25, 2014 thanks webdev0008. I am now able to see the category tree on the left but the product combination still doesn't work. Please help me to find the solution. Link to comment Share on other sites More sharing options...
webdev0008 Posted January 25, 2014 Share Posted January 25, 2014 Hi Still there is a javascript error on your page. please give me ftp details in pm so I can take a look at it. 1 Link to comment Share on other sites More sharing options...
webdev0008 Posted February 8, 2014 Share Posted February 8, 2014 Hi Thanks for providing details. Your problem is solved. 1 Link to comment Share on other sites More sharing options...
srm200 Posted March 27, 2014 Share Posted March 27, 2014 Hello webdev0008, You seem to know a lot about those javascript errors. I started a topic on a very strange error that sometimes appears and sometimes not. The error appears only on products with attributes. Here is the topi: http://www.prestashop.com/forums/topic/318175-add-to-cart-button-disappears-on-product-page-with-combinations-only-sometimes/?do=findComment&comment=1612226 Thank you. Link to comment Share on other sites More sharing options...
Karelljoan Posted October 30, 2015 Share Posted October 30, 2015 (edited) Hello, I have a problem in my prestashop, the product combination do not work they were working fine till earlier today. But now after some products I added the entire product combinations on the site stopped working. the price stays the same no matter the combination or price impact and when adding to cart, it only adds the default combination for that particular product. Can anybody help me, I have little to no idea of coding or how to solve this issue. the link is www.nkflyer.com and try any product combination Edited October 30, 2015 by Karelljoan (see edit history) Link to comment Share on other sites More sharing options...
klamort Posted December 4, 2015 Share Posted December 4, 2015 Hello webdev0008, You seem to know a lot about those javascript errors. I started a topic on a very strange error that sometimes appears and sometimes not. The error appears only on products with attributes. Here is the topi: http://www.prestashop.com/forums/topic/318175-add-to-cart-button-disappears-on-product-page-with-combinations-only-sometimes/?do=findComment&comment=1612226 Thank you. Hello, did you solve the problem... I am looking for a solution too. Thanks Link to comment Share on other sites More sharing options...
Tailor Shop Posted February 2, 2016 Share Posted February 2, 2016 I am having this same issue. This appears to be a common issue. Is there a problem with this site? I do not see any mention of this in the manual either. Link to comment Share on other sites More sharing options...
sibrodo Posted March 27, 2016 Share Posted March 27, 2016 I had this same problem as well, but i think this might be specific to me only. Anyway, i share my solution: Inside your theme folder, look for : js folder. Example: prestashop_directory/themes/your_theme_folder/js/ Inside this folder, try to look a javascript file called : 'product.js' and open it with your text editor (e.g. Sublime Text). Find the following line: i.e. Hit CTRL + F and search for 'combinationsFromController'function updatePrice(){// Get combination pricesvar combID = $('#idCombination').val();var combination = combinationsFromController[combID];if (typeof combination == 'undefined')return;In my case, the reason that "Add to Cart" button is missing, because i had a javascript error that says : "variable combinationsFormController is not declared". REMEMBER, yours might be different. Try to modify the above code so it looks like this: function updatePrice(){// Get combination pricesvar combID = $('#idCombination').val();var combination = combinationsFromController[combID];typeof combination = 'undefined';if (typeof combination == 'undefined')return;Notice that i add a new line : typeof combination = 'undefined'; Remember: This is a temporary fix. Add that new only will always set the combination to 'undefined'. Meaning, your product combination will always fail to work. I don't mind with this, since my product does not required any combination.The real solution would be to declare this var 'combinationsFromController'. However, i have no idea in which function or where should i declare that. Perhaps anyone knows ? Hope this helps. Link to comment Share on other sites More sharing options...
TiaNex Shopping Posted March 31, 2016 Share Posted March 31, 2016 hi,follow this,it maybe help, http://forge.prestashop.com/browse/PSCSX-2355 Link to comment Share on other sites More sharing options...
Guest locen Posted June 21, 2016 Share Posted June 21, 2016 Hi, I'm not abe to add combinations in products. if i click generate values no combinations added but i see "successful update" version 1.6.0.9 Please help me thanks Link to comment Share on other sites More sharing options...
Serge71 Posted July 3, 2016 Share Posted July 3, 2016 Hello, I'm not sure but I think I have the same or a simuler issue on my shop. It started after upgrading to the latest version 1.6.1.2. I have combinations active for items that have different colours and/or prices so they could be ordered from the same product page with a different ref. number. I can still see the combinations/other colours in the front(and back) office but when you click on a different combination it will only appear for a moment resetting it self back to the default product item. This is the same for all my combination items. Could someone please have a look at his and help me out? This is a link to an example on my shop : http://www.pfleiderer-glass-works.com/shop/euro/en/beach-line/29-italesse-beach-line-flute-prive-beach-box-4pcs.html Thanks a lot! Serge. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now