evi Posted June 30, 2014 Share Posted June 30, 2014 hello, i hv a problem, i want to modify color picker default prestashop.. i want to get id of color by ajax.. here is my code : $('#color_to_pick_list li a').click(function(){ $(this).each(function(){ var color = $(this).attr('id'); $.ajax({ type: "POST", url: ' ', data: { "color " : color }, success : function(data){ console.log('success' + color); } }) }); i want to passing data of color to my Product controller, i get the id when i run console log, but i didnt get the id of color in my product controller.. my code in product controller : $color = $_POST['color']; echo $color ; please helpme Link to comment Share on other sites More sharing options...
Recommended Posts