function bounce(id, contentType, parentID) {
    var URL = '';
    // shopify.dev/docs/admin-api/rest/reference/metafield
    switch (contentType) {
      case 'variants':
        URL = '/admin/products/' + parentID + '/' + contentType + '/' + id + '/metafields.json';
        break;
      case 'articles':
        URL = '/admin/blogs/' + parentID + '/' + contentType + '/' + id + '/metafields.json';
        break;
      default:
        URL = '/admin/' + contentType + '/' + id + '/metafields.json';
    }
    document.location.href = '//' + document.location.hostname + URL;
  }
// "Bounces" the user to the correct URL to view their JSON
"Bounces" the user to the correct URL to view their JSON
" Bounces " the user to the correct URL to view their JSON
function bounce(id, contentType, parentID) {
    var URL = '';
    switch (contentType) {
      case 'variants':
        URL = '/admin/products/' + parentID + '/' + contentType + '/' + id + '/metafields.json';
        break;
      case 'articles':
        URL = '/admin/blogs/' + parentID + '/' + contentType + '/' + id + '/metafields.json';
        break;
      default:
        URL = '/admin/' + contentType + '/' + id + '/metafields.json';
    }
    document.location.href = '//' + document.location.hostname + URL;
  }
function bounce ( id , contentType , parentID ) { var URL = '' ; switch ( contentType ) { case 'variants' : URL = '/admin/products/' + parentID + '/' + contentType + '/' + id + '/metafields.json' ; break ; case 'articles' : URL = '/admin/blogs/' + parentID + '/' + contentType + '/' + id + '/metafields.json' ; break ; default : URL = '/admin/' + contentType + '/' + id + '/metafields.json' ; } document . location . href = '//' + document . location . hostname + URL ; }
"Bounces" the user to the correct URL to view their JSON
" Bounces " the user to the correct URL to view their JSON
// shopify.dev/docs/admin-api/rest/reference/metafield