implementasi buy & add_cart