Skip to main content

Shopify Admin Links

JIRA: https://powrtrak.atlassian.net/browse/PM-7328

Juwan Bepo last updated on September 4, 2019

alt_text

POWr deep links in the Shopify “More Actions” menu

Summary:

With Shopify’s admin links, once a user has a POWr plugin installed to their Shopify store, the plugin will now appear as an option in the “More Actions” menu. This will allow users to add a POWr plugin directly to a Shopify product, page, or blog article.

Generate an admin link for each POWr plugin in Shopify Local dev

Scenario: Admin links should be enabled for all products, pages, and blog articles in a user’s Shopify store

Given a Shopify user has a product in their Shopify store,

When the user clicks the More Actions button,

Then a link to users/me should appear in the list with the text, “Add POWr [Plugin Name] to this Product” for Shopify products

For Shopify pages: “Add POWr [Plugin Name] to this Page”

For Shopify blog posts: “Add POWr [Plugin Name] to this Blog Article”

Scenario: A banner should appear on users/me

Given a Shopify user clicks on a POWr admin link on the More Actions menu,

When the user is redirected to users/me,

Then a banner should appear above “My Plugin” with the text, “Select a [Plugin Name] below or create a new one for your Shopify store”

Scenario: Filter plugins displayed on users/me based on the admin link selected

Given a Shopify user clicks on a POWr admin link for a specific plugin,

When the user is redirected to users/me,

Then users/me should only display all instances of that specific plugin in the user’s POWr account

(i.e. if a user selects the “Add POWr Countdown Timer to this Page” admin link, then users/me should only display Countdown Timers)

Scenario: Step 1 of Auto-Install should auto-populate with the specific Shopify product, page, or blog article

Given a Shopify user clicks on a POWr admin link on a specific product page,

When the user is redirected to users/me,

And goes to the installation page for the POWr plugin,

Then step 1, “Search your pages,” should auto-populate with the specific product, page, or blog article

(i.e. if a user selects an admin link on the Shopify product page, “Golden Sundress,” then the “Search your pages” install step should auto-populate with the product, “Golden Sundress”)

Scenario: users/me “Create New Plugin” button changes depending on admin link

Given a Shopify user clicks on a POWr admin link on the More Actions menu,

When the user is redirected to users/me,

Then the “Create New Plugin” button should display the text “Create New [Plugin Name]” based on the admin link selected,

And clicking on the button should redirect the user to /standalone

TODO AFTER WE PUSH TO PRODUCTION:

Scenario: Admin link should be generated for each POWr plugin installed on Shopify

Given a Shopify user installs a POWr plugin on their store,

When the user clicks the “More Actions” button,

Then a link to users/me should appear in the list with the text, “Add POWr [Plugin Name] to this...”