Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

cannot add checkout rule to store

cannot add checkout rule to store

Dardan1
Shopify Partner
9 0 4

Hi,

 

I have been creating a shopify function for the cart checkout validation and it was working fine I added it to my store and had it working. I then deleted it to check something and then tried to add the rule once again. After trying to add it I cannot seem to add the rule to any store I create even though it does appear on the add rules section.

 

I am not quite sure why this is happening as it was working before. just for a bit of more context the only thing I tried doing was to change the name in `shopify.function.extension.toml` to change the name of the function to make it clearer for users. I have changed it back since.

 

Thanks

 

 

Replies 2 (2)

lizk
Shopify Staff
246 58 79

Hi there 👋

This is definitely unexpected behaviour. And we should show an error if the rule is not added successfully. I am not able to reproduce by changing the name of the function in the toml file.

Are there perhaps any other changes you made while testing your function?

Are you seeing any errors in your dev console? What is the response from the validationCreate network request?

To learn more visit the Shopify Help Center or the Community Blog.

Dardan1
Shopify Partner
9 0 4

Hi,

 

Thanks for getting back to me.

 

There were no other changes made except to the main.rs, test.rs, input.graphql and cargo.toml.

Good thing is that it is not working for some reason. not sure why. at the time I did check the dev console and there was no errors in console or network requests so was not sure what was happening. I have seen this happen to other people also so I still think there is some sort of problem with this.

 

Thanks