Laurent C. Posted October 12, 2009 Share Posted October 12, 2009 Hi,I have a little problem with the combinations of products. I would like people can't buy product which are not available.I explain what I mean.Per example, I have Jacket 1, Jacket 2, Jacket 3, etc.My Jacket 1 is available in size S, M, L and XL and in colour Green, Yellow and Red with combination:Size S - Green > 3Size S - Yellow > 2Size S - Red > 4Size M - Green > 1Size M - Yellow > 3Size M - Red > 2Size L - Green > 2Size L - Yellow > 1Size L - Red > 3Size XL - Green > 2Size XL - Yellow > 1Size XL - Red > 0And with default value "Size S - Green".My problem is if somebody order "Size XL - Red" (not available) is the default value which appears on the basket and any message to say this combination is not possible.So, my question: How I can do for customer can't selected this combination which is not available?I tried this code > "show valid attribute combinations in the menu"http://www.prestashop.com/forums/viewthread/14041/general_discussion/show_valid_attribute_combinations_in_the_menu_codebut it didn't work with my version of Prestashop (1.2.2.0)Hope my explanation was clear and somebody knows the answer.Thank.Laurent<-- en francais -->Bonjour,J'ai un problème avec les déclinaisons des produits. J'aimerais que les visiteurs ne puissent acheter des produits qui ne sont pas disponible.Je m'explique.Par exemple, j'ai Veste 1, Veste 2, Veste 3, etc.Ma Veste 1 est disponible en taille S, M, L et XL avec pour couleur Vert, Jaune et Rouge ainsi que les déclinaisons :Taille S - Vert > 3Taille S - Jaune > 2Taille S - Rouge > 4Taille M - Vert > 1Taille M - Jaune > 3Taille M - Rouge > 2Taille L - Vert > 2Taille L - Jaune > 1Taille L - Rouge > 3Taille XL - Vert > 2Taille XL - Jaune > 1Taille XL - Rouge > 0Avec valeur par défaut "Taille S - Vert".Mon problème est que lorsque que quelqu'un commande "Taille XL - Rouge" (qui n'est pas disponible), c'est la valeur par défaut qui s'ajoute au panier. Et aucun message pour dire que cette déclination n'est pas possible.Donc, ma question : comment faire pour que les clients ne puissent sélectionner cette déclinaison qui n'est pas disponible ?J'ai essayé ce code > "show valid attribute combinations in the menu"http://www.prestashop.com/forums/viewthread/14041/general_discussion/show_valid_attribute_combinations_in_the_menu_codemais il n'a pas fonctionné sur ma version de Prestashop (1.2.2.0)J'espère que mon expliquation était claire et que quelqu'un conaît la solution.Merci.Laurent Link to comment Share on other sites More sharing options...
Laurent C. Posted October 12, 2009 Author Share Posted October 12, 2009 Hi,I am a bit surprise that nobody uses Prestashop to sell clothes and can't answer to this question.I saw in "Back Office >> Preferences >> Products" the option "Display unavailable product attributes on product page" but it's look like if for nothing, it doesn't change anything if we choose yes or no. Link to comment Share on other sites More sharing options...
Patric Posted October 12, 2009 Share Posted October 12, 2009 Please don't post in French here. French => "Forum francophone". Link to comment Share on other sites More sharing options...
Laurent C. Posted October 12, 2009 Author Share Posted October 12, 2009 Another answer: this one is wrong. Link to comment Share on other sites More sharing options...
Laurent C. Posted October 12, 2009 Author Share Posted October 12, 2009 Now, after some changes on the configuration, when we choose product which is not available in the colour and the size. it hides the field quantity and the button "Add to Cart".The new problem is, if we go back in another available combination, the field "quantity" reappears but not the button.Any idea? Link to comment Share on other sites More sharing options...
Laurent C. Posted October 12, 2009 Author Share Posted October 12, 2009 Solved (thank to Patric and it's so good answer).The problem was from the "product.js" which is wrong. I need to use one from an old version of Prestashop. Link to comment Share on other sites More sharing options...
curritocasa Posted December 7, 2009 Share Posted December 7, 2009 Hi Laurent,i have the same problem, and i supposed my product.js is also bad.Could you tell what version of product.js are using now? (and where is downloadable)Thanks in advance,Paco Link to comment Share on other sites More sharing options...
Laurent C. Posted December 8, 2009 Author Share Posted December 8, 2009 Hi Paco,My shop is installed with Prestashop 1.2 but the Javascript I use is from the version 1.0 of the script.I add it as attachment. product.js 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