Class: Workarea::Storefront::CartRecommendationsViewModel
Instance Method Summary
collapse
#popular_product_ids, #products
Instance Method Details
#product_ids ⇒ Object
4
5
6
|
# File 'app/view_models/workarea/storefront/cart_recommendations_view_model.rb', line 4
def product_ids
Recommendation::OrderBased.new(model).results
end
|
#result_count ⇒ Object
8
9
10
|
# File 'app/view_models/workarea/storefront/cart_recommendations_view_model.rb', line 8
def result_count
Workarea.config.cart_recommendations_count
end
|