These are chat archives for reactioncommerce/reaction

17th
May 2017
Suciu Sergiu
@sergiusuciu94
May 17 2017 07:22
some pages on the docs site don't load for me
Brent Hoover
@zenweasel
May 17 2017 07:41
That page is loading for me. Where did you get that link?
Curran
@curranabell
May 17 2017 08:02
Hi I was curious if there is a way for admins to delete products once they have been created. Right now my local install is not showing any way to modify existing products. I am assuming there would be a settings icon or x above the products but my local install is not showing anything just a blue circle on the top right hand corner of the product. Not sure if this is a bug or not but thought I'd let you all know.
Brent Hoover
@zenweasel
May 17 2017 08:15
You can archive products.
Curran
@curranabell
May 17 2017 08:18
Hmm I tried archiving them but did not see a delete or remove button. Is there another way to delete products when logged in as a admin?
@zenweasel
Brent Hoover
@zenweasel
May 17 2017 08:18
You cannot delete, only archive
although archiving them makes them invisible
Vigy
@vigyano
May 17 2017 08:20
@zenweasel - sorry for bugging you, how to override react components in products details?
Curran
@curranabell
May 17 2017 08:20
@zenweasel Ahh ok will this feature be available in the future? My client needs to be able to delete his products from the admin area. I understand you can go into the database and delete the products but I would like my clients to be able to delete the products themselves incase a product is accidentally created or just for a demo.
Brent Hoover
@zenweasel
May 17 2017 08:21
@vigyano You can’t really override individual React components, you would need to have you own version of the Product Detail Page and have that version use your new components.
@curranabell We don’t have any plans to add that right now. We chose to do archive rather than to delete to avoid any possible issues arising from deleting products that were used in the cart or orders
Vigy
@vigyano
May 17 2017 08:23
I see, is this the main product details page - imports\plugins\included\product-variant\client\templates\products\products.html?
Brent Hoover
@zenweasel
May 17 2017 08:23
@vigyano Are you familiar with how to override the PDP?
Let me fire up my editor
Vigy
@vigyano
May 17 2017 08:26
what is PDP?
Brent Hoover
@zenweasel
May 17 2017 08:26
sorry, Product Details Page
Vigy
@vigyano
May 17 2017 08:27
ah! thought of that but didn't wanted to sound stupid by saying that :smile:
Brent Hoover
@zenweasel
May 17 2017 08:28
when you say it 100 times a day you start to abbreviate I guess
No, that’s the product grid
The PDP is all in React now
Vigy
@vigyano
May 17 2017 08:29
I have extended blaze templates and customized layouts but haven't overridden React component
Brent Hoover
@zenweasel
May 17 2017 08:29
it’s actually much more simple
but I am having some trouble finding it in the docs
Basically you just need to register your component and then it will show up in the drop down
Basic_Reaction_Product_and_products_html_-_reaction_-____Projects_js_reaction_.png
Vigy
@vigyano
May 17 2017 08:32
I see, so register React component in code and then switch them in the UI?
Brent Hoover
@zenweasel
May 17 2017 08:32
Right, you could theoretically have several different PDP’s for different types of Products
You can also look at the two included PDP components
Vigy
@vigyano
May 17 2017 08:36
included in the source in product-detail-simple?
Brent Hoover
@zenweasel
May 17 2017 08:37
Yeah, productDetail.js and productDetailContainer.js in the components and containers directories respectively
Curran
@curranabell
May 17 2017 08:37
@zenweasel My custom theme is not registering as a plugin for some reason. I have followed the guides but I am sure I must have missed something. Much of the code has not been fully tested yet as I am learning how to create themes. Here is the git repository. Maybe you could take a quick look and see if everything is looking good or not. https://github.com/curranabell/material-theme.git
Thank You!
Brent Hoover
@zenweasel
May 17 2017 08:39
so is your plug-in laid out so it’s /imports/plugins/custom/material-theme/?
Vigy
@vigyano
May 17 2017 08:39
thanks @zenweasel , I will check your references.
Curran
@curranabell
May 17 2017 08:40
yes
@zenweasel
Brent Hoover
@zenweasel
May 17 2017 08:40
and you have done a reaction reset?
When you say it’s not registering as a plugin, what does that mean?
One thing is that you need to have imports in your client/index.js
Only the client/index.js file gets automatically imported, everything else in your plugin needs to be imported by that or it’s never evaluated/run
Curran
@curranabell
May 17 2017 08:51
Ahh perfect that was the issue. I had not realized I needed to do a reaction reset. Thanks for your help! @zenweasel
Brent Hoover
@zenweasel
May 17 2017 08:51
:+1:
llawcy
@llawcy
May 17 2017 09:27
Hi , In my side, I run reaction in local, I access it using smartphone, I find the layout display is abnormal, but it can display normally on PC or pad. do you have any idea? because, according to introduction in github, it seems run on mobile normally.
Brent Hoover
@zenweasel
May 17 2017 09:28
Do you have specific examples, because I look at the site all the time on a device and it looks fine
llawcy
@llawcy
May 17 2017 09:29
No, I run the code from github, there is no modification so far
Brent Hoover
@zenweasel
May 17 2017 09:29
I mean do you have examples (screenshots, etc) where it looks “abnormal”?
llawcy
@llawcy
May 17 2017 09:33
wait a moment, let me capture one pic
Image 5.png
llawcy
@llawcy
May 17 2017 09:38
this is the display one smatphone
Brent Hoover
@zenweasel
May 17 2017 09:38
yeah, you have something else going on there. What device is that?
llawcy
@llawcy
May 17 2017 09:39
iphone, safari browse
Brent Hoover
@zenweasel
May 17 2017 09:41
Glass.png
this is what the site looks like to me on the same device
llawcy
@llawcy
May 17 2017 09:43
Oh, in your side, the display is OK, let me reinstall again. thanks for your information.
Brent Hoover
@zenweasel
May 17 2017 09:50
I don’t think it is. I probably intended to at some point but never got around to it
Vigy
@vigyano
May 17 2017 09:50
i have configured register.js to override footer but that is not getting into effect.
Brent Hoover
@zenweasel
May 17 2017 09:50
Probably will need to rewrite it as a React component
llawcy
@llawcy
May 17 2017 09:51
@zenweasel I have another question, for start app, it will take long time, is there any way to short the time?
Brent Hoover
@zenweasel
May 17 2017 09:52
@llawcy Unfortunately no. For first starts it can take a little while. But you shouldn’t need to do a full restart during development usually.
@vigyano But your other overrides are working?
Vigy
@vigyano
May 17 2017 09:53
before current version 1.2.0 the core layout was in blaze so I directly hardcoded the header and footer. -- {{> Template.dynamic template="layoutHeaderCustom"}}
But in current version core layout is in react and trying to override on this line const { layoutHeader, layoutFooter, template } = this.props.structure || {};, don't know how.
Brent Hoover
@zenweasel
May 17 2017 09:54
Yeah, that change went in like 3 hours ago
Vigy
@vigyano
May 17 2017 09:54
I am able to override only through - Session.set("INDEX_OPTIONS", {
whatever I have in Session.set("INDEX_OPTIONS" seems to work for my custom index or home page, but when I switch to SHOP gallery, it reverts back to default header and footer.
Brent Hoover
@zenweasel
May 17 2017 09:55
Right
llawcy
@llawcy
May 17 2017 09:56
@zenweasel Yes, I can understand. BTW, In my side, I reinstall again using reaction init and reaction command, but the display is same, also abnormal.
Brent Hoover
@zenweasel
May 17 2017 09:56
@llawcy I don’t know what to tell you, I can’t reproduce it here. It looks fine in the desktop browser?
Are you running in private mode or anything weird?
llawcy
@llawcy
May 17 2017 09:58
@zenweasel desktop browser is no problem, I am confirming using other smartphone
Brent Hoover
@zenweasel
May 17 2017 09:58
@llawcy Can you visit https://hello.reactioncommerce.com/
@vigyano To be honest, I just brought those changes in and I haven’t had a chance to really digest them yet
Vigy
@vigyano
May 17 2017 10:01
I am trying to upgrade my custom layout to work with v1.2.0 and the existing custom plugin layout doesn't fit in.
ok
Brent Hoover
@zenweasel
May 17 2017 10:04
I believe you should still be able to mix and match Blaze template and React components but I am not 100% sure how that works yet
Vigy
@vigyano
May 17 2017 11:08
ok, when you try can you update the example plugin so that I can use the same format.
Wijnand Karsens
@WwoeSsi
May 17 2017 11:15
Hi everyone. I am very curious about Reaction! I like NodeJS and Mongo and am starting to use it and learn the language. I have ghost and nodeBB. I am planning to create small webshops with one or a few products per webshop, and like to automate as much as possible about the ordering process. Do you think Reaction is a good platform to go for?
Daniel Honig
@dhonig
May 17 2017 12:23
@Wijnand definitely.
Especially if you have a custom ordering process
Wijnand Karsens
@WwoeSsi
May 17 2017 12:24
Awesome @dhonig ! I don't know, I am new to eCommerce. I also like to get into dropshipping with multiple vendors.
Maybe it's better to discuss this in the forum, so I made a topic :) https://forums.reactioncommerce.com/t/one-product-webshop/386
vipul08
@vipul08
May 17 2017 13:10
Hi.
I want to save the data inserted in the database permanently
Right now if delete the local folder in the .meteor folder then all our changes are lost. What is the way to save it permanently
vipul08
@vipul08
May 17 2017 13:33
@zenweasel hi Brent
Can you share the git hub code for hello.reactioncommerce.com. so that I can have more clarity
Aaron Judd
@aaronjudd
May 17 2017 14:50
@vipul08 hello. runs the development branch continously deployed on successful build from the reactioncommerce:prequel docker image.
@vipul08 we’ve got a new room specifically to discuss components development: https://gitter.im/reactioncommerce/components

General new information about our project planning and chat rooms:

Projects Rooms

Reaction has several project rooms for discussing features and planning.

Name Leads Gitter Channel Schedule
Connectors, Catalog @aaronjudd @jshimko reactioncommerce/catalog Every 2 weeks on Wednesday 2PM Pacific
Core @aaronjudd @jshimko reactioncommerce/core Every 2 weeks on Wednesday 2PM Pacific
Components @mikemurray @kieckhafer reactioncommerce/components Every 2 weeks on Tuesday 3PM Pacific
Deployment @jshimko reactioncommerce/deployment Every 2 weeks on Thursday 10AM Eastern
Design @rymorgan reactioncommerce/design Every 2 weeks on Wednesday 3PM Pacific
Documentation @sophiehe reactioncommerce/documentation Monthly on the Fourth Tuesday 3PM Pacific
Marketplace @spencern reactioncommerce/marketplace Every 2 weeks on Wednesday 7AM Pacific
Plugins @zenweasel reactioncommerce/plugins Every 2 weeks on Tuesday 1 PM Pacific

The main Reaction room is a good place for general questions and community discussions.

Chat channels and meetings are open to all.

If you like what we're working on, please star Reaction .

Daniel Honig
@dhonig
May 17 2017 15:14
@curranabell wondering why you have ./custom/material-theme in source control
the root should really just be ./material-theme
sean
@niceSpriteSW_twitter
May 17 2017 15:48
has anyone successfully run docker build on a local reaction app with mac OS ?
Aaron Judd
@aaronjudd
May 17 2017 15:56
there’s an issue with Sierra right now, we’re also having the issue, and are trying to debug (we think this is a Meteor core build issue)
I just re-opened #1946, if you can add to that issue it’d be great - to make sure you’re experiencing the same thing.
sean
@niceSpriteSW_twitter
May 17 2017 16:03
I'm running El Captain, I get a similar error but not the same. (the last line is the same):
Error: EINVAL: invalid argument, readlink '/opt/reaction/src/node_modules/.bin/bunyan'
    at Error (native)
    at Object.fs.readlinkSync (fs.js:857:18)
    at Object.realpathSync (fs.js:1457:25)
    at Object.wrapper [as realpath] (/tools/fs/files.js:1586:35)
    at getExternalPath (/tools/isobuild/builder.js:482:30)
    at /tools/isobuild/builder.js:511:32
    at Array.forEach (native)
    at walk (/tools/isobuild/builder.js:464:34)
    at /tools/isobuild/builder.js:556:11
    at Array.forEach (native)
    at walk (/tools/isobuild/builder.js:464:34)
    at Builder.copyDirectory (/tools/isobuild/builder.js:594:5)
    at /tools/isobuild/bundler.js:2061:17
    at Function._.each._.forEach (/root/.meteor/packages/meteor-tool/.1.4.4_2.1nk6s1r++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/underscore/underscore.js:87:22)
    at JsImage.write (/tools/isobuild/bundler.js:2020:7)
    at ServerTarget.write (/tools/isobuild/bundler.js:2289:13)
    at /tools/isobuild/bundler.js:2384:30
    at /tools/isobuild/bundler.js:2517:9
    at Array.forEach (native)
    at /tools/isobuild/bundler.js:2507:26
    at /tools/isobuild/bundler.js:2848:22
    at /tools/utils/buildmessage.js:271:13
    at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
    at /tools/utils/buildmessage.js:264:29
    at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
    at /tools/utils/buildmessage.js:262:18
    at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
    at /tools/utils/buildmessage.js:253:23
    at [object Object]._.extend.withValue (/tools/utils/fiber-helpers.js:89:14)
    at Object.capture (/tools/utils/buildmessage.js:252:19)
    at bundle (/tools/isobuild/bundler.js:2681:31)
    at /tools/isobuild/bundler.js:2628:32
    at Object.withCache (/tools/fs/files.js:1652:12)
    at Object.exports.bundle (/tools/isobuild/bundler.js:2628:16)
    at buildCommand (/tools/cli/commands.js:949:30)
    at Command.func (/tools/cli/commands.js:824:12)
    at /tools/cli/main.js:1483:23
is this worth adding ?
Anthony Young
@ayoungh
May 17 2017 16:29
Does anyone else have issues with the documentation pages loading? or maybe its just me? https://docs.reactioncommerce.com/developer/tutorial/plugin-layouts-3
Daniel Honig
@dhonig
May 17 2017 16:29
yeah
@ayoungh I frequently have to go back and click again before accessing the conent
Anthony Young
@ayoungh
May 17 2017 16:30
ok thanks @dhonig
Daniel Honig
@dhonig
May 17 2017 17:48
@aaronjudd the obvious omission for the above channels was #support
or maybe that was thought of and decided against in favor of very specific topics so that channels sponsors could better interact
Aaron Judd
@aaronjudd
May 17 2017 17:48
lol, yeah maybe ;-)
Daniel Honig
@dhonig
May 17 2017 17:49
lets see how it goes and we can go from there
inspect and adapt
Daniel Honig
@dhonig
May 17 2017 18:58
So @vipul08 have a look
you'll find all the entries that correspond to each packages
registry entries
includign layouts
autoenable etc
the registry consults this data when reaction bootstraps
I haven't read all the code for the registry yet
but its on my todos
layouts/etc are shared with the client when loading and used to assemble the client app
but they are stored in Mongo
when you change the registy you need to delete the entries that correspond to your plugin
or run reaction reset
vipul08
@vipul08
May 17 2017 19:00
@dhonig ok
Daniel Honig
@dhonig
May 17 2017 19:00
You can query the Packages collection by name to find your plugin and inspect its settings
you should be able to change them directly in mongo and see the changes take place after restart as well
I think you had a question about where settings are stored earlier
I hope this helps
vipul08
@vipul08
May 17 2017 19:01
@dhonig yeah upto certain extent
@dhonig One more question
Daniel Honig
@dhonig
May 17 2017 19:01
yeah its not absolute
sure
vipul08
@vipul08
May 17 2017 19:02
Let's say I have to show the data dynamically into my website
without login
I know we have an option to manually add the data
but it will be a lengthy procedure some times
so how can I save the entries in the database
permanently
btekbtek
@btekbtek
May 17 2017 20:30
hi
is there any plugin to integrate ebay and amazon with reaction
?
Brent Hoover
@zenweasel
May 17 2017 22:07
@vipul08 What you want to do is save your data as “fixtures”. It’s explained here: https://docs.reactioncommerce.com/reaction-docs/development/plugin-fixtures-5
@btekbtek There currently is not. You might want to try our “connectors” channel to see if anybody has started anything like that