Product Option File Upload Bug?

We have found a problem after just going live on my first 4.2.4 but the same problem exists in 4.3.1. demo BUT DOES NOT exist on V3.06 as is working fine on my other store,



If add a file using the file upload option, and also then choose another option like size, the file you upload gets removed product and doesnt get carried through to the cart.



try on this test product here

http://embroideredpo…t-shirt-jb.html



I have reported in bug tracker



Thanks

John

Hi John,




[quote]I have reported in bug tracker[/quote]



Yes, you are right.

It is the default bug of CS-Cart. For resolving this problem please check file “js/tygh/exceptions.js” and replace this part ( function “fn_pre_process_form_files” ):


$('#' + k + ' .fileuploader').each(function(idx, elm){
var jelm = $(elm);
var jparent = jelm.parents('.control-group');
jparent.appendTo(container);
jparent.prop('id', 'moved_' + jparent.prop('id'));
});


with this:


$('#' + k + ' .ty-fileuploader').each(function(idx, elm){
var jelm = $(elm);
var jparent = jelm.parents('.ty-control-group');
jparent.appendTo(container);
jparent.prop('id', 'moved_' + jparent.prop('id'));
});




and this part ( function “fn_post_process_form_files” ):


$('div.control-group', container).each(function(idx, elm){


with this:


$('div.ty-control-group', container).each(function(idx, elm){




NOTE: This fix works for the default “Responsive” theme of CS-CART. If you use any custom skin, additional adjustment is needed.



best regards,

WSA team

Thanks for investigating, works for my 4.2.4



John

you are welcome!