Closed isharma-sharma closed 7 years ago
On Jun 27, 2017, at 12:01 PM, Toni Langley notifications@github.com wrote:
What do you want to do? What are you doing? What have you tried to resolve this issue?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ga-wdi-boston/team-project/issues/344#issuecomment-311404350, or mute the thread https://github.com/notifications/unsubscribe-auth/AaWNE4oMA2Pf3GKlbmQGMfLlKzrpl9OVks5sISdBgaJpZM4OG1f_.
As, the user will not be creating the products how will the person see their selected products i how can I get the id of the products I have created the products on my backend my ajax for get all product is working but the user need to see their selected product not all products
sounds like you need the user to post to a join table with the product_id as well as their user_id
we have a cart table which has refrence to user and product id
On Tue, Jun 27, 2017 at 12:11 PM, Jordan notifications@github.com wrote:
sounds like you need the user to post to a join table with the product_id as well as their user_id
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ga-wdi-boston/team-project/issues/344#issuecomment-311407508, or mute the thread https://github.com/notifications/unsubscribe-auth/AaWNE87OZA3VshCmiUSXaZmyg1dC-c3eks5sISnJgaJpZM4OG1f_ .
so then you could query the cart table to return only things that have the matching user_id
@isharma-sharma Update?
i m trying but not getting how to do
@isharma-sharma Have you made any progress?
@isharma-sharma Is this still an issue?
What do you want to do? What are you doing? What have you tried to resolve this issue?