These are chat archives for reactioncommerce/reaction

23rd
Aug 2018
rohit-elevar
@rohit-elevar
Aug 23 2018 07:10
Is there any tutorial that helps understand how to pass data between reaction components.
For example I need the cart details and the user shipping details information to be passed into a payment plugin that I'm creating.
rohit-elevar
@rohit-elevar
Aug 23 2018 07:46
mainly need to get the shipping address in a custom plugin. I seem to be able to get cart details using the getCart() from "/imports/plugins/core/cart/client/util/getCart"
Brent Hoover
@zenweasel
Aug 23 2018 07:52
if you have the cart, you should have the shipping address
rohit-elevar
@rohit-elevar
Aug 23 2018 08:56
Yeah! I just went through the stripe payment code again, and understood how to get those values. Thanks a lot @zenweasel
Brent Hoover
@zenweasel
Aug 23 2018 08:56
:+1:
nickthejagger
@nickthejagger
Aug 23 2018 09:40
hey, any idea to automatic login using link? so if user click the link his/her automatic login within server
rohit-elevar
@rohit-elevar
Aug 23 2018 16:56

Anyone has faced this error before?

Exception while invoking method 'login' Error: insert requires an argument
    at Collection.insert (packages/mongo/collection.js:452:13)
    at Collection.Mongo.Collection.(anonymous function) (packages/aldeed:collection2/collection2.js:213:19)
    at Collection.Mongo.Collection.(anonymous function) [as insert] (packages/dispatch_run-as-user.js:325:19)
    at AccountsServer.Ap.insertUserDoc (packages/accounts-base/accounts_server.js:1340:25)
    at MethodInvocation.Accounts.registerLoginHandler.options (imports/plugins/core/core/server/startup/accounts.js:62:29)
    at packages/accounts-base/accounts_server.js:483:32
    at tryLoginMethod (packages/accounts-base/accounts_server.js:259:14)

This seems to occur when I used ngrok to open my port 3000 to test

Patrick Newell
@pnewell4_twitter
Aug 23 2018 17:45
@rohit-elevar this happens when no shops map to the current domain. by default, the Primary Shop maps to a single domain: localhost. if you are opening 127.0.0.1:3000, you will get this error (there is a patch coming in the next release of Reaction to address this)
William Moss
@willmoss1000
Aug 23 2018 18:46
Anyone know when the next reaction action / community call is?
Patrick Newell
@pnewell4_twitter
Aug 23 2018 18:57
Hey friends, I have spent a few weeks focussing on my Craft Beer Marketplace's onboarding experience... I would love any feedback!: https://reserve.brewline.io/welcome
(the Brewer onboarding experience requires a Brewery Untappd account, which you probably don't have... but if you do, let's talk!)
rohit-elevar
@rohit-elevar
Aug 23 2018 19:16
Thanks @pnewell4_twitter !
Anything I can do right away to make it work temporarily?
Patrick Newell
@pnewell4_twitter
Aug 23 2018 19:17
yep, two things:
1) run on localhost:3000 instead of 127.0.0.1:3000
2) go into your database and update the Primary Shop's domains attribute, adding 127.0.0.1 to the array
S Tunji Turner
@stunjiturner
Aug 23 2018 19:35
Is the documentation for creating a custom homepage up to date with release 1.14.1
I want to add a free shipping container and a footer
Is the code in reaction-swag-shop best practices?
Loan Laux
@loanlaux
Aug 23 2018 20:59
@willmoss1000 Community calls are no longer being held afaik. And I'm not sure that the next Reaction Action has been announced.
@pnewell4_twitter A few feedbacks for you
Screen Shot 2018-08-23 at 22.59.41.png
I think that the "Welcome to Brewline" title in the header should be centered and shouldn't be affected by the width of the left or right columns
Screen Shot 2018-08-23 at 23.00.25.png
And I find it strange that I have to expand my favorites to see them being added to the list. IMO it should be expanded by default, because at first I thought nothing was added as I went through the process.
Loan Laux
@loanlaux
Aug 23 2018 21:04
Or maybe somehow make the count bigger
Also that magnifier icon in the search button could use a bit margin-right
Brent Hoover
@zenweasel
Aug 23 2018 21:13
I’ve just merged in changes to the swag-plug that should make it compatible with 1.14.0
Loan Laux
@loanlaux
Aug 23 2018 21:14
Awesome! Thanks @zenweasel :+1:
S Tunji Turner
@stunjiturner
Aug 23 2018 22:15
The only problem the documentation and the swap plugin implementation seem to be setup differently
Swag plugin
@zenweasel can I test with 1.5 as well?
Brent Hoover
@zenweasel
Aug 23 2018 22:19
If you like. We probably won’t be able to do anything about it until after it’s released
S Tunji Turner
@stunjiturner
Aug 23 2018 22:23
Ok just staying progressive, I want to launch in September production,
Brent Hoover
@zenweasel
Aug 23 2018 22:23
Do you mean test the swag-shop plugin or just test 1.15 in general?
if you mean in general, then yes, totally. It’s in final QA now so it’s release is fairly imminent
Patrick Newell
@pnewell4_twitter
Aug 23 2018 22:28
thanks @loanlaux!
the favorites remain closed because I couldn't figure out how to update the list 🤔. the number is reactive, but the list of items is not 🤷‍♂️. I'll work on it. thanks again!
S Tunji Turner
@stunjiturner
Aug 23 2018 22:34
@zenweasel both the plugin and release. More importantly the release.
The layout of the existing swag plugin, does not seem to follow the guidelines in the documentation. Can we follow the latest docs for creating a plugin?
Brent Hoover
@zenweasel
Aug 23 2018 23:47
@stunjiturner Do you have specific examples?
S Tunji Turner
@stunjiturner
Aug 23 2018 23:48
I am working on that now, to make the request more specific
S Tunji Turner
@stunjiturner
Aug 23 2018 23:53
Documentation example for customizing home page step 2:
Step 2: Setting default values for INDEX_OPTIONS
You can change the default layout values in /client/config/defaults.js by overriding them in a new file called default.js in the /imports/plugins/custom/custom-home/client/ folder:
there is no defaults.js in the swag shop plugin in the /imports/plugins/custom/reaction-swag-shop/client/ folder?
Tutorial: Create a custom homepage