The direct object receives the action from the subject
Direct Object Pronouns
me - me
te - you
lo - it, him
la - it, her
nos - us
os - you all (plural, informal)
los - you, them (formal)
las - you, them (formal)
Indirect Object Pronouns
me - me
te - you
le - it, him, her
nos - us
os - you all (plural, informal)
les - you, them (formal)
**********************************
I buy flowers for my sister - compro flores para mi hermana
subject = I
DO = flowers
IO = my sister
Using direct a object pronoun
I buy them for my sister - las compro para mi hermana
DO = las - them (flowers)
Using indirect object pronoun
I buy her flowers - le compro flores
IO = le - her
Using indirect & direct object pronouns
I buy them for her - se las compro (IO is before DO)
DO = las - them (flowers)
IO = se - her (my sister)
**********************************
I buy the book for you - yo compro el libro para ti
subject = I
DO = the book - el libro
IO = you - ti
Using direct a object pronoun
I buy it for you - lo compro para ti
DO = lo - it (the book)
Using indirect a object pronoun
I buy you the book - te compro el libro
Using indirect & direct object pronouns
I buy you it - te lo compro
IO = te - you
**********************************
pasatelo - you had a good time