These are chat archives for reactioncommerce/reaction

14th
May 2018
William Moss
@willmoss1000
May 14 2018 10:26
Is there an existing method or function to get the users location (I just need the country code). I thought Reaction.Locale.get() was for this purpose, but this just seems to return the locale of the primary shop?
Loan Laux
@loanlaux
May 14 2018 10:28
@willmoss1000 Registered customers or any user at all?
William Moss
@willmoss1000
May 14 2018 10:28
@loanlaux any user at all first?
But you're right, I should check if they are a registered customer first and take their location.
Loan Laux
@loanlaux
May 14 2018 10:29
Because a workaround could be using the country that's in their billing/delivery address
William Moss
@willmoss1000
May 14 2018 10:30
Yes, that's the first thing. However, I'm only serving products to users in countries shipping is set up for (by any merchant).
Loan Laux
@loanlaux
May 14 2018 10:30
I'm not sure about a method that would give you any user's country code though. I'll let the core team answer.
Oh yeah, gotcha. Well I hope there's such a method. Otherwise, sounds like you'll have to rely on a GeoIP API. Old school, but it works! (mostly)
William Moss
@willmoss1000
May 14 2018 10:31
Cheers! @zenweasel / @Akarshit does something like this exist already I could use?
Yeh, I think I might have to! But is currency not already set for new users based on their location - it seems it is based on the shop location?
Loan Laux
@loanlaux
May 14 2018 10:34
My bad, I just checked and it does rely on a GeoIP database already.
At least it seems to. Check out /server/api/geocoder.js and tell me what you think.
William Moss
@willmoss1000
May 14 2018 10:34
I'll have a look, cheers
Ah I haven't put in my google clientId yet..
I have played with the geocoder but wasn't having much luck
Loan Laux
@loanlaux
May 14 2018 10:38
So it looks like you can simply call shop/getLocale and it'll return user's locale, if GeoIP lookup was successful
And it returns the shop's default locale otherwise
At least that's what I understood from reading /server/methods/core/shop.js:264
William Moss
@willmoss1000
May 14 2018 10:38
Yehhhhhh... I tried that but I didn't have my google clientId setup!
Is there a particular way the clientId needs to be setup, or any instructions? Or just create a blank app?
Loan Laux
@loanlaux
May 14 2018 10:39
Oh yeah, my bad, I missed that message
William Moss
@willmoss1000
May 14 2018 10:39
Sorry for the many questions! It's much appreciated
Can't find anything in the docs. I'll just have a go and see if it works
Loan Laux
@loanlaux
May 14 2018 10:40
Screen Shot 2018-05-14 at 12.40.02.png
Setting it up from there should do the trick
William Moss
@willmoss1000
May 14 2018 10:41
Yep, I'm just wondering how to get the info to put in. But I imagine it's the same as for google sign on? No worries, I'm rambling. Help was much appreciated!!!
Loan Laux
@loanlaux
May 14 2018 10:42
Sorry, hadn't understood. You should be able to get a pair of keys from the API Console: https://console.developers.google.com/apis?pli=1
William Moss
@willmoss1000
May 14 2018 10:43
Ahhh you absolute legend.
Loan Laux
@loanlaux
May 14 2018 10:43
Too bad this isn't documented. It should be!
William Moss
@willmoss1000
May 14 2018 10:51
Yep, I'm pretty lost here.
William Moss
@willmoss1000
May 14 2018 11:13
Actually looks like Reaction.locale.get() works as expected. I'll write back here when I have it all figured out. @loanlaux do you know if that google clientId is used for anything else?
i.e. do I need to enable any other google apps for that API code
Loan Laux
@loanlaux
May 14 2018 12:37
It doesn't seem to be used elsewhere but I can't comment for sure
Ishmael Nkosikhona Sibisi
@cyber-claws
May 14 2018 14:04

Hi all, Can someone please help with this.

13:33:56.610Z ERROR Reaction: Can't wait without a fiber
  Error: Can't wait without a fiber
      at Function.wait (C:\Users\ACS\AppData\Local\.meteor\packages\meteor-tool\1.6.1\mt-os.windows.x86_64\dev_bundle\server-lib\node_modules\fibers\future.js:159:9)
      at Future.wait (C:\Users\ACS\AppData\Local\.meteor\packages\meteor-tool\1.6.1\mt-os.windows.x86_64\dev_bundle\server-lib\node_modules\fibers\future.js:448:10)
      at SynchronousCursor._nextObject (packages/mongo/mongo_driver.js:1018:47)
      at SynchronousCursor.forEach (packages/mongo/mongo_driver.js:1052:22)
      at Cursor.(anonymous function) [as forEach] (packages/mongo/mongo_driver.js:876:44)
      at Object.getVariants (imports/plugins/core/revisions/server/hooks.js:151:8)
      at Object.getVariantQuantity (imports/plugins/core/revisions/server/hooks.js:167:26)
      at variants.every.variant (imports/plugins/core/catalog/server/methods/catalog.js:18:22)
      at Array.every (<anonymous>)
      at isSoldOut (imports/plugins/core/catalog/server/methods/catalog.js:16:19)
      at publishProductToCatalog (imports/plugins/core/catalog/server/methods/catalog.js:112:23)
      at <anonymous>
      at process._tickDomainCallback (internal/process/next_tick.js:228:7)

I am trying to envoke the publishProducts() method from the reaction-swag-shop

Loan Laux
@loanlaux
May 14 2018 14:34
Are you running Windows @cyber-claws?
Sorry for the dumb question, of course you are. Should've taken a second to read the paths.
This is a Meteor issue that's been apparently fixed with 1.6.1.1. Just run meteor update --patch && meteor npm install. See #4241 for tracking progress and more info.
Ishmael Nkosikhona Sibisi
@cyber-claws
May 14 2018 14:44
@loanlaux sadly yes I am forced to run windows for now. Thanks for the solution I am running it as we speak.
Loan Laux
@loanlaux
May 14 2018 14:46
Windows ain't that bad. I mean it's improved quite a lot over the past years!
I'm typing that on a Mac tho so I can't speak from actual experience :grin:
Guus Huizen
@iAmGuus
May 14 2018 17:18
Hi to all, I am just really starting with reactioncommerce and am very confused about it over all. I just started with the plugin tutorial and so far it's going great, except for the fact that I've just stumbled upon an error. At Part 3 we import the productsLanding.html files that we just created. But when I do all of that and refresh my browser it gives me a page not found with Uncaught Error: Cannot find module './products/productsLanding.html'. What do I do with this and can anyone explain why? Thanks :smile:
Santiago Botta
@sgobotta
May 14 2018 18:27
@zenweasel I need to to some stress testing on RC regarding orders generations, I was wondering if RC published any official tool that meets this requirements.
machiko
@machikoyasuda
May 14 2018 18:43
Hi all :wave: - The Community Call will be taking a break for a few weeks. We're brainstorming and testing new formats that will help us serve the community better. If you have any suggestions for community engagement from our side, feel free to DM me or let us know in Gitter!
Guus Huizen
@iAmGuus
May 14 2018 18:50
So in addition to my previous message here, which I kind of solved, I just wanted to ask if theres any other good learning materials next to the documentation. Thanks
machiko
@machikoyasuda
May 14 2018 19:06
@iAmGuus check out our YouTube videos here for tutorials: https://www.youtube.com/playlist?list=PLJ1TVRVOrm2O5OsXqzDn5iZez4WEnKRZH
Daniel Honig
@dhonig
May 14 2018 19:21
blob
Anyone run across the above? I've clearly configured an e-mail provider and its not recognized :(
Guus Huizen
@iAmGuus
May 14 2018 19:28
@machikoyasuda i will, thanks
William Moss
@willmoss1000
May 14 2018 19:38
@machikoyasuda I realise it's in no way a replacement for the community calls, but it would be great if https://reactioncommerce.com/roadmap could be kept up to date. It's really a useful reference as a community member - to know what will be included in Core Reaction in the near future.
Daniel Honig
@dhonig
May 14 2018 19:39
I think the most frequent question I've assisted on @machikoyasuda is helping windows users fix setup issues. So thanks for the video!
Brent Hoover
@zenweasel
May 14 2018 21:05
@willmoss1000 We will be working on a comprehensive roadmap update soon. We’re aware that people need this info to make plans
Isaac Weber
@ikey2244
May 14 2018 21:26
Hello so I just had a question about the technology that react commerce is moving too. From my understanding you guys are moving away from meteor js. So If I were to build something in reaction commerce now would I have to update my stack later on once Next.js and graphql is implemented?