Melt 3 chocolate squares and dip a glass rim into the chocolate and sprinkle with crushed candy canes. Put the glass in the freezer so the chocolate can harden.
Put the ice cream, peppermint patty pieces, and iced coffee into the blender until smooth.
Pour into the chocolate rimmed glass and top with whipped cream, chocolate shavings, and crushed peppermints.