These are chat archives for reactioncommerce/reaction

19th
Oct 2015
VansonLeung
@VansonLeung
Oct 19 2015 05:31
oops, I don't know how to login as Admin......
Anne van Rossum
@mrquincle
Oct 19 2015 12:11
I saw on http://blog.reactioncommerce.com/reaction-beta-release-v0-9-0-is-now-available/ that you now recommend to start using reactioncommerce. Great! I've been playing around with the admin account. Are there different front-ends? How are the themes organized? I think I should have found that myself somewhere... :-)
Anne van Rossum
@mrquincle
Oct 19 2015 12:17
One thing that doesn't seem to happen is that it sticks with euros
Where can I add another payment provider?
Anne van Rossum
@mrquincle
Oct 19 2015 12:35
Exception while invoking method 'shop/getLocale' TypeError: Cannot read property 'data' of undefined at server/methods/shop.js:111:54
export PACKAGES_DIR="~/.reaction/packages" (notice the dot) && ./bin/clone-packages.sh installs the packages anyway in ~/reaction/packages, naughty!
Stefan Smiljkovic
@shtefcs
Oct 19 2015 12:59
Hi guys
is Reaction production ready ?
Anne van Rossum
@mrquincle
Oct 19 2015 13:02
@shtefcs I don't think they are there...
Stefan Smiljkovic
@shtefcs
Oct 19 2015 13:24
@mrquincle tnx for replay
Anne van Rossum
@mrquincle
Oct 19 2015 14:05
Enabling/disabling modules in settings/reaction.json does not actually propagate
I20151019-16:01:47.603(2)? 14:01:47.603Z INFO core: loaded local package data: core
I20151019-16:01:47.649(2)? 14:01:47.649Z INFO core: loaded local package data: reaction-paypal
I20151019-16:01:47.650(2)? 14:01:47.649Z INFO core: loaded local package data: reaction-google-analytics
I20151019-16:01:47.650(2)? 14:01:47.650Z INFO core: loaded local package data: reaction-mollie
I20151019-16:01:47.685(2)? 14:01:47.685Z INFO core: loaded local package data: reaction-stripe
I20151019-16:01:47.728(2)? 14:01:47.728Z INFO core: loaded local package data: reaction-social
The module reaction-mollie I added
Aaron Judd
@aaronjudd
Oct 19 2015 14:08
@mrquincle meteor add <package> or meteor remove <package> is still appropriate to add/remove packages. The admin dashboard only decides if it’s “enabled” or “disabled” from the UI visibility/usage. “enabled: true” in reaction.json should just automatically set the visibility to enabled
Anne van Rossum
@mrquincle
Oct 19 2015 14:08
And if I disable reaction-paypal it should not be visible anymore?
Aaron Judd
@aaronjudd
Oct 19 2015 14:09
in the checkout, it will not be available as an option.
Anne van Rossum
@mrquincle
Oct 19 2015 14:10
Okay, so it is still visible in the admin panel
Aaron Judd
@aaronjudd
Oct 19 2015 14:10
yes, exactly
because meteor pre-compiles during development, or during build. The idea is that we’d be able to build with some packages added,removed during deployment, and with reaction.json to pre-configured them as needed.
Anne van Rossum
@mrquincle
Oct 19 2015 14:12
Okay, then I'll probably doing something wrong in my own package. I've made a copy of reaction-stripe to create reaction-mollie to support that provider. Probably it doesn't show up because I haven't updated the html.
Aaron Judd
@aaronjudd
Oct 19 2015 14:13
on thing, you’ll probably need to do a bin reset/ or clear the packages collection so that it reloads the full package entry - in fixtures.js, only the “settings” are updated on meteor restart - so the rest of the structure needs a complete refresh
Anne van Rossum
@mrquincle
Oct 19 2015 14:17
Aha! That worked
Aaron Judd
@aaronjudd
Oct 19 2015 14:17
re: ‘bin/clone-packages’ - that’s just defaulting to using PACKAGE_DIRS, or it will define the location if that ENV is not set - it was meant for use in the CI test builds, but has become a more useful tool just for setting up the local package, and could probably be updated to be a little less, well, brute forced
Anne van Rossum
@mrquincle
Oct 19 2015 14:22
PACKAGES_DIR rather than PACKAGE_DIRS
Missed that :smile:
Aaron Judd
@aaronjudd
Oct 19 2015 14:24

@mrquincle you’re not the first to question that packages refresh - need to add a nice highlighted explanation of that in the docs ( or update the fixtures.js to be more clever in determining what to do there)

export PACKAGE_DIRS="/Users/path/to/your/packages” - good catch, updating doc now

Anne van Rossum
@mrquincle
Oct 19 2015 14:28
Do you have some sites that use reactioncommerce that you're proud of?
Aaron Judd
@aaronjudd
Oct 19 2015 14:33
no, that’s part of the “beta” program, we’re putting together - we’ll be helping some "showcase" shops get off the ground, so that we can start showing live examples. There might be some out there in the wild, but we haven’t tracked in any way. Re: production ready -> in the blog post, maybe not the most accurate description - that’s really targeted towards the ‘developer’ in the sense that we’re not going to be changing the structure, architecture in any major way - so it’s now a stable base to build on. (the alpha was about gathering requirements and general testing).
we are working with a few shops now, and our goal is to have some “showcase” shops that feature some fairly different use cases, i.e.: a large shop with many products, or a shop with rental products, or a shop with COD checkout, for example.
Aaron Judd
@aaronjudd
Oct 19 2015 14:57
@mrquincle updated those docs :smile:
@mrquincle to define “readi-ness” as well - I think that will mostly depend on each shops requirements. We’re trying to ensure stability and testing, and a code base that is hopefully - easy to work with. (all feedback is good!)
Anne van Rossum
@mrquincle
Oct 19 2015 15:13
Aaron Judd
@aaronjudd
Oct 19 2015 15:19
oh very cool! looks like it could be a good fit
Aaron Judd
@aaronjudd
Oct 19 2015 15:28
@VansonLeung the admin user info will be in the console on a fresh install. If you don’t see it, do a meteor reset
Aleksei Mironov
@alexmironof
Oct 19 2015 15:31
@aaronjudd I've been able to run clone-packages.sh on Windows :smile:
with Git-bash, just only with a little configuration: alias meteor="cmd //c meteor"
I think other scripts would work without problems :+1:
danielortiz
@danielortiz
Oct 19 2015 15:32
hey @aaronjudd
Aaron Judd
@aaronjudd
Oct 19 2015 15:32
@kefirchik oh nice, should we try and include that in the script (maybe we can check for the environment) - or just add to the docs?
danielortiz
@danielortiz
Oct 19 2015 15:33
you told me to check reaction-paypal as an example of what I wanted to do, but I didn't see anything like that there
am I missing something?
Aaron Judd
@aaronjudd
Oct 19 2015 15:34
@danielortiz : line 1/2 of that file are extending a core schema and adding fields specific to the paypal settings
danielortiz
@danielortiz
Oct 19 2015 15:34
oh, got it
thanks
Spencer Norman
@spencern
Oct 19 2015 15:35
Aaron Judd
@aaronjudd
Oct 19 2015 15:35
so you can do the same thing, i.e.:
ReactionCore.Schemas.YourPackagePackageConfig = new SimpleSchema([
  ReactionCore.Schemas.PackageConfig, {
    "settings.express_enabled": {
      type: Boolean,
      defaultValue: true
    },
Aleksei Mironov
@alexmironof
Oct 19 2015 15:35
@aaronjudd I think it should be documented... I found an answer here how-to-use-gitbash-instead-of-windows-cmd-exe
Aaron Judd
@aaronjudd
Oct 19 2015 15:36
@kefirchik if you want to PR an update to the docs, that’d be awesome - I’d probably only get it 1/2 right.. (I don’t have any windows machines with me right now to test anything)
danielortiz
@danielortiz
Oct 19 2015 15:36
thanks
Aleksei Mironov
@alexmironof
Oct 19 2015 15:37
@aaronjudd ok, but I have to test it a bit more... it has strange behavior with different installation types of Git
Aaron Judd
@aaronjudd
Oct 19 2015 15:37
I’ve just spent 45 minutes getting Windows Live Meeting 2007 working on a friends mac, I’m over my windows support quota for the day already! lol
danielortiz
@danielortiz
Oct 19 2015 15:38
I found 2 schemas, one named "Product", and another one named "Products", which one should I extend if I want to save different properties to all products?
like, I want to save the weight of each product
Aaron Judd
@aaronjudd
Oct 19 2015 15:43
You probably want to extend ReactionCore.Schemas.ProductVariant so you have it for each variant, but if not, you’ll want ‘Product’ (as that’s an individual product). However, I do think the ReactionCore.Schemas.ShippingParcel should fit your needs (or if not, let’s figure out what’s missing and we can you can PR an update to core, as we want that to be universal as possible).
There is also always the option of using MetaData which is for key/value data
danielortiz
@danielortiz
Oct 19 2015 15:44
ShippingParcel does fit my needs, but I spent to much time trying to do that to leave without knowing how to =P
Aaron Judd
@aaronjudd
Oct 19 2015 15:44
lol
danielortiz
@danielortiz
Oct 19 2015 15:44
hahahahaha
Aaron Judd
@aaronjudd
Oct 19 2015 15:45
understand! the order was intended to be variants->product->products
ShippingParcel is what we’re going to use, so that’s the best option -> after you have got it all figured out ;-)
danielortiz
@danielortiz
Oct 19 2015 15:47
ahahahah, thanks
Aleksei Mironov
@alexmironof
Oct 19 2015 15:48

@shtefcs I think the answer is that reaction is almost there :smile:

by the way there is Cash on Delivery package by @Gouthamve and it works perfectly!

danielortiz
@danielortiz
Oct 19 2015 15:50

I've made this

ReactionCore.Schemas.CorreiosProduct = new SimpleSchema([
  ReactionCore.Schemas.ProductVariant, {
    "correiosInfo": {
       type: [ReactionCore.Schemas.correiosPackInfo]
     }
  }
]);
ReactionCore.Collections.Products.attachSchema(ReactionCore.Schemas.CorreiosProduct);

Shouldn't it appear here then?

blob
Spencer Norman
@spencern
Oct 19 2015 15:51
Not until you insert something into it.
danielortiz
@danielortiz
Oct 19 2015 15:51
even if I have default values?
Spencer Norman
@spencern
Oct 19 2015 15:52
oh, not sure.
were the defaults there when the product was created?
danielortiz
@danielortiz
Oct 19 2015 15:52
let me try to create a new product
yes, it was, and it didn't work
let me try something else
got it, the optional value was in the "correiosPackInfo", not directly on the schema being attached.
Aleksei Mironov
@alexmironof
Oct 19 2015 16:43
@aaronjudd Is it possible to make all script files with .sh extension?
Git for Windows has option to associate .sh files and make them executable and its the only way that I've found thats works perfect
Delremm
@Delremm
Oct 19 2015 17:01
Hello. Is there a way to easy remove country field from checkout process(or set some default country)? or i should rewrite collection schema and templates?
Aaron Judd
@aaronjudd
Oct 19 2015 17:04
@kefirchik I think that's probably ok
Aleksei Mironov
@alexmironof
Oct 19 2015 17:34
@aaronjudd I'll try to test on more win machines tomorrow and post results :smile: