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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
<h1>{{ section.settings.header }}</h1> | |
{%- assign count = section.settings.reviews_count | escape -%} | |
<ul> | |
{% for i in (1..count) %} | |
<li>Review number {{ forloop.index }}</li> | |
{% endfor %} | |
</ul> | |
{% schema %} |
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
mutation { | |
appSubscriptionCreate( | |
name: "Product Photos PRO" | |
returnUrl: "https://www.shopify.com" | |
lineItems: [ | |
{ | |
plan: { | |
appRecurringPricingDetails: { | |
price: { amount: 10.00, currencyCode: USD } | |
interval: ANNUAL |
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
{ | |
"data": { | |
"order": { | |
"id": "gid://shopify/Order/1", | |
"localizationExtensions": { | |
"edges": [ | |
{ | |
"node": { | |
"countryCode": "BR", | |
"purpose": "TAX", |
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
{ | |
"data": null, | |
"errors": [ | |
{ | |
"message": "access denied", | |
"locations": [ | |
{ | |
"line": 2, | |
"column": 3 | |
} |
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
{ | |
"data": null, | |
"errors": [ | |
{ | |
"message": "Access denied for products field.", | |
"locations": [ | |
{ | |
"line": 2, | |
"column": 3 | |
} |
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
mutation { | |
discountCodeBulkDelete( | |
ids: [ | |
"gid://shopify/DiscountCodeNode/417076609046" | |
"gid://shopify/DiscountCodeNode/417076123144" | |
"gid://shopify/DiscountCodeNode/417076632452" | |
"gid://shopify/DiscountCodeNode/417074353452" | |
"gid://shopify/DiscountCodeNode/417012837128" | |
"gid://shopify/DiscountCodeNode/417712637123" | |
"gid://shopify/DiscountCodeNode/412361823821" |
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
mutation addDiscount { | |
orderEditAddLineItemDiscount( | |
id: "gid://shopify/CalculatedOrder/5678" | |
lineItemId: "gid://shopify/CalculatedLineItem/121314" | |
discount: { percentValue: 20, description: "Upsell" } | |
) { | |
calculatedOrder { | |
id | |
addedLineItems(first: 5) { | |
edges { |
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
{ | |
shop { | |
shopPolicies { | |
body | |
type | |
} | |
} | |
} |
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
{ | |
products(first: 2, query: "status:draft") { | |
edges { | |
node { | |
id | |
title | |
status | |
} | |
} | |
} |
OlderNewer