How can I effectively edit a discount type in an application?

Solved

How can I effectively edit a discount type in an application?

Hirano_00
Shopify Partner
86 10 13

I have implemented the edit function in the discount creation application created in the tutorial. I get the following error after submitting the form

---

There were some issues with your form submission:

codeAppDiscount.functionId Not allowed to update the code app discount

---

 

Do I need to add any code to the extensions/volume folder that I added in step 4 of the tutorial?
https://shopify.dev/apps/discounts/create

 
 
Accepted Solution (1)

Hirano_00
Shopify Partner
86 10 13

This is an accepted solution.

I was able to update the discount by removing the `functionId` parameter from the discountCodeAppUpdate mutation argument! Thank you.

 

View solution in original post

Replies 6 (6)

geongeorge
Shopify Partner
11 0 2

It's hard to debug without more information. But do checkout the full documentation for discount create on shopify dev: https://shopify.dev/apps/discounts/create

Hirano_00
Shopify Partner
86 10 13

Thanks for your reply. 

I checked the shopify dev documentation. However, no cause was found.

Here is my code attached.If you could give me some advice I would be very pleased. 

https://github.com/maneko00/discount

 

Hirano_00
Shopify Partner
86 10 13

The tutorial was updated and I tried to rewrite it in node, but could not edit it.

https://github.com/maneko00/discount-node-test

Hirano_00
Shopify Partner
86 10 13

This is an accepted solution.

I was able to update the discount by removing the `functionId` parameter from the discountCodeAppUpdate mutation argument! Thank you.

 
Oluuwasegunayo
Tourist
15 0 0
okay I see that, but we need to add more functionality
Hirano_00
Shopify Partner
86 10 13

What features do I need to add?