Jump to content

color picker


Recommended Posts


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(){
            var color = $(this).attr('id');
                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

  • Create New...