These are chat archives for reactioncommerce/reaction

20th
Mar 2017
Jinpeng LV
@gepolv
Mar 20 2017 03:33
@mikeumus That is a known issue. My solution is to change "INDEX_OPTIONS" from "coreProductGridWorkflow" to "coreWorkflow" in "reaction/client/config/defaults.js". Then it works smoothly.
Michael Duane Mooring
@mikeumus
Mar 20 2017 03:34
Hum, good tip @gepolv thanks :smiley:
Looks like they're working on changing INDEX_OPTIONS here in reactioncommerce/reaction#2003
You can also customize the new product detail page with custom components this way thanks to @mikemurray : https://docs.reactioncommerce.com/reaction-docs/master/reaction-product-detail
Brent Hoover
@zenweasel
Mar 20 2017 06:41
He actually didn’t mention anything about overriding a template
@ivanthemeh If you can’t find the notFound template, you have a build problem, since that’s the built in 404 template
Brent Hoover
@zenweasel
Mar 20 2017 06:53
@vigyano The change I made was to add a variant to the product “Onesie” that showed as sold out. I believe we made a change to the structure of the product such that you need to have an variant in order to sell the product and that variant is where it’s getting the inventory from (since top-level products don’t have inventory). Not sure at what point this change was made.
agnesv2
@agnesv2
Mar 20 2017 09:16

Hi!

I have a few questions.

First, is it normal that doing 'reaction run' takes about 5 minutes to get the app actually running and a lot longer (over 20 minutes last time) if trying to run after resetting? And is there any way to speed up this process? Speed of the internet connection should not be an issue in my case.

Also, it's a bit unclear to me, if when creating my own plugin I should reset reaction every time I change any of the files in my custom plugin, or should reaction be reset only when the register.js is edited?

Lastly, I tried to follow the plugin creation tutorial in the docs, but ended up seeing the "Oops! This page was not found." every time at some point. I'm sure it's my own fault, but have no clue what I'm doing wrong. Is there a likely mistake I'm making when following the tutorial or could it be any number of things and I should just try again from the start?

Brent Hoover
@zenweasel
Mar 20 2017 09:18
well to your first question first, no it should not take that long. Starting it after a reset here takes about 5 minutes. Starting it without resetting takes about 2 minutes
Secondly, you shouldn’t need to reset unless you are changing something that needs to overwrite another record in the db. The registry is the main thing that would normally need to reset for. All other changes e.g, to templates, etc. do not require a reset
You shouldn’t need to stop the app except when you need to reset normally
Lastly, try not setting INDEX_OPTIONS or DEFAULT_TEMPLATE at all
agnesv2
@agnesv2
Mar 20 2017 09:23
Many thanks!
Loan Laux
@loanlaux
Mar 20 2017 11:27
Screen Shot 2017-03-20 at 12.23.17.png
Is there a way to tell Reaction not to compile default-theme's LESS code? I'd like to start my theme completely from scratch, but not importing default-theme's main.less in my theme's style doesn't solve the problem. As you can see, with a totally new template set as the index page, default-theme's styling is still applied
Thanks in advance for your input :)
Matt
@mattwclosson_twitter
Mar 20 2017 16:06
Hello I was wondering if I could use this code to build a different application?
Vigy
@vigyano
Mar 20 2017 17:18
@zenweasel : I see, I am re-adding all the products again and see if I can get out of "sold out" issue. When I restarted reaction, I get this infinite log error. Any idea?
...
17:17:16.147Z DEBUG Reaction: No shopId, waiting one second...
17:17:17.223Z DEBUG Reaction: No shopId, waiting one second...
17:17:18.299Z DEBUG Reaction: No shopId, waiting one second...
17:17:19.378Z DEBUG Reaction: No shopId, waiting one second...
...
But the reaction shop data is already exists, so shouldn't the reaction pick up the existing shop in database?
Ivanthadev
@ivanthemeh
Mar 20 2017 17:48
anyone available for some help?
Spencer Norman
@spencern
Mar 20 2017 17:56
@ivanthemeh what’s going on?
@vigyano - i’ve seen this issue before when the domains listed in the Shop didn’t match the domain of the site
Ivanthadev
@ivanthemeh
Mar 20 2017 18:05
@spencern I'm trying to figure out how set it up so that shipping costs are added with each additional item.
Spencer Norman
@spencern
Mar 20 2017 18:05
So addl shipping costs for each item?
Spencer Norman
@spencern
Mar 20 2017 18:10

AFAIK there’s not a built-in way to do this with a stock shipping method currently.

If you take a look at the cart/setShipmentMethod you’ll see that it takes a cart._id and a shipping method Object - an idea would be to create the shipping method object on the fly and pass it in to setShipmentMethod every time an item is added to or removed from the cart.

Ivanthadev
@ivanthemeh
Mar 20 2017 19:08
@spencern ok cool thanks , quick question.. how do I remove the store name from the URL? I only have one store.
Vigy
@vigyano
Mar 20 2017 19:11
@spencern - thanks for the pointer. I changed the domain in shop but I get this error
19:01:04.846Z DEBUG Reaction: loadSettings reaction.json not loaded.
  Error: Unknown asset: settings/reaction.json
      at Object.Future.wait (/opt/reaction/dist/bundle/programs/server/node_modules/fibers/future.js:446:16)
      at getAsset (/opt/reaction/dist/bundle/programs/server/boot.js:241:20)
      at Object.Assets.getText (/opt/reaction/dist/bundle/programs/server/boot.js:246:16)
      at Object.module.export.exports.default.loadPackages (server/api/core/core.js:374:38)
      at Object.module.export.exports.default.init (server/api/core/core.js:30:10)
      at module.export.exports.default (server/startup/init.js:8:12)
      at module.export.exports.default (server/startup/index.js:18:3)
      at server/main.js:6:3
      at Function.time (/opt/reaction/dist/bundle/programs/server/profile.js:309:28)
      at /opt/reaction/dist/bundle/programs/server/boot.js:312:13
      at /opt/reaction/dist/bundle/programs/server/boot.js:353:5
      at Function.run (/opt/reaction/dist/bundle/programs/server/profile.js:510:12)
      at /opt/reaction/dist/bundle/programs/server/boot.js:351:11
      - - - - -
      at getAsset (/opt/reaction/dist/bundle/programs/server/boot.js:235:19)
      at Object.Assets.getText (/opt/reaction/dist/bundle/programs/server/boot.js:246:16)
      at Object.module.export.exports.default.loadPackages (server/api/core/core.js:374:38)
      at Object.module.export.exports.default.init (server/api/core/core.js:30:10)
      at module.export.exports.default (server/startup/init.js:8:12)
      at module.export.exports.default (server/startup/index.js:18:3)
      at server/main.js:6:3
      at Function.time (/opt/reaction/dist/bundle/programs/server/profile.js:309:28)
      at /opt/reaction/dist/bundle/programs/server/boot.js:312:13
      at /opt/reaction/dist/bundle/programs/server/boot.js:353:5
      at Function.run (/opt/reaction/dist/bundle/programs/server/profile.js:510:12)
      at /opt/reaction/dist/bundle/programs/server/boot.js:351:11
19:01:04.847Z  INFO Reaction: Loaded "/private/settings/reaction.json" for registry fixture import
19:01:04.858Z DEBUG Reaction: Importing Translations from de.json
...
19:01:07.179Z DEBUG Reaction: Initializing <blank site> reaction-accounts
19:01:07.340Z DEBUG Reaction: Importing Translations from hu.json
going to rebuild the docker and see
Michael Duane Mooring
@mikeumus
Mar 20 2017 23:39
I see the v1.0.0 tag is out!!!! Yay!!!