Best practices for extending CartService in Medusa.js #873
-
| Hi folks 👋 I’m currently working on a Medusa.js project where I need to extend the  For example: 
 I’ve read the docs about [extending services](https://docs.medusajs.com/development/fundamentals/services#extending-services), but I’d like to understand the best practices for doing this in a way that: 
 So my questions are: 
 Any advice, code snippets, or pointers to examples would be greatly appreciated 🙏 Thanks in advance! | 
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
| Hi 👋 great question! There are two common approaches to customizing cart logic in Medusa: Extending  
 Using Event Subscribers 
 | 
Beta Was this translation helpful? Give feedback.
Hi 👋 great question!
There are two common approaches to customizing cart logic in Medusa:
Extending
CartServiceUsing Event Subscribers