SHARE
TWEET

Untitled

a guest Feb 16th, 2020 95 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. document.observe('dom:loaded', function() {
  2.  
  3.     FC.DependentFields.addRule(
  4.         'from_courier',                     // unique rule identifier
  5.         {
  6.             field: 's_method_freeshipping_freeshipping',        // field to watch
  7.             value: true,                        // value to compare with field value, can be an array
  8.             dependentField: ['billing:city'],// dependent field, can be an array
  9.             match: 'hidden',
  10.             unmatch: 'optional' // field status, when field.value equals value
  11.         }
  12.     );
  13.     FC.DependentFields.addRule(
  14.         'from_store',                     // unique rule identifier
  15.         {
  16.             field: 's_method_freeshipping_freeshipping',        // field to watch
  17.             value: true,                        // value to compare with field value, can be an array
  18.             dependentField: ['billing:city','billing:street1'],// dependent field, can be an array
  19.             match: 'hidden',
  20.             unmatch: 'optional' // field status, when field.value equals value
  21.         }
  22.     );
  23.  
  24. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top