Skip to content

Instantly share code, notes, and snippets.

@gmacdougall
Created September 25, 2015 13:14
Show Gist options
  • Save gmacdougall/ecf6ce057690a17d9639 to your computer and use it in GitHub Desktop.
Save gmacdougall/ecf6ce057690a17d9639 to your computer and use it in GitHub Desktop.
2015-09-25 08:38:01 --> gem (65bb8d45@gateway/web/freenode/ip.101.187.141.69) has joined #solidus.io
2015-09-25 08:38:47 gem Hi Solidus dudes, few questions from a merchant if you don't mind...
2015-09-25 08:44:36 gmacdougall gem: go for it
2015-09-25 08:46:49 gem Thank you! Ok, Multi-Store...we currently have setup easypost for our shipping labels etc, but this would only be for AU and need to setup a 3PL (like Shipwire) for USA store...is this as simple as setting up different shipping methods? As I don't see option to pick 'zones' in the store & domains options
2015-09-25 08:48:18 gmacdougall do you want to sell this through a different domain?
2015-09-25 08:48:36 gmacdougall exampe: store.com vs. store.com.au?
2015-09-25 08:50:16 gem hmmm...I am not sure what is best practice..a different domain or subdomain i.e. store.com and store.com/au or au.store.com
2015-09-25 08:50:38 gem that might be a question for the marketing/seo experts
2015-09-25 08:50:53 gmacdougall are they going to be selling the same set of products?
2015-09-25 08:51:13 gem yes
2015-09-25 08:51:33 gmacdougall I assume that your products will be sold in both AUD and USD
2015-09-25 08:51:42 gem yes
2015-09-25 08:51:56 gmacdougall so, you have a few different solutions for this
2015-09-25 08:52:06 gmacdougall the first thing is that you'll need to set up multiple stock locations
2015-09-25 08:52:32 gmacdougall you already have one for your current place, but you'll need a second stock location for your USA store
2015-09-25 08:52:51 gem understood
2015-09-25 08:53:20 gmacdougall the next major thing you'll want is to get and understanding of the code here: https://github.com/solidusio/solidus/tree/master/core/app/models/spree/stock
2015-09-25 08:54:05 gmacdougall Solidus will build packages for a set of inventory units coming from a specific stock location
2015-09-25 08:54:19 gmacdougall for example, if I am in Melbourne
2015-09-25 08:54:28 gmacdougall assuming that inventory exists in both locations
2015-09-25 08:54:51 gmacdougall there will be one proposed package to be shipped from your current warehouse, and a second proposed package to build shipped from the US warehouse
2015-09-25 08:55:06 gmacdougall obviously in this scenario it makes sense to use the one coming from Australia
2015-09-25 08:55:38 gmacdougall the coordinator is responsible for that logic: https://github.com/solidusio/solidus/blob/master/core/app/models/spree/stock/coordinator.rb
2015-09-25 08:56:00 gmacdougall it builds the packages, prioritizes them (which one we should use) and then gives estimates on shipping cost
2015-09-25 08:56:17 gmacdougall your major considerations are going to be the following:
2015-09-25 08:56:41 gmacdougall 1. What happens when someone from Australia buys something that is out of stock in the AU warehouse, but in stock in the US warehouse (or vice-versa)
2015-09-25 08:58:31 gmacdougall 2. There is currently no good method of restricting shipping method by stock location
2015-09-25 08:58:49 gmacdougall there is an issue for us to add it: https://github.com/solidusio/solidus/issues/391
2015-09-25 08:58:55 gmacdougall but that's functionality that doesn't exist
2015-09-25 08:59:00 gem re: 2. I was just going to ask that question
2015-09-25 08:59:15 gmacdougall you may be able to work around it by having USD stuff only have rates in USD, and AUD stuff only have rates in AUD
2015-09-25 08:59:16 gem is there an ETA?
2015-09-25 08:59:22 gmacdougall so you'll force those restrictions
2015-09-25 08:59:29 gem gotcha
2015-09-25 08:59:31 gmacdougall not yet
2015-09-25 08:59:36 gmacdougall that may be good enough for you
2015-09-25 09:00:02 gmacdougall 3. This stock related stuff is not particularly easy to understand, and is one of the areas we have targeted for improvement after our fork from Spree
2015-09-25 09:00:11 gmacdougall but that work is a ways off
2015-09-25 09:01:06 gem no worries, so looks like the developer will have his work cut out for him, but I trust he can handle it
2015-09-25 09:01:50 gmacdougall hopefully that gives you some direction
2015-09-25 09:02:06 gem it does thanks so much!
2015-09-25 09:02:10 gmacdougall you're welcome
2015-09-25 09:02:54 gem 2nd question - Google Tag Manager (GTM), if I am implementing Google Analytics (GA) via GTM, do I just ignore the 'add tracker' or should we be removing that functionality as to not cause any conflicts?
2015-09-25 09:03:25 gmacdougall just don't do any tracker config and that won't be inserted in to the page
2015-09-25 09:03:34 gem Last question - Virtual Gift Card, can this be used by users without an account?
2015-09-25 09:04:26 gmacdougall I don't think so
2015-09-25 09:04:39 gem oh and do they have to use it all at once (if they can use it without an account)
2015-09-25 09:05:04 gmacdougall they need to attach it to an account before they can use it, and then they can use it as they see fit
2015-09-25 09:05:33 gem ok I think we can work around that :)
2015-09-25 09:06:23 gem thanks again for your time! Looking forward to sharing details of our launch come early 2016
2015-09-25 09:06:43 gmacdougall you're welcome, let us know if you have any other questions
2015-09-25 09:06:51 gem will do, cheers
2015-09-25 09:06:51 gmacdougall and shoot us a link when you launch :)
2015-09-25 09:08:02 <-- gem (65bb8d45@gateway/web/freenode/ip.101.187.141.69) has quit (Quit: Page closed)
2015-09-25 09:08:41 --> gem (65bb8d45@gateway/web/freenode/ip.101.187.141.69) has joined #solidus.io
2015-09-25 09:10:21 --> samphippen ([email protected]) has joined #solidus.io
2015-09-25 09:11:22 hightower4 Hey, so I've enabled locale selection by doing: scope "(:locale)", locale: /en|de/ do mount Spree::Core::Engine, :at => '/' end. But the effect of this is that the cart_link is always displayed in the default locale, because that URL is missing any locale (/en/ or /de/) inserted as part of the URL. And the cart_link isn't affected even if I define default_url_options() at the app controller level.
2015-09-25 09:11:41 hightower4 Am I missing a detail, or I took the wrong approach to supporting /lang/ in the URLs altogether?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment