Jump to content

Customization Form


Recommended Posts

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

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

  • 10 months later...
  • 1 year later...

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.

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...