Shopify-code-snippets icon indicating copy to clipboard operation
Shopify-code-snippets copied to clipboard

Shopify code examples and tips

Results 8 Shopify-code-snippets issues
Sort by recently updated
recently updated
newest added

```liquid {%- comment -%} {%- render 'date_translator', date: date, format: format -%} {%- endcomment -%} {% liquid assign datesSupported = 'en,no,fr,es,de' | split:',' assign dateFormat = format | default: '%A...

I’m using “Get Shopify cart data with JSONP“. Since a couple of days ago the request returns empty carts. Anyone else experiencing the same? I make sure the Shopify store...

Using the [starts-with example](https://github.com/freakdesign/Shopify-code-snippets/blob/master/Starts%20with%20string%20check%20in%20Shopify%20Liquid/starts-with-example.liquid), I tried to detect if the current page URL matches a certain page: ```liquid {% assign stringToCheck = page.url %} {% assign startsWith = '/about/' %}...

Hi, I am having hard time using this snippet on my shopify store. I copied the code and added hmac but it's not working. It's not even sending the request....

To note, the example doesn't work: `https://jasons-experiments.myshopify.com/search?type=product&q=sku:23200&view=sku` This does though: `https://jasons-experiments.myshopify.com/search?type=product&q=23200&view=sku`

Is there any official documentation on these JSONP endpoints? In Shopify forums someone even claims that "the Shopify API doesn't support JSONP requests" – https://ecommerce.shopify.com/c/shopify-apis-and-technology/t/front-end-api-call-cors-issue-413232.

Hi, you have gone so far with this and that is awesome. It would be helpful if you gave users a full solution by simply showing which folder they should...