Sha256: 24346f50a097bb8371c7d0229ddd4ec765900aeb0ec27d6582d589a379ce6480

Contents?: true

Size: 469 Bytes

Versions: 3

Compression:

Stored size: 469 Bytes

Contents

module Workarea
  module Storefront
    module ProductQuickviewHelper
      def quickview_button_data(product)
        {
          url: product_path(product, product.browse_link_options),
          analytics_data: product_click_analytics_data(product).to_json
        }
      end

      def product_quickview_analytics_data(product)
        {
          event: 'productQuickview',
          payload: product_analytics_data(product)
        }
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
workarea-product_quickview-2.0.4 app/helpers/workarea/storefront/product_quickview_helper.rb
workarea-product_quickview-2.0.3 app/helpers/workarea/storefront/product_quickview_helper.rb
workarea-product_quickview-2.0.2 app/helpers/workarea/storefront/product_quickview_helper.rb