I would use a plugin called blastcode for that. they have a smiliar example on their site check it out: https://www.blastcode.com/gallery/sample.php?pid=105