Created
October 1, 2012 08:57
-
-
Save makfruit/3810429 to your computer and use it in GitHub Desktop.
A drop-in script for Ecwid for populating the order comments section with custom text
This file contains 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
if (typeof(Ecwid) == 'object') { | |
Ecwid.OnPageLoaded.add(function(page) { | |
if ('CHECKOUT_PAYMENT_DETAILS' == page.type) { | |
jQuery('.ecwid-PaymentCommentsBlock-textarea').val('here goes the text'); | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment