quizzer Posted July 10, 2010 Share Posted July 10, 2010 Hi, new to Prestashop and i am trying to alter the layout of the customization form, but i can't find the TPL file or CSS that relates to this form.Any ideas. Link to comment Share on other sites More sharing options...
rocky Posted July 11, 2010 Share Posted July 11, 2010 The code is in the <!-- Customizable products --> section at the bottom of product.tpl. The CSS code is in the /* Customizable product */ section near the bottom of global.css. Link to comment Share on other sites More sharing options...
quizzer Posted July 12, 2010 Author Share Posted July 12, 2010 Thanks for the info, I am modifying a non standard theme and customizable products code was not included in the theme.Anyway, I have now got the customization form in the position I want and looking like I want, but it don't work. When you click the save button I get the "Uploading in progress, please wait..." message, but it just hangs their and never uploads.I must have messed the code up, but can't see where I have gone wrong. Link to comment Share on other sites More sharing options...
rocky Posted July 12, 2010 Share Posted July 12, 2010 You'll need to copy the customization Javascript code from themes/prestashop/js/product.js into your third-party theme. Link to comment Share on other sites More sharing options...
quizzer Posted July 13, 2010 Author Share Posted July 13, 2010 I have copied this code // Hide the customization submit button and display some message $('p#customizedDatas input').click(function() { $('p#customizedDatas input').hide(); $('p#customizedDatas').append(' ' + uploading_in_progress); }); //init the price in relation of the selected attributes if (typeof productHasAttributes != 'undefined' && productHasAttributes) findCombination(true); // $('a#resetImages').click(function() { updateColorSelect(0); }); }); function saveCustomization() { $('#quantityBackup').val($('#quantity_wanted').val()); $('body select[@id^="group_"]').each(function() { $('#customizationForm').attr('action', $('#customizationForm').attr('action') + '&' + this.id + '=' + parseInt(this.value)); }); $('#customizationForm').submit(); } into the products.js file in my theme, but it still dosnt work. Link to comment Share on other sites More sharing options...
rocky Posted July 13, 2010 Share Posted July 13, 2010 That should work. I can't think of why it wouldn't. Can you try with the default theme? If that works, you may need to recreate your theme based on the default theme. Link to comment Share on other sites More sharing options...
nathanielleee Posted May 29, 2011 Share Posted May 29, 2011 Im having the same problem and i changed the code as well. Anyone else have any solutions?Ive already recreated my theme based on the default but still no change in the customization field Link to comment Share on other sites More sharing options...
reason8 Posted May 10, 2013 Share Posted May 10, 2013 I am also having the same problem, I moved the customization section to the left hand side now the upload just loops. It must have something to do with the ajax call to save but what? Link to comment Share on other sites More sharing options...
reason8 Posted May 10, 2013 Share Posted May 10, 2013 I figured out my problem. It might be yours too. I moved the customization form within another form (the cart in my case) move it out of the forms closing tag and it fixed the error. Obviously its the ajax call targeting the wrong form ID. 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