Quantcast
Channel: Opinion: Shopify Community - Shopify APIs & SDKs
Viewing all articles
Browse latest Browse all 25503

Walther Diechmann commented on how do I get past the localhost:3000/login step when building an app

$
0
0

Probably not <:)

My example work-flow is:

  1. user logs into customer.tld/login (Devise handles this)
  2. user views products at customer.tld/products
  3. user makes a price mark-up on products of category A with a POST to customer.tld/products/markup?category=A&markup=2.5
  4. Product.where(category: params[:category]).each{ |p| p.markup(params[:markup] }

Where in this flow would I configure my Shopify::Session - application_controller.rb, product.rb, config/initializers/shopify.rb?

Second example:

In a background job running every morning at 5 minutes to 8 - Order.pickup_new_shopify_orders will 'run' and eventually process new orders, build picklists for handlers in the warehouse and prepare a list of links for case officers in sales to click on - eventually allowing them to mark delivered orders as shipped once picklists starts pouring in from the warehouse handlers after packaging and sign off to carrier is completed.

Will my Order.pickup_new_shopify_orders have its own Session setup - in order.rb?

Sorry to be such a pain the a.. <:(


Viewing all articles
Browse latest Browse all 25503

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>