Skip to content
This repository has been archived by the owner on Aug 10, 2021. It is now read-only.

Promotion Landing Pages #173

Open
Janther opened this issue Dec 16, 2014 · 1 comment
Open

Promotion Landing Pages #173

Janther opened this issue Dec 16, 2014 · 1 comment
Labels

Comments

@Janther
Copy link

Janther commented Dec 16, 2014

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
@Janther
Copy link
Author

Janther commented Dec 16, 2014

Or maybe this behaviour should be added using a decorator?

@futhr futhr added the question label Jan 3, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants