These are chat archives for reactioncommerce/reaction

6th
Sep 2018
lakhvir998
@lakhvir998
Sep 06 2018 04:09
i am following theme customization tutrial @zenweasel . should i add shop for that?
when i run application with docker it automatically close reaction meteor container which runs on port 3000 by default
very slow response :(
Brent Hoover
@zenweasel
Sep 06 2018 04:15
A shop is added automatically during startup
lakhvir998
@lakhvir998
Sep 06 2018 04:15
@zenweasel when i run application with docker it automatically close reaction meteor container which runs on port 3000 by default
Brent Hoover
@zenweasel
Sep 06 2018 04:17
What does “automatically close reaction meteor container” mean?
lakhvir998
@lakhvir998
Sep 06 2018 04:20
THE DOCKER CONTAINER CLOSED AFTER RUN DOCKER COMPOSE UP -D
and please can you tell me about this Error: Cannot find module '/server/api'
Brent Hoover
@zenweasel
Sep 06 2018 04:22
Can you explain to me what you are trying to do? Which theme customization tutorial are you working on?
And what version of Reaction?
lakhvir998
@lakhvir998
Sep 06 2018 04:23
i am using reaction example theme
Brent Hoover
@zenweasel
Sep 06 2018 04:23
That’s the swag-shop plugin or the example-plugin?
lakhvir998
@lakhvir998
Sep 06 2018 04:23
reaction version 1.15
Brent Hoover
@zenweasel
Sep 06 2018 04:25
Ah I see. I didn’t even realize that was still there
And what exactly is the problem you are having? Are you getting an error or?
lakhvir998
@lakhvir998
Sep 06 2018 04:27
yes Error: Cannot find module '/server/api'
Brent Hoover
@zenweasel
Sep 06 2018 04:27
Have you made any modifications to the code or added any plugins, etc?
That error is because you are trying to import something from where it no longer exists
lakhvir998
@lakhvir998
Sep 06 2018 04:34
i told you i am trying to customize theme
import { Reaction } from "/server/api"; error occurs because of this line
Brent Hoover
@zenweasel
Sep 06 2018 04:36
yeah, you just need to change that import to be the current location. Looking that up now
change it to import Reaction from "/imports/plugins/core/core/server/Reaction”;
lakhvir998
@lakhvir998
Sep 06 2018 04:50
okay thanx
will let you now if worked
lakhvir998
@lakhvir998
Sep 06 2018 06:31
can you provide the proper guideline to build a theme for reaction
Brent Hoover
@zenweasel
Sep 06 2018 06:40
I think the use of the word “theme” is probably confusing to some people.
You can add styles and change the style of anything you want, but we don’t have “themeing” engine and proably never will
if you are starting with Reaction from scratch, you really should be looking at the starter-kit. Using the Meteor app as the main way to do development is going to be deprecated soon
Nitish Goel
@nitishgoelkbihm
Sep 06 2018 07:08

Hello Guys,

I want to know that how to override the ui-search plugin with my custom plugin?

Thanks In Advance

lakhvir998
@lakhvir998
Sep 06 2018 07:20
i got another error whle adding custom layout Error: Cannot find module '/server/api'
@zenweasel
Brent Hoover
@zenweasel
Sep 06 2018 07:31
@nitishgoelkbihm I would suggest just replacing that entire plugin with your own implementation
@lakhvir998 Yeah, whever you see that import you will need to change it
Nitish Goel
@nitishgoelkbihm
Sep 06 2018 07:34
@zenweasel but what if I don't want to edit any existing plugin. I just want to create new plugin and override the existing plugin. Please guide.
Brent Hoover
@zenweasel
Sep 06 2018 07:35
unfortunately there no real way to “disable” that plug or a provides: search-ui
You can sort of disable a plugin by just renaming it with a period at the beginning.
rohit-elevar
@rohit-elevar
Sep 06 2018 08:55
Is there anything I can do to select just 2/3 orders at a time to mark them as shipped?
The only options right now seem to be either bulk select all or select one
rohit-elevar
@rohit-elevar
Sep 06 2018 09:28
Can the shipping workflow stages order be changed? More specifically, is there an issue if the "picked" step in the shipping workflow comes after "shipped".
rohit-elevar
@rohit-elevar
Sep 06 2018 12:28
Is the "@reactioncommerce/job-queue" still being used? Also, is there any documentation to help out?
alnikitich
@alnikitich
Sep 06 2018 13:40
Hello. What a best way for create left menu and inject chart to reaction ?
Janus Reith
@janus-reith
Sep 06 2018 16:07
@alnikitich Hope this won't sound too rude, but what kind of help were you expecting when asking a question this way?
Janus Reith
@janus-reith
Sep 06 2018 16:16
@rohit-elevar It is still in use, and referenced in the latest package.json
Did a quick grep -rnw through the project, the module is used by the job-collection plugin in core, which in turn is used for sending emails, fetching exchange rates and the new sitemap plugin, [...]
There is only a short reference in the docs: https://docs.reactioncommerce.com/docs/jobcontrol, but you should probably be able to use it by taking a look at the plugins I listed above.
rohit-elevar
@rohit-elevar
Sep 06 2018 18:22
@janus-reith Thanks a lot for that! I took a look at those packages, and was able to get the functionality I need ^_^
Any idea about my shipping workflow question?
Janus Reith
@janus-reith
Sep 06 2018 21:07
You're welcome. About the shipping Workflow, Im not sure what exactly you'd want to change.
Is it about the buttons In the orders dashboard?
This could maybe just be a a frontend Thing that could be changed easily, but I didnt test that. My approach to test that would be:
Create two orders, one that has both Workflow steps done, and one that doesn't. Then, take your favourite mongoDB GUI (Robomongo is free and works well) and take a look at the finished order.
Janus Reith
@janus-reith
Sep 06 2018 21:13
Copy over the necessary workflow field value that would actually come after the other to your other order and see how both Front- and Backend behave.
If that works properly, try to implement/change the availability of that Button in the Dashboard Frontend code, you will probably notice If more Meteor Server calls are involved that need to be adapted during the process.
Brent Hoover
@zenweasel
Sep 06 2018 21:26
tbh I don’t think the workflow is very flexible right now, so I think you will need to dip into core code to change it. We’ve talked a lot about how to make this configurable but not made any actual progress.