Created
November 23, 2013 21:03
-
-
Save gicolek/7619930 to your computer and use it in GitHub Desktop.
JavaScript handler for custom WooCommerce ajax cart data.
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
$('body').on('adding_to_cart', function(event, param1, param2) { | |
// pick the data from somewhere and define extra product_data parameter | |
// event and param1 parameteres serve no need in that case | |
param2.logo_text = 'My great logo!'; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment