Sha256: 31c71eb817543a8ff52124d503964429be69d43a181331a15ea962d5504d1e0e

Contents?: true

Size: 1.05 KB

Versions: 4

Compression:

Stored size: 1.05 KB

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]}",
          altVersionTemplate: {
            'en': '4 interest-free payments of %%price%% with %%logo%% %%info%%',
            'fr': '4 paiements de %%price%% sans intĂ©rĂȘts avec %%logo%% %%info%%'
          }
        }
      ]
    }
  %script{ src: "https://widget.sezzle.com/v1/javascript/price-widget?uuid=#{Workarea.config.sezzle_merchant_id}" }

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
workarea-sezzle-1.0.3 app/views/workarea/storefront/sezzle/_script.html.haml
workarea-sezzle-1.0.2 app/views/workarea/storefront/sezzle/_script.html.haml
workarea-sezzle-1.0.1 app/views/workarea/storefront/sezzle/_script.html.haml
workarea-sezzle-1.0.0 app/views/workarea/storefront/sezzle/_script.html.haml