Sha256: e945b949cfd4e7ca0f44ed740a4fdac97f207dba450a9647d9563326f7dfcee1

Contents?: true

Size: 901 Bytes

Versions: 3

Compression:

Stored size: 901 Bytes

Contents

- if Workarea.config.sezzle_merchant_id.present?
  :javascript
    document.sezzleConfig = {
      configGroups: [
        {
          targetXPath: "#{Workarea.config.sezzle.product_config[:target_xpath]}",
          renderToPath: "#{Workarea.config.sezzle.product_config[:render_to_path]}",
          urlMatch: "#{Workarea.config.sezzle.product_config[:url_match]}",
          splitPriceElementsOn: "#{Workarea.config.sezzle.product_config[:split_price_elements_on]}"
        },
        {
          targetXPath: "#{Workarea.config.sezzle.cart_config[:target_xpath]}",
          renderToPath: "#{Workarea.config.sezzle.cart_config[:render_to_path]}",
          urlMatch: "#{Workarea.config.sezzle.cart_config[:url_match]}"
        }
      ],
      language: "#{sezzle_language}"
    }
  %script{ src: "https://widget.sezzle.com/v1/javascript/price-widget?uuid=#{Workarea.config.sezzle_merchant_id}" }

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
workarea-sezzle-1.0.6 app/views/workarea/storefront/sezzle/_script.html.haml
workarea-sezzle-1.0.5 app/views/workarea/storefront/sezzle/_script.html.haml
workarea-sezzle-1.0.4 app/views/workarea/storefront/sezzle/_script.html.haml