These are chat archives for reactioncommerce/reaction

6th
Dec 2017
00WhengWheng
@00WhengWheng
Dec 06 2017 00:28
i have some trouble to set up Mailgun emails provider....
which username and password may i have to use to connect?
Brent Hoover
@zenweasel
Dec 06 2017 00:33
the ones provided to you from Mailgun? Do they give you more than one?
00WhengWheng
@00WhengWheng
Dec 06 2017 00:47
do you mean the username and password that i use to login in mailgun account?
askaskn
@askaskn
Dec 06 2017 05:52
Hi everyone, can anyone help to setup REACTIONCOMMERCE on HEROKU?
askaskn
@askaskn
Dec 06 2017 05:53
Also the doc > https://docs.reactioncommerce.com/reaction-docs/master/deploying-reaction-using-heroku > keeps on loading on browser. May I know whats the issue
Yes Brent, using that did most of the steps.
Brent Hoover
@zenweasel
Dec 06 2017 05:53
We don’t really support deploying to Heroku any more
askaskn
@askaskn
Dec 06 2017 05:53
Reaction Preliminary Setup on that isn't working
OK, so what about docker then?
Brent Hoover
@zenweasel
Dec 06 2017 05:54
Meaning, as far as we know it works, but we can’t really help you since it’s not something we do
askaskn
@askaskn
Dec 06 2017 05:54
how about docker/ aws/ google cloud?
Brent Hoover
@zenweasel
Dec 06 2017 05:55
Yeah, that’s covered in docs. I’m not great at Docker tbh
If you have specific questions/problems we also have a deployment channel
are there any guide doc for installing it on docker?
askaskn
@askaskn
Dec 06 2017 05:59
Thanks
Brent Hoover
@zenweasel
Dec 06 2017 05:59
:+1:
Aladin
@redgenie
Dec 06 2017 07:03
The marketplace is a bit confusing when it comes to payment methods. Will every merchant need a stripe account? Or can we collect all payments in Reaction, then we wire the payments to the shop owners?
And also, for the shipping, the documentation is so little and very tied to Shippo. What if I am using my own shipping company, will that be possible?
gopeshcitpl
@gopeshcitpl
Dec 06 2017 07:04

@zenweasel I have created custom template for tag listing and product listing. i would like to display product listing n different way. so i changed the layout design and js file.

In custom JS file, when i call
component() {
return Components.Products;
}

In custom html file, when i call {{>React component=component}} then it return results

But when i used our custom query like Products.find({}).fetch(), this returns 0 records. so i would like to get products listing with the custom query.

Also, i import product collection like : import { Products } from "/lib/collections";
could you please help me?
Brent Hoover
@zenweasel
Dec 06 2017 07:11
@redgenie Yes, each merchant would have their own account and is collecting the money directly for themselves (minus whatever fee the marketplace is charging). There is obviously countless other ways this could be done but we settled on this as the most common use case.
Aladin
@redgenie
Dec 06 2017 07:12
Yes, it's a good way of handling it, but the issue is that I'm deploying the platform where stripe is not supported, so I wonder if braintree would be ok or if we can customize it so that we aggregate payments and send them in bank transfers
Brent Hoover
@zenweasel
Dec 06 2017 07:12
@gopeshcitpl You’re going to need to give me more to work with. It’s going to get in there and debug your code if I can’t see it all
Braintree also supports merchant sub-accounts. Our current implementation doesn’t support it but you could add that to the current plugin
reactioncommerce/reaction#1118
We implemented this with Braintree at a previous job I had so I know for a fact it works
Aladin
@redgenie
Dec 06 2017 07:50
Ok, I just checked again, no braintree supported in UAE too. Credit cards or possibly PayPal. You mentioned adding it to current plugin, is it inside the core or is there a plugin out there. I hope I'm taking a good decision in choosing Reaction Commerce although I know that it's not mature yet
Brent Hoover
@zenweasel
Dec 06 2017 07:52
there’s is already a Braintree plugin included in the main repo, but it doesn’t support merchant accounts so you would need to add that. You could just copy the current plugin and build from there, OR alternatively start with Stripe and just replace the API calls.
or some mix of the two
Brent Hoover
@zenweasel
Dec 06 2017 07:59
If you decide to just go with manually disbursing via check you would need to change whatever payment to support multi-shop. Currently we only support Stripe for multi-shop
it’s not really a complicated change but we haven’t done it yet
Aladin
@redgenie
Dec 06 2017 08:00
Alright, I'll try to read code and see how it goes
Thanks @zenweasel
Brent Hoover
@zenweasel
Dec 06 2017 08:00
:+1:
Aladin
@redgenie
Dec 06 2017 08:03
oh, one thing @zenweasel, adding a shipping module to track our own shipping company would be same thing right? Plugin and copying from Shippo (I presume there's no plugin out there as an example)
Brandon Watson
@brandon-watson
Dec 06 2017 08:16
Hi.
I am going to add custom item to dashboard.
Where should I start to work from on source directory?
Brent Hoover
@zenweasel
Dec 06 2017 08:18
@redgenie Yes, start with shippo if it’s a third-party integration
@brandon-watson You would want to create a custom plugin and then in your plugin register.js file specify that if provides: [dashboard]
Brandon Watson
@brandon-watson
Dec 06 2017 08:19
Ah, ok, that make senses to me.
Brandon Watson
@brandon-watson
Dec 06 2017 08:19
@zenweasel
Brent Hoover
@zenweasel
Dec 06 2017 08:20
That article digs into the registry some more and should give you what you need
Brandon Watson
@brandon-watson
Dec 06 2017 08:22
and I am just new at reaction, and I am very confused on custom plugin directory structure. IS there anything good ref doc which I can ref to?
Brent Hoover
@zenweasel
Dec 06 2017 08:22
it walks you through creating a plugin
Brandon Watson
@brandon-watson
Dec 06 2017 08:23
Yes, I walked through that already, but still don't understand fully. is there more detailed ref doc?
Brent Hoover
@zenweasel
Dec 06 2017 08:24
what exactly are you looking for?
Brandon Watson
@brandon-watson
Dec 06 2017 08:25
I am going to loading more element and new design on the page different than the other page.
Brent Hoover
@zenweasel
Dec 06 2017 08:26
ok
Did you have a specific question you couldn’t find an answer for
there’s really not anything special about the plugin directory layout except the typical client/server/lib layout of all meteor modules
Brandon Watson
@brandon-watson
Dec 06 2017 08:27
yes, I am going to add custom page using meteor module and element which meteor provide
but I am not sure which file in which directory I should modify.
Brent Hoover
@zenweasel
Dec 06 2017 08:28
you shouldn’t need to modify any of the core code
Brandon Watson
@brandon-watson
Dec 06 2017 08:28
this page would be including label, input, table elements.
Brent Hoover
@zenweasel
Dec 06 2017 08:28
you would override any particular component by using replaceComponent
Brandon Watson
@brandon-watson
Dec 06 2017 08:29
ah, in which file?
Brent Hoover
@zenweasel
Dec 06 2017 08:29
You can create a blank plugin by doing reaction plugins create --name myplugin
Brandon Watson
@brandon-watson
Dec 06 2017 08:29
okay.
and?
Brent Hoover
@zenweasel
Dec 06 2017 08:29
You would do that in your plugin, anywhere really.
you can replace any component with any component you create
Brandon Watson
@brandon-watson
Dec 06 2017 08:31
ah, ok. thanks.
and How can I create the functionality to download the product information as a csv file?
I think this should be handled with MongoDB collections in Reaction
Brent Hoover
@zenweasel
Dec 06 2017 08:32
Well, it gets a little complicated because CSV does not handle nested values very well
Brandon Watson
@brandon-watson
Dec 06 2017 08:32
then May I know how I can get the product from MongoDB in Reaction?
Brent Hoover
@zenweasel
Dec 06 2017 08:33
there’s a section here on how to export the products to JSON: https://docs.reactioncommerce.com/reaction-docs/master/plugin-fixtures-5
I think you might be able to create CSV from that as well
Brandon Watson
@brandon-watson
Dec 06 2017 08:33
Yes, I think so as well.
Brent Hoover
@zenweasel
Dec 06 2017 08:34
Also we have a PR right now for a plugin to export Orders to CSV. You could take that to create a plugin that exports Products to CSV
Brandon Watson
@brandon-watson
Dec 06 2017 08:34
Where can I find that?
Brent Hoover
@zenweasel
Dec 06 2017 08:34
reactioncommerce/reaction#3298
it’s still WIP but almost complete
should be ready by the end of the week and we will be releasing it as an optional plugin
Brandon Watson
@brandon-watson
Dec 06 2017 08:35
Okay, thanks.
How can I set optional plugin in Reaction as default?
Brent Hoover
@zenweasel
Dec 06 2017 08:36
I don’t know what you mean
Brandon Watson
@brandon-watson
Dec 06 2017 08:36
I am going to control Plugin to enable or disable by user.
How can I do that?
Brent Hoover
@zenweasel
Dec 06 2017 08:37
You would create a new permission (in code) and only allow users with that permission to see the plugin
Brandon Watson
@brandon-watson
Dec 06 2017 08:37
Okay.
so what I need to modify or create or work on is plugin, right?
I don't need change the other thing for my purpose?
Brent Hoover
@zenweasel
Dec 06 2017 08:38
Yep, that’s the goal. Then you can grab new updates w/o any issues
Brandon Watson
@brandon-watson
Dec 06 2017 08:39
Okay, thanks.
Brent Hoover
@zenweasel
Dec 06 2017 08:39
:+1:
Brandon Watson
@brandon-watson
Dec 06 2017 08:39
Really Appreciate. It was much better to make me understand depth.
Brent Hoover
@zenweasel
Dec 06 2017 08:39
Cool. Glad I could help
hitachi19
@hitachi19
Dec 06 2017 09:22
@machikoyasuda hi,why can't i find the path client/templates.js in the code as mentioned in docs(https://docs.reactioncommerce.com/reaction-docs/master/templates)?
1.JPG
Brandon Watson
@brandon-watson
Dec 06 2017 09:25
@zenweasel
one question more.
what is workflow property in layout in Register.js file?
I am now confused in workflow and layout.
hitachi19
@hitachi19
Dec 06 2017 09:31
@brandon-watson i think workflow is used in step,eg step 1,step 2,step 3 in one layout
hi,why can't i find the path client/templates.js in the code as mentioned in docs(https://docs.reactioncommerce.com/reaction-docs/master/templates)?
1.JPG
Brandon Watson
@brandon-watson
Dec 06 2017 09:38
How can I use proper workflow for our custom plugin?
Is there doc for workflow?
@hitachi19 and @zenweasel
Brandon Watson
@brandon-watson
Dec 06 2017 10:00
?
Is there anyone to help me on that?
Brent Hoover
@zenweasel
Dec 06 2017 10:02
@brandon-watson why do you think you need a workflow?
Brandon Watson
@brandon-watson
Dec 06 2017 10:03
I am just not sure what workflow is for .
Brent Hoover
@zenweasel
Dec 06 2017 10:04
As @hitachi19 mentioned it’s used for checkout right now. When you have a series of sequential templates
Unless you are modifying the checkout process, you shouldn’t need to deal with it
Brandon Watson
@brandon-watson
Dec 06 2017 10:07
Ah, ok, In general, it doesn't need to modify that, right?
Brent Hoover
@zenweasel
Dec 06 2017 10:07
unless you are modifying checkout, no
Brandon Watson
@brandon-watson
Dec 06 2017 10:08
Ok, thanks.
Brent Hoover
@zenweasel
Dec 06 2017 10:08
:+1:
hitachi19
@hitachi19
Dec 06 2017 11:00
@zenweasel hi,why can't i find the path client/templates.js in the code as mentioned in docs(https://docs.reactioncommerce.com/reaction-docs/master/templates)?
1.JPG
Michael Jenny
@prinzdezibel
Dec 06 2017 11:09
@hitachi19 Could be that this is an outdated reference. I would need have to check. But generally speaking, you should not need to bother with Blaze template overriding at all. We're in the progress to deprecate all Blaze templates and in the end you'll not be able to use the template replace API any longer.
Have you seen our documentation regarding Reaction Components API , already?
Should give you an idea how to use React components
hitachi19
@hitachi19
Dec 06 2017 12:10
@prinzdezibel Thank you for your patience again!i will see the documentation.
José Luis Di Biase
@josx
Dec 06 2017 20:47
anyone know how to render a custom set of products, client side
i am trying to <Components.Products products={this.state.products}> and in this.state.products there are an array with products
this show me all products, not the ones i am setting as a prop
Brent Hoover
@zenweasel
Dec 06 2017 21:05
@josx You could change your subscription to include a filter. The publication allows you pass in a filter as a parameter. https://github.com/reactioncommerce/reaction/blob/9473b40bec94fc7be8d04820ec3ad174f1502422/server/publications/collections/products.js#L78
José Luis Di Biase
@josx
Dec 06 2017 21:12
i dont understand how to show those products from the client
Brent Hoover
@zenweasel
Dec 06 2017 21:14
Not sure what you mean
José Luis Di Biase
@josx
Dec 06 2017 21:15
i have a custom meteor.call that give me a list of products from server
i would like to render those products on the client with a component
Brent Hoover
@zenweasel
Dec 06 2017 21:19
So, sorry if I am covering things that are too basic here but, typically you would have a container that would do the subscription work and pass the data into your display component. And then that component can just render the data through HTML
machiko
@machikoyasuda
Dec 06 2017 23:17
In case you missed it, our new video for how to set up Marketplace with merchants and Stripe Connect is now on YouTube: https://youtu.be/Y-p7ZrIBZCQ
Josh Cox
@joshuacox
Dec 06 2017 23:55
Is anyone using a monitoring solution (prometheus, shinken, naemon, icinga, sensu, nagios, etc) to determine the availability of reaction? If so how are you determining it is actually up? Able to talk to mongo, etc. I have a curl solution that is not very robust, does not determine any of that, only cares if it gets back the html head, and has given me more than one false positive when setting up. It seems a subset of the tests might be able to be ran against a production site, has anyone done such a thing, or have an alternative?