Skip to content

Instantly share code, notes, and snippets.

@bogdan
Created February 19, 2015 16:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bogdan/e362fae6e1aa6aa442df to your computer and use it in GitHub Desktop.
Save bogdan/e362fae6e1aa6aa442df to your computer and use it in GitHub Desktop.
#signupFlowHeader
- signup_flow_step 1 do
%h3 1. Register Store
- signup_flow_step 2 do
%h3 2. Integrate Curebit
- signup_flow_step 3, 4 do
%h3 3. Setup Campaign
.alert.alert-warning{:class => "step#{current_signup_flow_step}"}
- case current_signup_flow_step
- when 1:
To get started, #{link_to_unless params[:controller]=='sites', "register your online store", new_site_path}.
- if params[:controller]=='sites'
If you want to use a staging server, specify that URL instead.
- when 2:
-if on_an_integration_page?
- if @site.platform_is_shopify?
Almost done with the Shopify integration! Follow a few simple steps to finish integrating.
-else
Next, integrate Talkable into your store by following the integration instructions below.
-else
You have skipped integration for now.
=link_to('Click here', choose_integration_site_path(@site), :id => 'return_to_integration')
to go back and finish integration.
- when 3:
- if current_user.sites.first.integrated?
%span.green
Integration successful!
Now let's setup the campaign. #{link_to("Learn about how it works", site_new_campaign_path(current_user.sites.first))}, #{link_to("create the campaign", site_new_campaign_path(current_user.sites.first))}, then tailor the messaging to your customers.
- when 4:
- site = current_user.sites.first
- campaign = site.campaigns.first
Last optional step: #{link_to_unless(params[:action]=='customize', "Customize each screen of your campaign", site_campaign_view_setup_path(site, campaign, 'offers_show')}. When you're happy with how it looks, #{link_to "ACTIVATE IT", polymorphic_path([site, campaign], action: :toggle_deal_status)}.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment