Blender - set material color as alpha background

I have a problem with blender texture. I wonder how can I set “material color” as alpha color? For now I delete black background behind texture adding “transparent shader” in node editor and I achieve completely “transparent” material that the rest mesh of cup is visible. How can I set body color to transparent area behind png texture?