These are chat archives for reactioncommerce/reaction

12th
Mar 2017
Mateo Morrison
@mateomorrison
Mar 12 2017 00:12
How to integrate Stripe with Reaction?
Brent Hoover
@zenweasel
Mar 12 2017 00:24
It’s already built in. You just need to enable it in the payment section of the dashboard
Mateo Morrison
@mateomorrison
Mar 12 2017 00:25
Screen Shot 2017-03-11 at 8.25.14 PM.png
Nope, not really built in here (just installed it) @zenweasel
Brent Hoover
@zenweasel
Mar 12 2017 00:27
what_is_stripe_in_spanish_-_Google_Search_🔇.png
it looks like the translation is translating Stripe to Raya
Mateo Morrison
@mateomorrison
Mar 12 2017 00:28
Ouu, that's new!
Brent Hoover
@zenweasel
Mar 12 2017 00:28
but you just need to enable it and enter your API key
Mateo Morrison
@mateomorrison
Mar 12 2017 00:29
Do I need to have SSL on to use Stripe?
Other question, which one? Live Secret Key or Live Pushable Key
Brent Hoover
@zenweasel
Mar 12 2017 00:30
You probably shouldn’t be accepting credit cards w/o SSL, but I don’t think anything about the Stripe integrations forces it because communication with Stripe is over SSL
Brent Hoover
@zenweasel
Mar 12 2017 00:35
I believe it’s the Secret key. Those separate keys are relatively new thing. My account we just have the one.
Patrick Artounian
@partounian
Mar 12 2017 02:03
Man I wonder if this CPU usage is due to increasing the open file limit
@zenweasel @spencern
Brent Hoover
@zenweasel
Mar 12 2017 02:13
I can’t think of a scenario where just allowing more open files would increase CPU usage per se.
You tried reverting back to the old version of Meteor and that didn’t help?
Mateo Morrison
@mateomorrison
Mar 12 2017 02:30
I want to remove this dropdown from the navbar. Since I'm using only one currency. How to do it?
Screen Shot 2017-03-11 at 10.28.05 PM.png
Also, the correct way to the currency is RD$X,XXX or RD$X not the other way around and we don't use cents, how to fix it?
Sna Nilim
@aiaoio
Mar 12 2017 09:53

hello,
i want to show tags item on another view, so i run this command
{{#each tag in tags}}
<div class="navbar-item {{navbarSelectedClassName tag}} {{hasDropdownClassName tag}}" data-id={{tag._id}}>
{{> tagItem (tagProps tag)}}

      <div class="dropdown-container" data-tag={{tag._id}}>
        {{> tagTree (tagTreeProps tag)}}
      </div>
    </div>
  {{/each}}

but its dont work....

Himad Mouhtar
@hmouhtar
Mar 12 2017 15:36
Hey guys
Could someone please help me?
How can I add a blog to reaction?
Or should I use wordpress for the blog and reaction for the online store?
hrath2015
@hrath2015
Mar 12 2017 15:37
Are u able to run reaction?
Himad Mouhtar
@hmouhtar
Mar 12 2017 15:38
@hrath2015 Yes!
hrath2015
@hrath2015
Mar 12 2017 15:38
Then will close the #1964 opened by you
Himad Mouhtar
@hmouhtar
Mar 12 2017 15:40
Ok! thanks
Do u know which would be the better way to use reaction ecommerce and a blog together?
Mateo Morrison
@mateomorrison
Mar 12 2017 15:42
@hmouhtar You can deploy Wordpress on blog.yourdomain.com and add a link onto Reaction
hrath2015
@hrath2015
Mar 12 2017 15:42
yup there u go. thanks @mateomorrison
Himad Mouhtar
@hmouhtar
Mar 12 2017 15:42
@mateomorrison but that would need another hosting service, right?
because reaction uses a nodejs server and wordpress uses a common server
Mateo Morrison
@mateomorrison
Mar 12 2017 15:43
Not really, you using Docker @hmouhtar?
Himad Mouhtar
@hmouhtar
Mar 12 2017 15:45
@mateomorrison no, it is a kind of platform as a service, right?
Mateo Morrison
@mateomorrison
Mar 12 2017 15:47
@hmouhtar Nope. Check it out here: https://www.docker.com
Himad Mouhtar
@hmouhtar
Mar 12 2017 15:52
@mateomorrison Okay, then if I use docker, can I deploy the reaction store and the blog together in the same hosting?
Mateo Morrison
@mateomorrison
Mar 12 2017 15:53
Yes, Docker allows you to use the so-called "Containers". Here is how to deploy Reaction into Docker: https://docs.reactioncommerce.com/reaction-docs/master/deploying-reaction-using-docker
And you can Google "Deploy Wordpress with Docker" @hmouhtar
Himad Mouhtar
@hmouhtar
Mar 12 2017 15:54
@mateomorrison Oook, but having reaction in a non scalable common server wouldn't be a bad practice?
Mateo Morrison
@mateomorrison
Mar 12 2017 15:55
What do you mean by "Non scalable common server"? @hmouhtar
Himad Mouhtar
@hmouhtar
Mar 12 2017 15:56
@mateomorrison like an apache server that people commonly uses for basic pages and things like that
Mateo Morrison
@mateomorrison
Mar 12 2017 15:56
Nope, Docker is totally scalable and I think they don't use Apache. I use Docker for everything and it works like a charm
Himad Mouhtar
@hmouhtar
Mar 12 2017 15:57
@mateomorrison ok but which kind of hosting is able to run docker?
Mateo Morrison
@mateomorrison
Mar 12 2017 15:58
Basically any kind of hosting. Digital Ocean, AWS, Google Cloud @hmouhtar
Himad Mouhtar
@hmouhtar
Mar 12 2017 15:59
Ok, got it, so any platform as a service should be able to run docker, right?
Mateo Morrison
@mateomorrison
Mar 12 2017 15:59
Basically any PaaS yup @hmouhtar
Himad Mouhtar
@hmouhtar
Mar 12 2017 15:59
Ok, now I have a last question hahaha
You usually pay for what you use on those PaaS, right? for example, 5 cents per hour of requests
But the PaaS also would debit the wordpress blog requests too, right?
Mateo Morrison
@mateomorrison
Mar 12 2017 16:04
Digital Ocean has a $5 a month plan which is like $0.0005 per hour
They don't charge by request
Himad Mouhtar
@hmouhtar
Mar 12 2017 16:05
Okay, I understand, but I mean, the wordpress blog would consume hours too, right?
Like if I have users using the blog 2 hours per day and users using the online store 2 hours per day, the PaaS would debit me 4 hours?
Mateo Morrison
@mateomorrison
Mar 12 2017 16:06
It consumes clock hours not usage hours
Juan David Narvaez S.
@JuanTux07
Mar 12 2017 17:25
Hola
Alguien hlabla espanol?
Himad Mouhtar
@hmouhtar
Mar 12 2017 17:30
Hola Juan
Si
@mateomorrison thank u very much for the info!!
Juan David Narvaez S.
@JuanTux07
Mar 12 2017 17:35
Uy muchas gracias!
bueno pues quiero saber de que se trata esta apliaccion
es para crear un e-ecommerce?
Patrick Artounian
@partounian
Mar 12 2017 17:46
So it seems the open file limit/ulimit/etc on macOS sierra works temporarily with the command in the docs, but you might need these files to make them permanent. Adding this, and setting meteor --release 1.4.1.2 did the trick for majorly dropping usage, and making everything buttery smooth.
https://www.chrissearle.org/2016/10/01/too-many-open-files-on-osx-macos/
Note: I used different values for the above files. On the second one, I used 65536 for both and the top are just values I found from a stack overflow answer, but don't take my word for any of the values. This is just mentioning how to make the changes work.
Spencer Norman
@spencern
Mar 12 2017 17:54
@mateomorrison re: the GetOutfitted reaction-foundation-theme. That did work at one point (RC 0.12.x) I think, but it hasn’t been touched in over a year and I think it would probably take a lot of work to get it working again. Probably better off just building your own theme at this point. That was more of a test project at the time, I should probably take it off github or at least note that it’s deprecated.
Patrick Artounian
@partounian
Mar 12 2017 18:17
Sorry if this is a dumb question, but I have noticed this with a few ecommerce shopping carts. They do not have the ability to add onto a product's configuration with a percentage increase. Is this a fundamental problem which is very difficult/not possible to do?
Mateo Morrison
@mateomorrison
Mar 12 2017 18:28
@spencern I've been trying to learn how to create my theme from the doc and the example theme but it's harder than I though.
Mateo Morrison
@mateomorrison
Mar 12 2017 18:40
I added a Issue at #1965 If anyone can help!
Patrick Artounian
@partounian
Mar 12 2017 19:11
Well for one spiderable is deprecated a very long time ago form what I know. You want to use prerender.io
(they also have an open source version)
Mateo Morrison
@mateomorrison
Mar 12 2017 19:12
Thanks, but that was not the question :worried: How to install it on my Reaction which is running in a Docker container
@partounian
Brent Hoover
@zenweasel
Mar 12 2017 21:12
@mateomorrison You can add spiderable by just doing meteor add ongoworks:spiderable. That is our fork of the spiderable package built for Docker
Mateo Morrison
@mateomorrison
Mar 12 2017 21:13
Ok, still not getting an answer. I know it's meteor add. But I'm using Docker, how to START meteor add
Now it's clearer? @zenweasel
Brent Hoover
@zenweasel
Mar 12 2017 21:13
Nope. You can’t run command line operations in your Docker container?
Mateo Morrison
@mateomorrison
Mar 12 2017 21:14
Maybe I can, I just don't know how to and that's what I am asking :smile:
Brent Hoover
@zenweasel
Mar 12 2017 21:14
Then I don’t know the answer
You can enable prerender.io by just signing up for an account and passing in PRERENDER_TOKEN and PRERENDER_HOST as environment variables
Mateo Morrison
@mateomorrison
Mar 12 2017 21:16
If I stop container, add those env and then start it again. Will I lose all changes I've done in my reaction commerce? @zenweasel
Brent Hoover
@zenweasel
Mar 12 2017 21:19
I don’t know how Docker works really, but just stopping and restarting Reaction will not cause you to lose your data.
Probably you will want to create a reaction.json to save your configuration as described here
Mateo Morrison
@mateomorrison
Mar 12 2017 21:23
@zenweasel Someone at docker/docker just told me running Meteor on Docker is not recommended. How do you run it?
Brent Hoover
@zenweasel
Mar 12 2017 21:24
I don’t run it in production because I work for Reaction Commerce. But we recommend Docker for deployment.
We will be announcing the details of our PaaS this month, which is all built on Docker
Mateo Morrison
@mateomorrison
Mar 12 2017 21:26
Nice! PaaS like Digital Ocean?
Brent Hoover
@zenweasel
Mar 12 2017 21:26
More like Heroku, but for Reaction
reaction deploy
Mateo Morrison
@mateomorrison
Mar 12 2017 21:26
Excellent. Any approximate on pricing?
Brent Hoover
@zenweasel
Mar 12 2017 21:27
No, I don’t know anything about it. We will be releasing the details this month however.
Mateo Morrison
@mateomorrison
Mar 12 2017 21:27
Alright, thank you
Brent Hoover
@zenweasel
Mar 12 2017 21:27
I mean I know stuff about it, I just don’t know the pricing details.
Mateo Morrison
@mateomorrison
Mar 12 2017 21:57
Cool! Thanks @zenweasel
One more thing, anywhere I can learn how to create a Reaction theme (docs are not much explicit and example theme is too simple). @zenweasel
Brent Hoover
@zenweasel
Mar 12 2017 21:59
I would look at the built-in theme at /import/plugins/included/default-theme. But depending on the scope of what you want to do, it’s mostly just bootstrap styling
We have a couple of more fleshed out alternate themes in the works
Mateo Morrison
@mateomorrison
Mar 12 2017 22:14
Thanks! One more thing (I swear it is all for today haha)
  • How to add Google Analytics?
  • Trying to fix #1965. Not the Spiderable part but the SEO and Meta Tags
  • Stripe is not working even putting the API. Anything else need to be done?
  • Can't add Flat Rate shipping
    @zenweasel
Brent Hoover
@zenweasel
Mar 12 2017 22:15
When you say you can’t add Flat Rate shipping, what does that mean?
You enabled it and the methods in the Dashboard?
Mateo Morrison
@mateomorrison
Mar 12 2017 22:18
Screen Shot 2017-03-12 at 6.16.34 PM.png
Tried to, when I click enable appeared this
Brent Hoover
@zenweasel
Mar 12 2017 22:19
That’s in the dashboard?
Mateo Morrison
@mateomorrison
Mar 12 2017 22:19
Yes
Brent Hoover
@zenweasel
Mar 12 2017 22:20
Yeah, something is broken there
Basic_Reaction_Product.png
it looks like this in a stock Reaction
It looks like you don’t have methods or translations loaded
Mateo Morrison
@mateomorrison
Mar 12 2017 22:23
I'll hack the way around restarting the containter. If I update a file on / how to make my website update? Sorry I'm a PHP native developer and got used to Apache old stuff and filezilla :worried:
Brent Hoover
@zenweasel
Mar 12 2017 22:24
this would probably be a *Lot easier if you developed locally before trying to deploy
Mateo Morrison
@mateomorrison
Mar 12 2017 22:25
I already did it. Got tired of it and wanted to run it on production
Brent Hoover
@zenweasel
Mar 12 2017 22:25
Especially once you start trying to make style changes, that’s going to be a pretty diffcult experience trying to rebuild Reaction every time
Mateo Morrison
@mateomorrison
Mar 12 2017 22:26
:worried:
Brent Hoover
@zenweasel
Mar 12 2017 22:27
The process is different when you are working with a compiled process. It doesn’t work like PHP.
Mateo Morrison
@mateomorrison
Mar 12 2017 22:28
Yup
Brent Hoover
@zenweasel
Mar 12 2017 22:29
I’m not trying to tell you how to work, I am just saying you might find it less frustrating
Mateo Morrison
@mateomorrison
Mar 12 2017 22:29
I know, don't worry. Will hack the way around locally then will see how to make it real
Brent Hoover
@zenweasel
Mar 12 2017 22:30
So, when you see stuff like admin.shippingGrid.name those are translation keys that are not getting translated