Unable to activate Cart Transform Function #256
Replies: 4 comments 3 replies
-
I am having the same problem as well. The sample app works just fine but when I try to rebuild the function on my own, it isn't working and giving me a ton of errors when I attempt to deploy said extension. Did you try to do npm run deploy to make this extension live with your app? |
Beta Was this translation helpful? Give feedback.
-
I've figured it out! You need to run the following mutation to register the extension: mutation cartTransformCreate($functionId: String!) {
cartTransformCreate(functionId: $functionId) {
cartTransform {
functionId
id
}
userErrors {
field
message
}
}
} |
Beta Was this translation helpful? Give feedback.
-
@BrandoCommando can you share your wasm? I can’t get my app to even compile after doing the standard extensions from Shopify… |
Beta Was this translation helpful? Give feedback.
-
Hi! For others reading this issue, please look at the customized Bundles guide. We added a section that describes how to register the function in a shop. |
Beta Was this translation helpful? Give feedback.
-
Hello there! Is there something special that needs to be done to activate Cart Transformation functions? I've tried the stock/template Bundling function based on Rust, and I've tried my own version (with JS compiled into Wasm), but I cannot see any evidence that the function is even being run!
I brought this question up on the recent Checkout Extension Q&A sessions, but the only answer I got was that "Bundling is not available to the general public yet"! I am quite aware of the fact that a Partner account is necessary, and development requires a partner development store. I have met those requirements.
I ask if there's something special that must be done because Cart/Checkout validation functions need to be whitelisted, but I haven't found anywhere in the store admin section to whitelist/activate my cart transformation functions. Then, when I check the extension "runs", it is always empty, no matter what I do in the store checkout. All the other function types I have been able to get to work, but the bundling function still eludes me.
Please advise, and thanks for your time.
Beta Was this translation helpful? Give feedback.
All reactions