These are chat archives for reactioncommerce/reaction

13th
Sep 2016
Aesop7
@Aesop7
Sep 13 2016 01:16 UTC
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 UTC
thank you
ami-retry
@ami-retry
Sep 13 2016 06:05 UTC
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 UTC
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 UTC
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 UTC
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 UTC
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 UTC
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 UTC
Thanks. Last question. Are there any live websites using Reaction commerce ?
ami-retry
@ami-retry
Sep 13 2016 06:26 UTC
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 UTC
What data are you looking for?
ami-retry
@ami-retry
Sep 13 2016 06:27 UTC
The store is empty. No products are displayed under Men and Women sections
Brent Hoover
@zenweasel
Sep 13 2016 06:28 UTC
I don’t what you are seeing, I see the site populated with products
ami-retry
@ami-retry
Sep 13 2016 06:28 UTC
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 UTC
Brent Hoover
@zenweasel
Sep 13 2016 06:32 UTC
both those sites loaded for me
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 13 2016 06:32 UTC
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 UTC
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 UTC
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 UTC
@EpifaniaCollection thanks for the response
Brent Hoover
@zenweasel
Sep 13 2016 06:34 UTC
There is one additional theme, but it’s more for a tutorial.
ami-retry
@ami-retry
Sep 13 2016 06:36 UTC
Ok. Thanks for your help @zenweasel .
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 13 2016 06:41 UTC
@zenweasel : is there a tutorial how to create a quick contact page ?
Brent Hoover
@zenweasel
Sep 13 2016 06:42 UTC
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 UTC
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 UTC
@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 UTC
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 UTC
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 UTC
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 UTC
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 UTC
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 UTC
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 UTC
looking in db: db/meteor/Shops it has currency, languages, etc.
Brent Hoover
@zenweasel
Sep 13 2016 07:30 UTC
Yes, it always has had that
Epifania Collection - christian orthodox priest vestments and church items
@EpifaniaCollection
Sep 13 2016 07:31 UTC
tutorial is asking to add to it something like: defaultVisitorRole": [ "anonymous",
"guest",
"product",
"tag",
Brent Hoover
@zenweasel
Sep 13 2016 07:31 UTC
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 UTC
I was looking in the meteor db, not directly in the json.
Brent Hoover
@zenweasel
Sep 13 2016 07:35 UTC
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 UTC
@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 UTC
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 UTC
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 UTC
never mind, I didn't copy the private/data to root.
Michael Jenny
@prinzdezibel
Sep 13 2016 13:21 UTC
@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 UTC
@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 UTC
@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 UTC
Oh yeah, definitely do that.
Owen Hoskins
@owenhoskins
Sep 13 2016 18:17 UTC
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 UTC
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 UTC
Even with SSL enabled?
Jeremy Shimko
@jshimko
Sep 13 2016 18:20 UTC
You have SSL enabled for your Mongo connection?
Owen Hoskins
@owenhoskins
Sep 13 2016 18:20 UTC
Yes
Jeremy Shimko
@jshimko
Sep 13 2016 18:20 UTC
ah. all good then
Owen Hoskins
@owenhoskins
Sep 13 2016 18:20 UTC
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 UTC
Yeah, sorry. The SSL option didn’t use to be their default. Apparently is now.
Owen Hoskins
@owenhoskins
Sep 13 2016 18:23 UTC
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 UTC
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 UTC
Is there a command for that?
Jeremy Shimko
@jshimko
Sep 13 2016 18:27 UTC
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 UTC
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 UTC
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 UTC
It likely hasn't...!
Jeremy Shimko
@jshimko
Sep 13 2016 18:30 UTC
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 UTC
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 UTC
there you go
Owen Hoskins
@owenhoskins
Sep 13 2016 18:31 UTC
It can't reach it, which could be a DNS thing I suppose
Jeremy Shimko
@jshimko
Sep 13 2016 18:31 UTC
DNS or your incoming ports
(AWS is all closed by default)
Owen Hoskins
@owenhoskins
Sep 13 2016 18:32 UTC
Ah I didn't touch any AWS ports
Jeremy Shimko
@jshimko
Sep 13 2016 18:32 UTC
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 UTC
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 UTC
@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 UTC
hello
as you would to modify the layout to my theme?
Owen Hoskins
@owenhoskins
Sep 13 2016 19:56 UTC
@jshimko The port was the issue with lets encrypt -- thanks again for the pointer!
soyJsus
@soyJSus
Sep 13 2016 20:15 UTC
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 UTC
Why does not effect Template.layout.replaces("coreLayout");
Brent Hoover
@zenweasel
Sep 13 2016 22:31 UTC
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 UTC
mmm
yes
Brent Hoover
@zenweasel
Sep 13 2016 22:34 UTC
is your template called “layout”?
soyJsus
@soyJSus
Sep 13 2016 22:34 UTC
yes
i delete plugin ?
Brent Hoover
@zenweasel
Sep 13 2016 22:36 UTC
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 UTC
And you would use ?
Brent Hoover
@zenweasel
Sep 13 2016 22:37 UTC
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 UTC
You can give me the link ?
Brent Hoover
@zenweasel
Sep 13 2016 22:38 UTC
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 UTC
I need Change the index Completely
I need to completely change the structure of the home
Brent Hoover
@zenweasel
Sep 13 2016 22:40 UTC
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 UTC
ok
soyJsus
@soyJSus
Sep 13 2016 22:48 UTC
the issue of what added as a plugins ?
Brent Hoover
@zenweasel
Sep 13 2016 22:48 UTC
pardon?
soyJsus
@soyJSus
Sep 13 2016 22:48 UTC
the theme added as a plugins ?
Brent Hoover
@zenweasel
Sep 13 2016 22:48 UTC
themes and plugins are the same thing
soyJsus
@soyJSus
Sep 13 2016 22:48 UTC
sorry i dont speack english
Brent Hoover
@zenweasel
Sep 13 2016 22:49 UTC
themes are just plugins
soyJsus
@soyJSus
Sep 13 2016 22:49 UTC
ok
plugin == theme
Brent Hoover
@zenweasel
Sep 13 2016 22:49 UTC
Yep
soyJsus
@soyJSus
Sep 13 2016 22:49 UTC
xD
Brent Hoover
@zenweasel
Sep 13 2016 22:49 UTC
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 UTC
mmm ok
thanks ! for you help
Brent Hoover
@zenweasel
Sep 13 2016 22:53 UTC
if you look at the example-plugin repo, I replace the global layout in that example