Jump to content

t-shirt customize cart summary help!


Recommended Posts

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.

post-359565-0-60390600-1336124533_thumb.jpg

post-359565-0-58129700-1336124696_thumb.jpg

 

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 by simon1001 (see edit history)
Link to comment
Share on other sites

  • 5 weeks later...
×
×
  • Create New...