Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andyg5000/49c0a802e434442a73a2 to your computer and use it in GitHub Desktop.
Save andyg5000/49c0a802e434442a73a2 to your computer and use it in GitHub Desktop.
Update commerce discount percentage field description
<?php
$instance = field_info_instance('commerce_discount_offer', 'commerce_percentage', 'percentage');
$instance['description'] = 'Enter the percentage discount as a whole number';
field_update_instance($instance);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment