     # Render the context to elements as needed.
     jQuery('[data-cart-render]').each ()->
       $this = jQuery(this)
-      $this.text context[$this.data('cartRender')]
+      $this.text context[$this.attr('data-cart-render')]

  # Handler for [data-cart-toggle-attribute] change events.
  toggleAttribute: (e) ->
    $input = jQuery(this)
    attribute = $input.data('cartToggleAttribute')
    CartJS.Core.setAttribute(attribute, if $input.is(':checked') then 'Yes' else '')

  # Handle for [data-cart-submit] submit events.

  # Handler for [data-cart-toggle] change events.
  toggle: (e) ->
    $input = jQuery(this)
    id = $input.attr('data-cart-toggle')
    if $input.is(':checked')
      CartJS.Core.addItem(id)
    else
