Shopify/function-examples

Unable to get Bundle Starter App working.

Closed this issue · 1 comments

Hello, I've gone through the tutorial here many times and cannot seem to get this basic example working in dev mode as expected. I've defined the metafields, copy and pasted their names and made sure not to update the keys as referenced in the screenshots below:

image
image
image
image

Furthermore, I've also made sure to create the bundle parent product and then tie the associated bundle items via metafields to the bundle as referenced here:

image
image

Here is the component parents json obj btw:

[{
	"id": "gid://shopify/ProductVariant/44640619135279",
	"component_reference": {
		"value": ["gid://shopify/ProductVariant/44640893632815"]
	},
	"component_quantities": {
		"value": [1]
	},
	"price_adjustment": {
		"value": 1
	}
}]

I've also ensure to have the app and extension published. But even while running: "npm run dev" or "pnpm dev" the items at the checkout phase do not bundle. Is there perhaps a step that I am missing? Thank you for looking into this :) !

image

Hello @devinatbryt. Thank you for reaching out. We've been making a lot changes and improvements to the cart_transform function and appreciate all the feedback during this dev preview window.

Looking over your screenshots, it looks like all of the metafields are defined correctly, and I don't see anything wrong with your configuration. I have a couple questions to help narrow down where the problem may be occurring.

  1. Is the app installed on your store with all of the requirements satisfied?
  2. After installing the app, can you confirm that the app is registered to the shop? The sample app should handle that automatically. If you check your application's logs, you should see if that request was successful.
  3. If you are still running into issues, could you please try to install our bundles reference app and see if that works on your shop? This reference app is essentially the exact same code as the sample app, but it's hosted by Shopify during the dev preview window of Bundles. If the reference app works on your store and the sample app doesn't then we can narrow down the problem a bit.

Thanks again for reaching out.