Checkbox on a Cart page and if checked - tag order "Hold"

Hi Shopify wizards!

I want to add a checkbox below the “Continue to Checkout” button on a cart page and if checked I want to add a tag OR Additional details to that order.

I was able to set up the checkbox but it doesn’t pass any info to the order details. I made a test purchase and the theme is Drafted (could that be why?)

I used the following code:


            
            
            
          

Please help me to add the following, if checked I want to add an order tag: hold_order. If that’s not possible, I will be okay with adding a note to the Additional Details section.

Theme: Dawn 6.02

URL: https://8qtq9l14284ns9b8-7708685.shopifypreview.com

Thank you!

Hello @dmitry_z ,

You have to use JS to check the status of the checkbox on click.
And than if you find if status is true add value to additional details section.

Thanks

1 Like

Hey @Guleria , that seems logical. Unfortunately, I have very little JS knowledge. Would you mind sharing how would you do it?