Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Remix template version for Delivery Customizations sample app #584

Merged
merged 1 commit into from
Jan 2, 2025

Conversation

Shaffan
Copy link
Contributor

@Shaffan Shaffan commented Dec 20, 2024

An ATC request has been raised here noting that this tutorial is broken.

After some investigation I found that the remix version for the sample app is out of date, and some of the packages have moved.

This PR updates the Delivery Customizations sample app to use the latest version of the Remix app template.

Tophatting

Prereqs

  1. Pull down and create the app
shopify app init --template https://github.com/Shopify/function-examples/sample-apps/delivery-customizations#sgh/remix-upgrade-0
  1. Install it on your dev store

  2. Follow this tutorial

image

image

Function output

{
  "shopId": 86773891400,
  "apiClientId":[REDACTED],
  "payload": {
    "export": "run",
    "input": {
      "cart": {
        "deliveryGroups": [
          {
            "deliveryAddress": {
              "provinceCode": "ENG"
            },
            "deliveryOptions": [
              {
                "handle": "fff7e5718080425ce72fda0527650c0b-2fd78ab8a59006eb905798e3a0c5862b",
                "title": "Standard"
              }
            ]
          }
        ]
      },
      "deliveryCustomization": {
        "metafield": null
      }
    },
    "inputBytes": 233,
    "output": {
      "operations": []
    },
    "outputBytes": 17,
    "logs": [],
    "functionId": "16dc09d2-9572-47fe-8215-946d276851a8",
    "fuelConsumed": 363082
  },
  "logType": "function_run",
  "status": "success",
  "source": "delivery-customization-js",
  "sourceNamespace": "extensions",
  "logTimestamp": "2024-12-20T16:40:58.769314Z",
  "localTime": "2024-12-20 16:40:58",
  "storeName": "stefanhorne.myshopify.com"
}
  • I have tophatted this change

@Shaffan Shaffan changed the title Update Remix version for Delivery Customizations sample app Update Remix template version for Delivery Customizations sample app Dec 23, 2024
@Shaffan Shaffan merged commit 64663df into main Jan 2, 2025
4 checks passed
@Shaffan Shaffan deleted the sgh/remix-upgrade-0 branch January 2, 2025 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants