These are chat archives for reactioncommerce/reaction

22nd
Oct 2016
Donovan Adams - Hydrotik
@hydrotik
Oct 22 2016 00:42
@zenweasel Hi Brent, I'm liking what I have going with my plugin project. Thanks again for your help! I've got a react carousel in there for promos and hero images. I'm about ready to take a look at why the about page isn't loading and also look at how to default only the index but keep the header templates across the site. Also wondering why the products don't get populated into the DB using the private/data
Brent Hoover
@zenweasel
Oct 22 2016 00:47
Is everything pushed to the repo?
Donovan Adams - Hydrotik
@hydrotik
Oct 22 2016 01:15
yep
Brent Hoover
@zenweasel
Oct 22 2016 01:17
Ok, doing some stuff around the house (Saturday morning here) but I will try to take a look at it later
Donovan Adams - Hydrotik
@hydrotik
Oct 22 2016 01:19
yep, no rush. it's the weekend ;)
Brent Hoover
@zenweasel
Oct 22 2016 02:30
Docs site back up again
samgitre
@samgitre
Oct 22 2016 06:45
Hi, all!
please I need help on reactioncommerce
How can I register more than one theme
I have followed the documentation and try to make it an array of themes but doesn't work
samgitre
@samgitre
Oct 22 2016 06:52
I'm trying to use different layout in different page but not working for me
samgitre
@samgitre
Oct 22 2016 07:08
Hello, could any one help me out
How can I start creating my own product and save to the database, so that I can make use of them instead of the seed data in there?
samgitre
@samgitre
Oct 22 2016 07:56
Hello, please help me out
I will be grateful to any response :)
Brent Hoover
@zenweasel
Oct 22 2016 08:37
HI @samgitre Have you looked through the Customization Guide?
samgitre
@samgitre
Oct 22 2016 09:47
yes, I have done that
But now I'm doing it again
Is it ok if I reset the database, because I have not understand how the data are stored to the collections
Brent Hoover
@zenweasel
Oct 22 2016 10:12
Yes, resetting will clear out the collections and then the sample data will load on next statrup
samgitre
@samgitre
Oct 22 2016 11:44
Resetting the database! Also delete node_modules? (y/N)
I always choose (n) but I noticed no changes so is ok I choose yes and after that re-install npm modules?
Brent Hoover
@zenweasel
Oct 22 2016 11:53
yeah, you don’t need to delete modules unless you are having problems. You can do reaction reset -n to skip the prompt
samgitre
@samgitre
Oct 22 2016 11:54
ok
Thank so much, let me try this.
Luís Fernandes
@saguas
Oct 22 2016 17:16
Is it possible to configure service login in reaction? If it is how to do it? Thanks.
Ivanthadev
@ivanthemeh
Oct 22 2016 17:29
any fix for
Error: Meteor.userId can only be invoked in method calls. Use this.userId in publish functions.
[35.160.64.109]     at AccountsServer.userId (packages/accounts-base/accounts_server.js:82:13)
[35.160.64.109]     at AccountsServer.user (packages/accounts-base/accounts_common.js:58:23)
[35.160.64.109]     at Object.Meteor.user (packages/accounts-base/accounts_common.js:255:19)
[35.160.64.109]     at AccountsServer._onCreateUserHook (server/startup/accounts.js:98:36)
[35.160.64.109]     at AccountsServer.Ap.insertUserDoc (packages/accounts-base/accounts_server.js:1276:21)
[35.160.64.109]     at _createUser (packages/accounts-password/password_server.js:1003:25)
[35.160.64.109]     at AccountsServer.Accounts.createUser (packages/accounts-password/password_server.js:1072:10)
[35.160.64.109]     at Object.createDefaultAdminUser (server/api/core/core.js:279:28)
[35.160.64.109]     at Object.init (server/api/core/core.js:32:10)
[35.160.64.109]     at module.export.exports.default (server/startup/init.js:8:12)
[35.160.64.109]     at module.export.exports.default (server/startup/index.js:14:3)
[35.160.64.109]     at server/main.js:6:3
[35.160.64.109]     at /bundle/bundle/programs/server/boot.js:299:5
Donovan Adams - Hydrotik
@hydrotik
Oct 22 2016 19:21
save yourself a little step and use bash reaction reset -n && reaction
reaction reset -n && reaction
@samgitre I have been working on this myself for a couple weeks and I have a repo where you can see what I have done. It does help to do it from scratch though. I encountered a number of strange issues but I think it was due to renaming the layouts in different places and needing that reset. Also, don't forget about server/init.js
the repo is here https://github.com/hydrotik/reaction-hydrotik-plugin I havent gotten to any of the PDP or checkout workflow stuff yet
Donovan Adams - Hydrotik
@hydrotik
Oct 22 2016 21:57
Can someone remind me how to select the product detail simple using react in 0.17?
samgitre
@samgitre
Oct 22 2016 23:05
Ok, Thank so much! I will check it out now
samgitre
@samgitre
Oct 22 2016 23:49
@hydrotik Thanks so much, your repo has given me a starting point.
Brent Hoover
@zenweasel
Oct 22 2016 23:53
@ivanthemeh The error message is telling you pretty much what the issue is, you can’t use Meteor.userId in a publish function. You need to use this.userId