simon1001 Posted May 4, 2012 Share Posted May 4, 2012 (edited) Hi I hope some of you brilliant heads can help me... I've been on this problem for some time now - I just can't solve it without some help. senario I have an app that opens by the click of a design button i've added to a product in prestashop - The app opens and you can customize the product and add it to the cart. The app is made with html5 canvas and javascript and I $post it todataUrl via a php script. problem I want the product preview picture show up in the cart summary. I've seen it done here http://www.itemstyle.com, http://www.configurateurvisuel.fr. and it is done when you add a customizable field with picture upload - you have the main product in your cart summary and then the customizable field under it, see the attached files. Question How can i communicate to the customizable field ? I've looked at product.tpl (javascript:saveCustomization) and I've looked in the product.js function saveCustomization() { $('#quantityBackup').val($('#quantity_wanted').val()); customAction = $('#customizationForm').attr('action'); $('body select[id^=group_]').each(function() { customAction = customAction.replace(new RegExp(this.id + '=\\d+'), this.id +'='+this.value); }); $('#customizationForm').attr('action', customAction); $('#customizationForm').submit(); } How can i communicate with that field via code? Thank you for reading this - I hope you can help me , and I know if it gets answered it will help alot. Edited May 4, 2012 by simon1001 (see edit history) Link to comment Share on other sites More sharing options...
Prescol Posted June 3, 2012 Share Posted June 3, 2012 I think what that module does is add the product via a custom php script, so the module saves an snapshot of the customization and associates this to the product at the same time it adds to database. Link to comment Share on other sites More sharing options...
Recommended Posts