Commit 0d1e8c5f authored by imac's avatar imac

[Bugfix]Catalog : click on product when load

parent 943657d8
......@@ -77,8 +77,11 @@ function loadProductContent() {
var varID = jQuery('input[name="variation_id"]').val();
/**********NS***********/
var variations_has_file = $('.download_file').data('fiche');
var tab_var_file = variations_has_file.split(',').slice(0, -1);
var tab_var_file = [];
var variations_has_file = $(document).find('.download_file').attr('data-fiche');
if (variations_has_file){
var tab_var_file = variations_has_file.split(',').slice(0, -1);
}
//console.log(tab_var_file);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment