Skip to content

Instantly share code, notes, and snippets.

@zakhardage
Created August 21, 2019 04:43
Show Gist options
  • Save zakhardage/50dee78b26868ac2d4060c5168af1f47 to your computer and use it in GitHub Desktop.
Save zakhardage/50dee78b26868ac2d4060c5168af1f47 to your computer and use it in GitHub Desktop.
Quick Shopify Section API request
<div class="content-test"></div>
<script>
var request = new XMLHttpRequest();
request.open('GET', '/?section_id=[static-section-name]', false);
request.send();
$('.content-test').html(request.responseText);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment