Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save aatronco/0a7984a5ffe18a64c6079c3abbe4b162 to your computer and use it in GitHub Desktop.
Save aatronco/0a7984a5ffe18a64c6079c3abbe4b162 to your computer and use it in GitHub Desktop.
<!-- Instructions
Step 1: identify Payment Method IDs:
- Avalpay: 251942
- Bancolombia: 251947
- Contra entrega: 271580
Step 2: Upload logos to the code editor
Step 3: Paste the code on the checkout.
->>
<script>
$(document).ready(function(){
//Replace the IDs of the payment use #pixxxxxx if id is xxxxxx
$("#pi251942").append("<img style='max-height: 50px!important;' src='{{"avalpay.png" | asset | resize: "340x40"}}'>");
$("#pi251947").append("<img style='max-height: 50px!important;' src='{{"bancolombia.png" | asset}}'>");
$("#pi271580").append("<img style='max-height: 50px!important;' src='{{"servientrega.png" | asset}}'>");
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment