Last active
May 25, 2022 12:09
-
-
Save dantetesta/1ea993087233a00d9d37278aabccdbe1 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').text(); | |
var desc = jQuery(this).find('.desc-produto').text(); | |
var valor = jQuery(this).find('.valor-produto').text(); | |
var ref = jQuery(this).find('.ref-produto').text(); | |
var msg = `Olá, gostaria de comprar o produto ${nome} (${ref}), ${desc}, no valor de ${valor}.`; | |
var link = 'https://api.whatsapp.com/send?phone=5599984009166&text='+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