These are chat archives for reactioncommerce/reaction

13th
Sep 2016
Aesop7
@Aesop7
Sep 13 2016 01:16
We're having issues getting custom meta data that we've successfully added to the users' cart into the users' order
Is there any documention on this, or can someone point me to the file that's removing the cart from the database and turning it into an order?
Aesop7
@Aesop7
Sep 13 2016 01:19
thank you
ami-retry
@ami-retry
Sep 13 2016 06:05
Hello. I have managed to set up the store locally. Is there any other way to upload the products ? I have 200 products.
And the product catalog is installed but I am not able to view it
Brent Hoover
@zenweasel
Sep 13 2016 06:07
You can import that data if you can convert it to the proper format
when you say you can’t view the product catalog, what do you mean?
ami-retry
@ami-retry
Sep 13 2016 06:14
When I load the dashboard page, I can see the Catalog item under the Core menu
But nothin happens when I click it
Brent Hoover
@zenweasel
Sep 13 2016 06:15
If you are logged in as an administrator, you can edit products from the product detail page
there is no separate “product catalog” section
ami-retry
@ami-retry
Sep 13 2016 06:16
Where can I find the import format ?
There is a Catalog section in the Core menu of the dashboard page.
Brent Hoover
@zenweasel
Sep 13 2016 06:17
Yes I understand. That doesn’t do anything
if you look at private/data you can look at the Products.json file to see the format
ami-retry
@ami-retry
Sep 13 2016 06:21
Thanks. Last question. Are there any live websites using Reaction commerce ?
ami-retry
@ami-retry
Sep 13 2016 06:26
No data on the site. Any other site ? My founder wants to check some options. I had suggested Reaction commerce as an alternative to opencart.
Brent Hoover
@zenweasel
Sep 13 2016 06:26
What data are you looking for?
ami-retry
@ami-retry
Sep 13 2016 06:27
The store is empty. No products are displayed under Men and Women sections
Brent Hoover
@zenweasel
Sep 13 2016 06:28
I don’t what you are seeing, I see the site populated with products
ami-retry
@ami-retry
Sep 13 2016 06:28
Sorry. I can see them now on another tab.
It did not load any products in the old tab.
I just want to be sure that this is a safe option to start with our ecommerce site.
I don’t know. The site is loading fine for me and I am in Asia
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 13 2016 06:31
Brent Hoover
@zenweasel
Sep 13 2016 06:32
both those sites loaded for me
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 13 2016 06:32
from time to time I also have such issues. @ami-retry : a draft of my website can be seen here: https://shop.maryhit.com
ami-retry
@ami-retry
Sep 13 2016 06:33
The second site loaded. But loading takes longer. Are there any themes available ?
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 13 2016 06:33
https://hungrypeople.snaxter.ch/ got loaded now. Initially it was not able to show anything. Probably till its not loaded
ami-retry
@ami-retry
Sep 13 2016 06:33
@EpifaniaCollection thanks for the response
Brent Hoover
@zenweasel
Sep 13 2016 06:34
There is one additional theme, but it’s more for a tutorial.
ami-retry
@ami-retry
Sep 13 2016 06:36
Ok. Thanks for your help @zenweasel .
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 13 2016 06:41
@zenweasel : is there a tutorial how to create a quick contact page ?
Brent Hoover
@zenweasel
Sep 13 2016 06:42
Just adding a static page is covered in the customization guide. Is that what you mean?
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 13 2016 07:03
I found this great tutorial: https://hackmd.io/CYUxA4CNgVgNgLQE4DsBjATAgLAZgAyJJwpIIBmAhrnDPgIzhyT7ZA== (afaik based on your work)
Sorry for basic questions, but where do I find the registry.js ? I am using docker solution.
root@119106e43f57:/var/www/bundle# find . -name register.js
./programs/server/npm/node_modules/meteor/kadira_flow-router-ssr/node_modules/babel-core/register.js
./programs/server/npm/node_modules/meteor/babel-compiler/node_modules/babel-core/register.js
./programs/server/npm/node_modules/meteor/babel-compiler/node_modules/meteor-babel/register.js
./programs/server/node_modules/source-map-support/register.js
Brent Hoover
@zenweasel
Sep 13 2016 07:05
@EpifaniaCollection Yes, that’s the same tutorial as found here: https://docs.reactioncommerce.com/reaction-docs/master/tutorial but an older version
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 13 2016 07:05
I need to put it in a location so I can expose it (mount it from host) probably
Brent Hoover
@zenweasel
Sep 13 2016 07:05
each plugin has a register.js at it’s root
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 13 2016 07:06
in order to create the "about page", I should use the ./programs/server/npm/node_modules/meteor/kadira_flow-router-ssr/node_modules/babel-core/register.js ?
Brent Hoover
@zenweasel
Sep 13 2016 07:07
You will need to create a plug-in as described in the tutorial. Then from that plugin you can create a route that points at your new page
I think you are trying to modify a built Meteor application which you don’t want to do
you want to work from the files you cloned from Github
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 13 2016 07:19
if I get it right, that https://hackmd.io/CYUxA4CNgVgNgLQE4DsBjATAgLAZgAyJJwpIIBmAhrnDPgIzhyT7ZA==#adding-custom-pagesroutes has a "quick&dirty" solution, by changing the FlowRouter
but it's short of details
e.g. how to modify the Shops json, as the schema is totally different. Probably this blog is outdated, right?
Brent Hoover
@zenweasel
Sep 13 2016 07:27
that was an earlier, preliminary version
in neither case are you directly modifying the FLowRouter package however
that schema for Shops.json has never changed significantly, so I am not sure what you are looking at
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 13 2016 07:29
looking in db: db/meteor/Shops it has currency, languages, etc.
Brent Hoover
@zenweasel
Sep 13 2016 07:30
Yes, it always has had that
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 13 2016 07:31
tutorial is asking to add to it something like: defaultVisitorRole": [ "anonymous",
"guest",
"product",
"tag",
Brent Hoover
@zenweasel
Sep 13 2016 07:31
Yep
if you want your new route to be accessible to everyone
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 13 2016 07:35
I was looking in the meteor db, not directly in the json.
Brent Hoover
@zenweasel
Sep 13 2016 07:35
what’s in the db is pretty much a mirror of what’s in the JSON
just remember there are two shops in the Shops.json in the project
Vigy
@vigyano
Sep 13 2016 08:46
@zenweasel when i use the sample package https://github.com/reactioncommerce/reaction-example-plugin, the product.json is not getting loaded
any idea?
Owen Hoskins
@owenhoskins
Sep 13 2016 08:57
Hello all. I've been running the latest Reaction dev branch on Digital Ocean 2gb Droplet with Composeio MongoDB 3.2.8 mmapv1 (highest tier while in trial month) and I have been noticing periods of extreme latency (https://www.dropbox.com/s/rdp7y0pffvesw0f/Screenshot%202016-09-13%2010.29.13.png?dl=0) In this screenshot of websocket frames you can see that a full two minutes passes from the initial connection till the Package subscriptions are added. This is occurring during the initial subscriptions on start up but also on subsequent subscriptions like to a products page (https://www.dropbox.com/s/rwxh7bi43xzmwhf/Screenshot%202016-09-13%2010.48.35.png?dl=0) where we wait for 30 seconds before the product is added. I have been watching out for this over the last few days and it's certainly not a constant but it does keep happening. It was just happening now until I stopped the container and ran it again. After the app rebooted the latency appears is gone. Any ideas where to look for solutions would be most welcome!
Owen Hoskins
@owenhoskins
Sep 13 2016 09:10
I just checked my DigitalOcean graphs and right when my websocket connection opened I see the "public outbound" metric spiking to 3.35Mbps. (https://www.dropbox.com/s/458o9mjv2otzwjp/Screenshot%202016-09-13%2011.03.15.png?dl=0) Having restarted the app, opening another browser window doesn't predictably spike this metric. Could this be part of the picture?
Vigy
@vigyano
Sep 13 2016 09:32
never mind, I didn't copy the private/data to root.
Michael Jenny
@prinzdezibel
Sep 13 2016 13:21
@ami-retry : will be online the very soon: https://easy-wine.de BASIC-AUTH: easy/going
still waiting for the GO from the customer ..
Jeremy Shimko
@jshimko
Sep 13 2016 14:55
@owenhoskins how many images do you have in your Medias collection? The publication is currently unfiltered and will publish every image in the database on initial page load.
Owen Hoskins
@owenhoskins
Sep 13 2016 18:16
@jshimko: I've switched to the Meteor-Files package so I emptied the Media collection. My new Images collection is carefully limited to the subscribe to only the what's needed per page. I opened a support request with composeio and on hearing that I am running on DigitalOcean said they recommend using the same datacenter for the server to take advantage of internal network communication.
Jeremy Shimko
@jshimko
Sep 13 2016 18:16
Oh yeah, definitely do that.
Owen Hoskins
@owenhoskins
Sep 13 2016 18:17
I've just spun up an ec2 t2.nano instance
and have requested my 0 limit on the small and medium instances to be raised (funny to have a 0 limit)
Jeremy Shimko
@jshimko
Sep 13 2016 18:18
A nano will definitely not be enough for Reaction (or many Meteor apps). I recommend no less than a small. Ideally a medium if you can afford it.
Also, unless you’re paying for Compose's expensive tier, you’re sending your database credentials across the public internet without SSL when you don’t have your deployment in the same datacenter.
Owen Hoskins
@owenhoskins
Sep 13 2016 18:19
Even with SSL enabled?
Jeremy Shimko
@jshimko
Sep 13 2016 18:20
You have SSL enabled for your Mongo connection?
Owen Hoskins
@owenhoskins
Sep 13 2016 18:20
Yes
Jeremy Shimko
@jshimko
Sep 13 2016 18:20
ah. all good then
Owen Hoskins
@owenhoskins
Sep 13 2016 18:20
I'll push for a t2.medium... would be testing with it now if I was allowed to create one.
Jeremy Shimko
@jshimko
Sep 13 2016 18:21
Yeah, sorry. The SSL option didn’t use to be their default. Apparently is now.
Owen Hoskins
@owenhoskins
Sep 13 2016 18:23
Np. Funny I am seeing this lets-encrypt cert failing again when I try to use the same sub domain for ec2 that was previously pointing to DigitalOcean. I mentioned this before but never worked out what's the matter. I wonder if it's DNS related.
Jeremy Shimko
@jshimko
Sep 13 2016 18:25
Not sure. Maybe LE keeps a record of the host IP. You could always just generate another.
Owen Hoskins
@owenhoskins
Sep 13 2016 18:25
Is there a command for that?
Jeremy Shimko
@jshimko
Sep 13 2016 18:27
Yes. I don’t ever do it manually though. I use the automated docker container for that. It sets it up for me and auto-renews itself.
https://github.com/JrCs/docker-letsencrypt-nginx-proxy-companion
If you’re using the commands we talked about a few weeks back, you’ll definitely have to regenerate certs. They don’t travel with the app when you deploy elsewhere.
(aside from the Digitial Ocean part)
Owen Hoskins
@owenhoskins
Sep 13 2016 18:29
Yeah that's what is failing. Anyways not critical as I managed to get it working properly last time by repeating those steps.
Jeremy Shimko
@jshimko
Sep 13 2016 18:30
LE needs to be able to reach your new server. Are you positive your DNS has propagated?
Owen Hoskins
@owenhoskins
Sep 13 2016 18:30
It likely hasn't...!
Jeremy Shimko
@jshimko
Sep 13 2016 18:30
You can monitor the logs for jrcs/letsencrypt-nginx-proxy-companion to see what the errors are
Owen Hoskins
@owenhoskins
Sep 13 2016 18:31
2016-09-13 18:14:36,598:ERROR:acme.challenges:256: Unable to reach http://dev.stephenkenn.com/.well-known/acme-challenge/zxGlAdF3mJq0-gxIe0Ez2ikOukgheD4Jt2lEbCu4mg4: HTTPConnectionPool(host='dev.stephenkenn.com', port=80): Max retries exceeded with url: /.well-known/acme-challenge/zxGlAdF3mJq0-gxIe0Ez2ikOukgheD4Jt2lEbCu4mg4 (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fbb225e4c50>: Failed to establish a new connection: [Errno 110] Operation timed out',))
Jeremy Shimko
@jshimko
Sep 13 2016 18:31
there you go
Owen Hoskins
@owenhoskins
Sep 13 2016 18:31
It can't reach it, which could be a DNS thing I suppose
Jeremy Shimko
@jshimko
Sep 13 2016 18:31
DNS or your incoming ports
(AWS is all closed by default)
Owen Hoskins
@owenhoskins
Sep 13 2016 18:32
Ah I didn't touch any AWS ports
Jeremy Shimko
@jshimko
Sep 13 2016 18:32
that’ll definitely be an issue then
obviously need 80 and 443
22 will be open already
Owen Hoskins
@owenhoskins
Sep 13 2016 18:42
thanks for the pointer! that might of taken a bit to dawn on me.
How about Oplog. Is that recommended for Reaction?
Owen Hoskins
@owenhoskins
Sep 13 2016 18:54
@jshimko: Meant to mention you here, after reading this (https://www.compose.com/articles/connecting-to-the-oplog-on-the-new-mongodb/) I wasn't sure if this makes sense for Reaction. Thoughts?
soyJsus
@soyJSus
Sep 13 2016 18:59
hello
as you would to modify the layout to my theme?
Owen Hoskins
@owenhoskins
Sep 13 2016 19:56
@jshimko The port was the issue with lets encrypt -- thanks again for the pointer!
soyJsus
@soyJSus
Sep 13 2016 20:15
because I give this error?

/home/Jsus/.meteor/packages/meteor-tool/.1.4.1_1.139xb76++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/meteor-promise/promise_server.js:165
throw error;
^

Error: ENOENT: no such file or directory, open '/tmp/mt-1ip1u8w/web.cordova.json'
at Error (native)

soyJsus
@soyJSus
Sep 13 2016 22:04
Why does not effect Template.layout.replaces("coreLayout");
Brent Hoover
@zenweasel
Sep 13 2016 22:31
well, I know that works so I am not sure. The order is important. Do you have that in your own plugin?
soyJsus
@soyJSus
Sep 13 2016 22:33
mmm
yes
Brent Hoover
@zenweasel
Sep 13 2016 22:34
is your template called “layout”?
soyJsus
@soyJSus
Sep 13 2016 22:34
yes
i delete plugin ?
Brent Hoover
@zenweasel
Sep 13 2016 22:36
Are you sure your code where the replaces is, is being executed?
We don’t really recommend people use Template.replaces any more
soyJsus
@soyJSus
Sep 13 2016 22:37
And you would use ?
Brent Hoover
@zenweasel
Sep 13 2016 22:37
You could temporarily try placing that code in the root client directory to see if it works there
we recommend using the method described in the customization guide, which is changing layout records in the registry
soyJsus
@soyJSus
Sep 13 2016 22:38
You can give me the link ?
Brent Hoover
@zenweasel
Sep 13 2016 22:38
As long as you are only replacing HTML Template.replaces is ok, but when you started getting into events and helpers it gets really tricky
soyJsus
@soyJSus
Sep 13 2016 22:39
I need Change the index Completely
I need to completely change the structure of the home
Brent Hoover
@zenweasel
Sep 13 2016 22:40
there are instructions on how to specifically replace the home page
the guide covers changing the global layout as well
soyJsus
@soyJSus
Sep 13 2016 22:40
ok
soyJsus
@soyJSus
Sep 13 2016 22:48
the issue of what added as a plugins ?
Brent Hoover
@zenweasel
Sep 13 2016 22:48
pardon?
soyJsus
@soyJSus
Sep 13 2016 22:48
the theme added as a plugins ?
Brent Hoover
@zenweasel
Sep 13 2016 22:48
themes and plugins are the same thing
soyJsus
@soyJSus
Sep 13 2016 22:48
sorry i dont speack english
Brent Hoover
@zenweasel
Sep 13 2016 22:49
themes are just plugins
soyJsus
@soyJSus
Sep 13 2016 22:49
ok
plugin == theme
Brent Hoover
@zenweasel
Sep 13 2016 22:49
Yep
soyJsus
@soyJSus
Sep 13 2016 22:49
xD
Brent Hoover
@zenweasel
Sep 13 2016 22:49
we just use that name sometimes because that’s what people are used to seeing
when we have a plugin that just affects the appearance
soyJsus
@soyJSus
Sep 13 2016 22:50
mmm ok
thanks ! for you help
Brent Hoover
@zenweasel
Sep 13 2016 22:53
if you look at the example-plugin repo, I replace the global layout in that example