On the bindings panel, you find dynamic data bindings that can be used to populate the variables in this scrtipt.
there will be a section in the binding panel for your cart, This is where you can get bindings for product name, price, cart price among others, use those bindings in the script.