Skip to content

Instantly share code, notes, and snippets.

@Harasz
Created Sep 1, 2021
Embed
What would you like to do?
const productIdStruct = JSON.parse(ctx.request.body).productId.split("/");
const productId = productIdStruct[productIdStruct.length - 1];
ACTIVE_SHOPIFY_SHOPS[shop].settings = { productId };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment