salsaweb Posted June 22, 2018 Share Posted June 22, 2018 (edited) Salve, come da titolo mi chiedevo se esiste la possibilità di variare la descrizione in base alla combinazione. Ho cercato ma non ho trovato nulla. Utilizzo presta shop 1.3.3. Grazie SW Edited June 22, 2018 by salsaweb (see edit history) Link to comment Share on other sites More sharing options...
salsaweb Posted June 22, 2018 Author Share Posted June 22, 2018 Dal forum inglese ho trovato questo post If you won´t change db structure, you can work with jQuery. Edit product.tpl, add a <script> section where you put an attribute onchange function. Use the description field to add different descriptions for example [attr_0]Default text[/attr_0][attr_14]Description text for color = black[/attr_14][attr_15]Description text for disk space = 16Go[/attr_15] The attribute onchange function parses all descriptions and shows only the description text for specific attribute. In pratica ggiungendo uno script onchange su produtct.tlp dovrebbe funzionare. Ci sto provando. Qualcuno lo ha mai fatto? 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