
    function add_to_cart(urun_id, quantity,boyut) {
        $.get("/ajax.php", {'act' : 'sepet_ekle', 'urun_id' : urun_id, 'adet' : quantity, 'boyut' : boyut}, function (response) {
            $("#cart").html(response);
        })
        return false;
    }

    function delete_from_cart(sepet_icerik_id) {
        $.get("/ajax.php", {'act' : 'sepet_sil', 'id' : sepet_icerik_id}, function (response) {
            $("#cart").html(response);
        })
        return false;
    }

    function sepet_view() {
        $.get("/ajax.php", {'act' : 'sepet_view'}, function (response) {
            $("#cart").html(response);
        })
        return false;
    }

    $(function () {
        sepet_view();
    })

    $(function () {
        $(".add_to_cart").click(function () {
            $(this).parents('.product').animate({ opacity: 0 }, "slow", function() { $(this).animate({opacity:1},"slow"); });
            form = $(this).parents('.sepetformu');
            boyut = form.find('.cupsizes ol li.selected a').attr('rel');
            rel = form.find('#urun_id').attr('value');
            quant = form.find('#quantity').attr('value');
            add_to_cart(rel,quant,boyut);
            return false;
        });
    });
