Adding Note to Order on Cart Page not working

Shopify Partner
29 0 3

Adding the following code to the cart page before navigating to checkout is returning a successful response but not adding the note to the "Order Notes". 

 

        var f4 = {note: $('#notecard').val()}
        form4 = $.param(f4)

        $.post('/cart/update.js', form4)

I am referencing the following documentation,

https://help.shopify.com/en/themes/development/getting-started/using-ajax-api#update-cart

0 Likes