spree_static_content
spree_static_content copied to clipboard
Promotion Landing Pages
Perhaps Spree::StaticContentController
could fire the Spree::PromotionHandler::Page#activate
, in a similar way as Spree::ContentController
,this way static content pages could work as promotion landing pages.
class Spree::StaticContentController < Spree::StoreController
after_action :fire_visited_path, only: :show
def fire_visited_path
Spree::PromotionHandler::Page.new(current_order, params[:path]).activate
end
end
Or maybe this behaviour should be added using a decorator?