Gift message box error

Gift message box error

bea-2608
New Member
4 0 0

Hi all,

I have an error message displaying on the gift message box that I added on the cart page for customers who want to send a message card with their gift.

The error message says: "You can only add this item in increments of undefined" - screenshot below.

Capture d’écran 2024-08-27 à 14.32.27.png

 

I have added it using Shopify step by step gift wrap option at checkout.

I am using Dawn theme.

 

Can you please help me with this?

Thank you

Replies 3 (3)
bea-2608
New Member
4 0 0

hI @Fakokundefathia 

Thank you for your answer. I am not familiar with code I just followed the Shopify step by step guide.

Do you know how can I fix it please?

Thank you

Dvhez
Visitor
2 0 0

Hi, did you find a solution?

Sonya_2025
Shopify Partner
341 37 60

If you have met this issue. you just need do a minor change to fix this.

1. Open your theme code editor

2. Find the file assets/cart.js

3. Replace onChange function using below code

 

  onChange(event) {
     // console.log('event.target.type', event.target.type);
    if(event.target.type == 'number')
    {
      this.validateQuantity(event);
    }
    
  }

 

 

Sonya_2025_2-1741671398550.png

 

Hope this helps!

 

 

 

Please let me know if it works by giving it a Like or marking it as a solution!
Feel free to reach out.Get Shopify free trial 1$/mon
 EMAIL ME  Motivate me by  PAY ME