Last active
May 25, 2022 12:08
-
-
Save dantetesta/aaeb241392bedce2d548c332cda8cba4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*BY: ASK JARVIS + DANTE TESTA */ | |
| <script> | |
| jQuery(document).ready(function(){ | |
| jQuery('.produto').each(function(){ | |
| var nome = jQuery(this).find('.nome-produto h2').text(); | |
| var desc = jQuery(this).find('.desc-produto h2').text(); | |
| var valor = jQuery(this).find('.valor-produto h2').text(); | |
| var ref = jQuery(this).find('.ref-produto h2').text(); | |
| var msg = `✅ *Novo Pedido* | |
| Olá gostaria de fazer o pedido desse ítem abaixo: | |
| 👉 *${ref}* | |
| *${nome}* | |
| ${desc} | |
| *${valor}* | |
| `; | |
| var link = 'https://api.whatsapp.com/send?phone=5599984009166&text='+window.encodeURIComponent(msg); | |
| jQuery(this).find('.comprar a').attr('href',link); | |
| }); | |
| }); | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment