These are chat archives for reactioncommerce/reaction

1st
Feb 2018
Scott Betzel
@Snaze
Feb 01 2018 00:35
hey all - does anyone know if it's possible to use webpack with meteor / reaction commerce?
Brent Hoover
@zenweasel
Feb 01 2018 00:35
It is not
At least, not without quite a bit of effort
Scott Betzel
@Snaze
Feb 01 2018 00:36
ok cool deal... thanks brent
Brent Hoover
@zenweasel
Feb 01 2018 00:36
:+1:
Scott Betzel
@Snaze
Feb 01 2018 00:37
ok good to know.... thanks man :+1:
Sebastian Alvarado
@sebasalvarado
Feb 01 2018 03:35
i'm tryiing to start locally and keep getting Unexpected mongo exit code 14. Restarting.
Any ideas on how to fix this?
I don't have mongo running on my machine
I'd like to point to a remote mongo instance that I have hosted, to avoid starting mongo all the time.
Brent Hoover
@zenweasel
Feb 01 2018 03:36
When in development Mongo is included in the Meteor install. I’ve seen that error a few times lately and usually just have to hard stop and restart
Sebastian Alvarado
@sebasalvarado
Feb 01 2018 03:37
I've tried stopping and running reaction run again. Still doesn't work
Brent Hoover
@zenweasel
Feb 01 2018 03:38
Maybe try reaction reset -n && reaction?
Sebastian Alvarado
@sebasalvarado
Feb 01 2018 03:43
@zenweasel It works! It would be handy if we could just point to a remote database.
Brent Hoover
@zenweasel
Feb 01 2018 03:44
yeah, just set or pass in a MONGO_URL variable
Sebastian Alvarado
@sebasalvarado
Feb 01 2018 04:02
Thanks
I am trying to follow the tutorial to create a plugin that creates a custom landing page and I can't load anything.
This is how my register.js looks like
import { Reaction } from "/server/api";

Reaction.registerPackage({
  label: "QwikCommerce Core Layout",
  name: "qwikcommerce",
  icon: "fa fa-cart-plus",
  autoEnable: true,
  layout: [{
    layout: "coreLayoutQwikCommerce",
    workflow: "coreProductGridWorkflow",
    collection: "Products",
    theme: "default",
    enabled: true,
    priority: 1,
    structure: {
      template: "productsLanding", // Change this template for our own custom way of displaying products
      layoutHeader: "NavBar",
      layoutFooter: "Footer",
      notFound: "productNotFound",
      dashboardHeader: "",
      dashboardControls: "dashboardControls",
      dashboardHeaderControls: "",
      adminControlsFooter: "adminControlsFooter"
    }
  }]
});
Do you see anything particularly wrong? I have checked https://github.com/reactioncommerce/reaction-example-plugin/ but I can't see anything different beside the name of the plugin
Brent Hoover
@zenweasel
Feb 01 2018 04:05
when you say “you can’t load anything”, what exactly is happening?
Sebastian Alvarado
@sebasalvarado
Feb 01 2018 04:10
My page is blank basically
I can't even see the main page
Brent Hoover
@zenweasel
Feb 01 2018 04:11
You’ve changed the references everywhere to use coreLayoutQwikCommerce?
Sebastian Alvarado
@sebasalvarado
Feb 01 2018 04:15
import { Session } from "meteor/session";
import { Logger } from "/client/api";

Session.set("DEFAULT_LAYOUT", "coreLayoutQwikCommerce");
Logger.info("setting DEFAULT_LAYOUT");
this is default.js
Brent Hoover
@zenweasel
Feb 01 2018 04:15
There’s also a reference in the init.js
Sebastian Alvarado
@sebasalvarado
Feb 01 2018 04:15
is that what you mean by everywhere?
In /client/init.js?
Brent Hoover
@zenweasel
Feb 01 2018 04:17
there should be one in /server/init.js
Sebastian Alvarado
@sebasalvarado
Feb 01 2018 04:20
I see it, let me try that. However, that is not specified in the tutorial.
Brent Hoover
@zenweasel
Feb 01 2018 04:20
It is, but maybe not at the point you're are at
Now, run reaction reset to render the site with the new register.js settings.

When the site is rendered now, it should be rendering the home page with the productsLanding template, rather than the default products.
I though that it should render by now
Brent Hoover
@zenweasel
Feb 01 2018 04:26
Yes, you’re right. It should. I was trying to troubleshoot your problem
I don’t see any problem with your file
You have the productsLanding template created and imported?
Sebastian Alvarado
@sebasalvarado
Feb 01 2018 04:31
Yes
// Layouts
import "./layouts/core";

// products template
import "./products/productsLanding.html";
import "./products/productsLanding";
this is /client/templates/index.js
<template name="productsLanding">
  <div>
    {{>React component=component}}
  </div>
</template>

<template name="productListQwikCommerce">
  <div class="row">
    <div>
      {{>React component=component}}
    </div>
    {{#if hasPermission "createProduct"}}
      {{>productList}}
    {{/if}}
  </div>
</template>
this is /client/templates/products/productsLanding.html
import { $ } from "meteor/jquery";
import { Template } from "meteor/templating";
import { Reaction } from "/client/api";
import ProductsContainer from "/imports/plugins/included/product-variant/containers/productsContainer";

Template.productsLanding.helpers({
  component() {
    return ProductsContainer;
  }
});

/**
 * products events
 */

Template.productsLanding.events({
  "click #productListView": function () {
    $(".product-grid").hide();
    return $(".product-list").show();
  },
  "click #productGridView": function () {
    $(".product-list").hide();
    return $(".product-grid").show();
  },
  "click .product-list-item": function () {
    // go to new product
    Reaction.Router.go("product", {
      handle: this._id
    });
  }
});
/client/templates/products/productsLanding.js
Brent Hoover
@zenweasel
Feb 01 2018 04:34
If you pull down the reaction-example-plugin does that work correctly for you?
Sebastian Alvarado
@sebasalvarado
Feb 01 2018 04:57
no it doesn't
I even deleted my plugin foler
Brent Hoover
@zenweasel
Feb 01 2018 05:02
Hmmm, weird.
Let me pull that down in a little bit and see if I can tell what’s wrong
Sebastian Alvarado
@sebasalvarado
Feb 01 2018 05:05
Thanls
Sebastian Alvarado
@sebasalvarado
Feb 01 2018 05:10
04:56:15.677Z  INFO Reaction: ::: Modifying checkout workflow step 'Review'
04:56:15.682Z  INFO Reaction: ::: Add permission for new route 'About us' for guest users.
04:56:15.698Z  INFO Reaction: ::: changing all layouts to coreLayoutBeesknees
04:56:15.864Z  INFO Reaction: ::: Set footer for product detail page workflow
04:56:15.885Z  INFO Reaction: ::: Add location coordinates to simple product schema
04:56:15.894Z  INFO Reaction: ::: Set location to product 'Basic Reaction product'
04:56:15.953Z  INFO Reaction: ::: changing layouts of product detail page
04:56:16.033Z  INFO Reaction: Reaction initialization finished.
I even get this in the logs
Sebastian Alvarado
@sebasalvarado
Feb 01 2018 05:26
Which makes me think that BeesKnees should be working
aniwebcastle
@aniwebcastle
Feb 01 2018 05:59
hello my app is creashing
image.png
Don't know why, is there any update in reaction?
Brent Hoover
@zenweasel
Feb 01 2018 06:02
Nothing that would cause that for sure
aniwebcastle
@aniwebcastle
Feb 01 2018 06:03
yesterday it was running fine, suddenly today, when i started running command, it is throwing error
Brent Hoover
@zenweasel
Feb 01 2018 06:03
I would look at the last few changes you have made
aniwebcastle
@aniwebcastle
Feb 01 2018 06:03
image.png
Brent Hoover
@zenweasel
Feb 01 2018 06:04
Yeah, that looks like a syntax error somewhere
your screenshot cut off the critical part though
aniwebcastle
@aniwebcastle
Feb 01 2018 06:05
image.png
image.png
image.png
hrath2015
@hrath2015
Feb 01 2018 06:07
@aniwebcastle hope you have not updated to meteor 1.6.1 accidentally or otherwise.
Brent Hoover
@zenweasel
Feb 01 2018 06:07
What’s below “Your application has errors. Waiting for file change”?
Yeah, that too
aniwebcastle
@aniwebcastle
Feb 01 2018 06:11

While processing files with ecmascript (for target os.windows.x86_64):

C:\Users\DEV\AppData\Local.meteor\packages\ecmascript\0.10.0\plugin.compile-ecmascript.os\npm\node_modules\meteor\babel-compiler\node_modules\@babel\traverse\lib\scope\index.js:921:13:
Cannot read property 'bindings' of null
at Scope.moveBindingTo

Brent Hoover
@zenweasel
Feb 01 2018 06:12
Did you update to 1.6.1 by any chance?
aniwebcastle
@aniwebcastle
Feb 01 2018 06:13
I think so, but is there any option to check?
Brent Hoover
@zenweasel
Feb 01 2018 06:14
You need to look in .meteor/release
aniwebcastle
@aniwebcastle
Feb 01 2018 06:14
yes
Brent Hoover
@zenweasel
Feb 01 2018 06:14
Yeah, so you shouldn’t do that. That’s your problem probably
Generally we have the most current version of Meteor that we have tested
aniwebcastle
@aniwebcastle
Feb 01 2018 06:15
okay, is there option to revert it back?
Brent Hoover
@zenweasel
Feb 01 2018 06:16
git reset HEAD .meteor/release should do it I think
Brent Hoover
@zenweasel
Feb 01 2018 06:23
@sebasalvarado So I just dropped the example plugin into a fresh clone and it seems to be working ok
aniwebcastle
@aniwebcastle
Feb 01 2018 06:25
meteor Current version: 1.6 , I am downgrading it to 1.5.2 and let's see
Brent Hoover
@zenweasel
Feb 01 2018 06:26
No, don’t do that
You need to use the version included in the release file and only that one
you may want to do rm -rf node_modules && meteor npm install as well
aniwebcastle
@aniwebcastle
Feb 01 2018 06:38
Now below one is giving

Meteor 1.6.1 is available. Update this project with 'meteor update'.
=> Errors prevented startup:

While selecting package versions:
error: Potentially incompatible change required to top-level dependency: cfs:standard-packages 0.5.9, was
0.5.10.
Constraints on package "cfs:standard-packages":

To allow potentially incompatible changes to top-level dependencies, you must pass --allow-incompatible-update
on the command line.

=> Your application has errors. Waiting for file change.

Brent Hoover
@zenweasel
Feb 01 2018 06:38
Did you run the command above I gave you?
You may need to do git reset HEAD .meteor/versions and git reset HEAD .meteor/packages
aniwebcastle
@aniwebcastle
Feb 01 2018 06:45
okay, I am trying it
It is working with below command :)
meteor --allow-incompatible-update
Brent Hoover
@zenweasel
Feb 01 2018 06:48
Hmmm, ok
aniwebcastle
@aniwebcastle
Feb 01 2018 06:48
@zenweasel thanks for your help
Brent Hoover
@zenweasel
Feb 01 2018 06:49
:+1:
Prashant Singh
@origin22
Feb 01 2018 07:17
Hi I cant view any Product Images when i publish the product
can anyone help>
?
Michael Jenny
@prinzdezibel
Feb 01 2018 07:29
@origin22 but the product itself is visible? Can you see the product picture in admin backend?
aniwebcastle
@aniwebcastle
Feb 01 2018 07:55
@zenweasel I want to add account and checkout in my custom theme. Can you tell me how to do that?
image.png
in the circle part @prinzdezibel
Michael Jenny
@prinzdezibel
Feb 01 2018 07:58
@aniwebcastle I'd go from stock reaction and then modify it step-by-step. that way you would have login and cart components out-of-the-box
aniwebcastle
@aniwebcastle
Feb 01 2018 08:00
stock reaction --please give me an link of how to integrate it with my custom theme @prinzdezibel
Brent Hoover
@zenweasel
Feb 01 2018 08:01
Most or all of what you need to know should be covered in the tutorials
Michael Jenny
@prinzdezibel
Feb 01 2018 08:01
with stock reaction I meant the original reaction installation which you took as base when started with your work
Michael Jenny
@prinzdezibel
Feb 01 2018 08:02
in a plain reaction installation the header does contain everything you're looking for
Caleb B
@zikeji
Feb 01 2018 10:10
I'm not sure if this is another bug, or just the wrong implementation. I'm overriding the shipping step in the cart workflow to do my own picker. The way I'm doing so is as suggested in the docs, replacing the template value (default coreCheckoutShipping) with my own template in the registry.
It works without issue, as far as I can tell. However - alot of the core stuff use the workflow/revertCartWorkflow method with the default coreCheckoutShipping template name. The way it stores the workflow in the database, it means that this will method will fail.
So if you add an item to your cart, reaction will reset your shipping methods and revert you to pre-shipping in the workflow
But this sort of thing fails if you've changed the template from coreCheckoutShipping to your own.
Michael Jenny
@prinzdezibel
Feb 01 2018 10:46
@zikeji Does this mean that if a workflow step is calling Meteor.call("workflow/revertCartWorkflow", "coreCheckoutShippiing"), it does not work anymore?
probably you should ensure that your workflow step is still called "coreCheckoutShipping", even when it's rendering a differnt template. Because it's still dealing with shipping and you will want to have the default behaviour attached to it
e.g. if somebody add an item to the cart you want to reset the workflow to the shipping step, because it could affect shipping costs
if you don't do it that way, you'd have to overwrite all places from core where Meteor.call("workflow/revertCartWorkflow", "coreCheckoutShipping") is called and replace it with something like Meteor.call("workflow/revertCartWorkflow", "myCheckoutShipping") if you like to retain the existing behaviour
Harshal Yeole
@harshalyeole-tudip
Feb 01 2018 11:00
What is the use of ProductSearch collection when we have Products collection?
Michael Jenny
@prinzdezibel
Feb 01 2018 11:01
don't know
Harshal Yeole
@harshalyeole-tudip
Feb 01 2018 11:02
OK
aniwebcastle
@aniwebcastle
Feb 01 2018 11:11
@hrath2015 yes, It was solved
Patrick Newell
@pnewell4_twitter
Feb 01 2018 11:18
@harshalyeole-tudip just a guess here, but assuming my understanding is correct, Products isn't the complete set of Products, it is the first 20, or whatever we show on a grid page. ProductSearch, I would guess, is the set of products returned from a search, which may intersect with Products, but will not necessarily be completed contained within Products
(...also, I was assuming you were asking about client-side)
nevermind!
William Moss
@willmoss1000
Feb 01 2018 11:37
@prinzdezibel does your extension of the product schema using 'swagProduct' work - or have you updated it since on gitlab? I have copied it exactly and imported in the same way, but it's not extending the schema? It used to work for me when you were using export *, but that shouldn't make a difference. Only think of is that I'm using 1.6.3 - but that shouldn't make a difference
Caleb B
@zikeji
Feb 01 2018 11:40
@prinzdezibel Yes, that is the nature of my problem. The workflow step hasn't been renamed, only the template it points to has been changed. Unfortunately when the step changes it appears to use the template name as the step
Hmm.. If it's possible to pro grammatically change a template name perhaps I can dethrone the original template and put mine in it's place
Michael Jenny
@prinzdezibel
Feb 01 2018 11:43
@willmoss1000 Isn't it using export * any longer in index.js? I've linted that could lately, because eslint said it should not be exported because there's no default export in that file. But this should only affect the open PR in swag shop repo.
Caleb B
@zikeji
Feb 01 2018 11:44
Yeah. In the code itself it sets the workflow status to the template name, then uses the previous workflow status to add to the workflow set
imports/plugins/core/checkout/server/methods/workflow.js:175
Michael Jenny
@prinzdezibel
Feb 01 2018 11:46
@zikeji you can use the replaceComponent API to replace the existing with your template (hopefully it's converted to React already)
William Moss
@willmoss1000
Feb 01 2018 11:47
@prinzdezibel no longer using export * - just importing. I think it's not being exported anywhere oops - I'll put an export default at the bottom and see if that works. I see you've also removed the extension of productVariant - is there a reason for this? I could never get both extensions to work at the same time for some reason. Perhaps it doesn't behave when you try to extend the schema twice
Caleb B
@zikeji
Feb 01 2018 11:47
@prinzdezibel ah. I think I had assumed that the replaceComponent functionality only worked with individual components, not an entire template. But.. A component is just a template when you boil down to it.
William Moss
@willmoss1000
Feb 01 2018 11:47
so presumably your version on github isn't extending the schema
Michael Jenny
@prinzdezibel
Feb 01 2018 11:47
can you post me the linK?
nope, that still doesn't work - added export default ExtendedSchema;
Michael Jenny
@prinzdezibel
Feb 01 2018 11:50
@willmoss1000 where did you see the export *. I was talking about an export statement in index.js
Caleb B
@zikeji
Feb 01 2018 11:50
@prinzdezibel Wait. If it's a blaze template I'm going to assume that's a bad indicator as to your point of "hopefully it's converted to React already"
William Moss
@willmoss1000
Feb 01 2018 11:50
it used to be on index.ja
Michael Jenny
@prinzdezibel
Feb 01 2018 11:50
no, you wouldn't need to export default ExtendendSchema
William Moss
@willmoss1000
Feb 01 2018 11:51
ok, I can't understand why it doens't work then. It works on yours presumably?
Michael Jenny
@prinzdezibel
Feb 01 2018 11:51
As long as you call 'registerSchema' it's registered in a global object
try to put a console.log in that file and see if it's executed on startup
Caleb B
@zikeji
Feb 01 2018 11:52
Yeah, it isn't a react component
Michael Jenny
@prinzdezibel
Feb 01 2018 11:52
@zikeji that's bad
You may try to use Aldeed's https://github.com/aldeed/meteor-template-extension and replace it via Template.yourTemplate.replaces("shipping");
William Moss
@willmoss1000
Feb 01 2018 11:56
@prinzdezibel ok, so it's not executed. It's in the lib folder and imports are identical to yours the whole way?
Michael Jenny
@prinzdezibel
Feb 01 2018 11:57
you need an import "/lib/path-to-the-schema-file"; in your code
Caleb B
@zikeji
Feb 01 2018 11:57
NOTE: This simply swaps the render function. Helpers, callbacks, and events assigned to foo2 will not fire when {{> foo}} is used. Only the foo helpers, callbacks, and events are used.
:(
William Moss
@willmoss1000
Feb 01 2018 11:58
i'm importing the folders the whole way - do I just need to import lib then?
Michael Jenny
@prinzdezibel
Feb 01 2018 11:58
@zikeji there are helper functions to copy events and helpers over
Maybe you don't even need them
Caleb B
@zikeji
Feb 01 2018 11:59
Well, I definitely need helpers
I'm starting to realize why they had mentioned this entire workflow was going to get nuked
Michael Jenny
@prinzdezibel
Feb 01 2018 12:00
you can always copy them over into your own myTemplate.js
Michael Jenny
@prinzdezibel
Feb 01 2018 12:00
@willmoss1000 :thumbsup:
Caleb B
@zikeji
Feb 01 2018 12:01
well, not the problem is if I .replaces the original template, according to the description my own template's helpers, callbacks, events, etc. will be ignored since they aren't copied onto foo
Michael Jenny
@prinzdezibel
Feb 01 2018 12:03
@zikeji have you seen the helper methods, like Template.myTemplate.inheritsHelpersFrom("shipping")
?
@zikeji It's the other way round: The original template gets obsolete and yours is the new one
Caleb B
@zikeji
Feb 01 2018 12:06
According to that, it isn't the other way around? Where foo is the original, and foo2 is my replacement. If I do Template.foo2.replaces("foo") then my render function gets swapped with foo but my other stuff gets lost.
Now I could probably do that and then do Template.foo.inheritsHelpersFrom("foo2")
potentially
Michael Jenny
@prinzdezibel
Feb 01 2018 12:06
not sure actually
Caleb B
@zikeji
Feb 01 2018 12:07
First I need to figure out the proper way to add a dependency in a plugin
xD
MichaelF77
@MichaelF77
Feb 01 2018 12:21
after updating to latest version on Ubuntu I am not run reaction anymore, getting an error "App failed to start"
is there a log file someplace I can check?
MichaelF77
@MichaelF77
Feb 01 2018 12:29
nm please disregard
I found the root cause of the problem
Caleb B
@zikeji
Feb 01 2018 13:51
reactioncommerce/reaction#2052
What's the icebox?
Michael Jenny
@prinzdezibel
Feb 01 2018 14:04
@zikeji tickets that perish go there. this way they keep fresh
Caleb B
@zikeji
Feb 01 2018 14:10
seems like mutually exclusive states
oh well. I ran reaction update and now I get a blank screen (it won't load anything). Gotta troubleshoot this
Michael Jenny
@prinzdezibel
Feb 01 2018 14:11
@zikeji Honestly, I'm not sure. but I think it's for tickets whose priorities have changed. Or tickets that depend on others before ready-to-go
Check the browser console first
Caleb B
@zikeji
Feb 01 2018 14:13
both consoles are painfully void of any indication of an issue Dx
Michael Jenny
@prinzdezibel
Feb 01 2018 14:14
did you do a meteor npm i ?
Caleb B
@zikeji
Feb 01 2018 14:14
Is that necessary?
I also.. Omitted that reaction update created issues
Michael Jenny
@prinzdezibel
Feb 01 2018 14:15
not sure.
just to be sure :)
Caleb B
@zikeji
Feb 01 2018 14:15
so this is actually a reaction init - a completely separate instance, setup from scratch by reaction-cli
so I don't think meteor npm i would help but I'll try
Michael Jenny
@prinzdezibel
Feb 01 2018 14:15
no , then not
Caleb B
@zikeji
Feb 01 2018 14:16
interestingly enough the sockjs connection was active until I killed the server
weird
William Moss
@willmoss1000
Feb 01 2018 14:24
@prinzdezibel I believe the Router component you pointed me to change the shop route isn't registered - is there any other way I can edit it from my package? Otherwise I'll just have to copy it in every time I update?
Michael Jenny
@prinzdezibel
Feb 01 2018 14:25
@willmoss1000 which exactly?
Caleb B
@zikeji
Feb 01 2018 14:34
great. now after having done absolutely nothing it's giving me the same error as first one
Cannot read property 'bindings' of null at Scope.moveBindingTo
Michael Jenny
@prinzdezibel
Feb 01 2018 14:36
never heard. sorry
Daniel Honig
@dhonig
Feb 01 2018 15:27
I think a few others have posted a nice docker-compose for development in the past? Anyone have that handy? @joshuacox ?
I'm just getting really weird/slow behaviour on file changes with 1.7
00WhengWheng
@00WhengWheng
Feb 01 2018 15:28
Galaxy forces you to use their proprietary closed source Docker build....
So.... galaxy doesnt working right?
Jeremy Shimko
@jshimko
Feb 01 2018 15:29
Galaxy is likely to be a problem, yes.
00WhengWheng
@00WhengWheng
Feb 01 2018 15:31
best hosting provider?
Daniel Honig
@dhonig
Feb 01 2018 15:32
@00WhengWheng, ReactionCommerce....Of course! :)
Caleb B
@zikeji
Feb 01 2018 15:36
I'm still running into the blank screen, this is quite annoying :(
00WhengWheng
@00WhengWheng
Feb 01 2018 15:36
should you stop invite people to use galaxy and present it as best solution... :worried:
i lost so many hours
Jeremy Shimko
@jshimko
Feb 01 2018 15:39
You can host anywhere that can run a Docker container for you really.
Caleb B
@zikeji
Feb 01 2018 15:40
I'm even getting the "Download react devtools" message but it is still completely blank
Caleb B
@zikeji
Feb 01 2018 15:45
Nevermind, ignore me - I figured it out :P
I'm using Webstorm with a reaction run task, the task doesn't perform all the stuff reaction run does
_<
Daniel Honig
@dhonig
Feb 01 2018 17:10
@zikeji I've never gotten interactive debug working, have you?
Caleb B
@zikeji
Feb 01 2018 18:11
@dhonig No. It's just convenient to run it from there.
Caleb B
@zikeji
Feb 01 2018 18:25
Anyone know what a package in the imports/plugins/custom directory wouldn't be registered?
I have the register.js but it's not picking it up
William Moss
@willmoss1000
Feb 01 2018 18:33
@zikeji I use this for reference: https://github.com/reactioncommerce/reaction-swag-shop . I think you might also need to do a reaction reset
Daniel Honig
@dhonig
Feb 01 2018 18:39
Yes reaction reset should do it
Caleb B
@zikeji
Feb 01 2018 18:41
reaction reset was the first thing I did :(
But, my registry.js doesn't have the registry: [] line. It isn't stipulated as being a requirement, but I'm going to give it a try.
Caleb B
@zikeji
Feb 01 2018 18:54
oh

using meteor instead of reaction to run it causes the issue. Duh
wfhio
@wfhio
Feb 01 2018 22:03
probably being thick here, but i'm testing the sample data w/ free shipping option + discount code and when i complete all 5 steps on the checkout nothing seems to indicate that the order is ready to be submit and i'm not seeing any errors either on page or in the console
Brent Hoover
@zenweasel
Feb 01 2018 22:04
what exactly are you seeing? Can you drop in a screenshot?
wfhio
@wfhio
Feb 01 2018 22:07
@zenweasel the 5 steps at the top are all coloured in as in to indicate they're done, but no button etc. pops up to say submit or whatever is expected ...
Brent Hoover
@zenweasel
Feb 01 2018 22:07
Do you have a payment provider enabled?
wfhio
@wfhio
Feb 01 2018 22:08
@zenweasel well, just discount code and i succesfully supplied a code
Brent Hoover
@zenweasel
Feb 01 2018 22:08
I don’t think you can complete an order with just a discount code
wfhio
@wfhio
Feb 01 2018 22:09
ah, that could be it ... so i'd have to configure stripe, etc. ?
is there a way for me to test this without CC card integration?
Brent Hoover
@zenweasel
Feb 01 2018 22:09
Choose the “Example Provider”, that’s what that is for
I guess it would be logical that if you had a discount for the full amount to not show a payment panel and continue but we have not implemented that yet
wfhio
@wfhio
Feb 01 2018 22:12
@zenweasel that worked ... i was thrown off by the api key field on the example provider, so wasn't sure what that was for ... but now my checkout can be completed
Brent Hoover
@zenweasel
Feb 01 2018 22:13
Yeah, that payment method is also for a tutorial for “How to create a payment provider” so it has settings like a real one. But it’s all fake and is a no-op
wfhio
@wfhio
Feb 01 2018 22:14
awesome, thanks @zenweasel !
Brent Hoover
@zenweasel
Feb 01 2018 22:14
:+1:
AndrijWilhite
@AndrijWilhite
Feb 01 2018 23:02
hello all! I am attempting to replace the default signUp component, from what I understand in the newSignUp I would have it as such replaceComponent("SignUp", newSignUp); am I missing something here, the video explain this didnt go into much detail
muffe
@muffeeee
Feb 01 2018 23:04
Hey, I followed the tutorial video on how to create a custom theme - just to get started. However, I'm not having much luck in creating a custom navbar. The website is all white, and the browser console spits out this error: "Error: Component 'NavBar' not found. Use registerComponent to create it."
I have done excactly what https://www.youtube.com/watch?v=D8FNJE9204Y told me to
AndrijWilhite
@AndrijWilhite
Feb 01 2018 23:05
@muffeeee I think im on the same issue as you, trying to figure this out as well
Brent Hoover
@zenweasel
Feb 01 2018 23:23
Have you made any changes to core?
muffe
@muffeeee
Feb 01 2018 23:23
no, it's a complete fresh install
this is the only thing I've done to it so far
The video is from October, so I assume that some changes may have been made since then that broke something?
Brent Hoover
@zenweasel
Feb 01 2018 23:25
No, there have been no changes to that API
muffe
@muffeeee
Feb 01 2018 23:26
Weird.
Brent Hoover
@zenweasel
Feb 01 2018 23:26
You might want to take a look at this repo, there are a lot of examples of that API being used here: https://github.com/reactioncommerce/reaction-swag-shop
muffe
@muffeeee
Feb 01 2018 23:28
Woah
That repo did a completely different approach to changing the navbar than the video did
Instead of replacing the component, he extends the NavBarCore component
thanks :thumbsup:
muffe
@muffeeee
Feb 01 2018 23:37
My next fun browser-side error, is: Uncaught Error: Cannot find module '../server/api' in register.js.
register.js begin with this line: import { Reaction } from "/server/api";, which should be correct?
Brent Hoover
@zenweasel
Feb 01 2018 23:44
that line there is correct
but you shouldn’t have your register.js on the client side
muffe
@muffeeee
Feb 01 2018 23:44
It's located in the custom folder, as I think it should?
I'm still getting the error when visiting the page with chrome, I haven't tested any other browsers
Brent Hoover
@zenweasel
Feb 01 2018 23:45
/imports/plugins/custom/<your_plugin_name>/register.js
muffe
@muffeeee
Feb 01 2018 23:45
I'm making a theme, though
or is that just the same thing?
Brent Hoover
@zenweasel
Feb 01 2018 23:45
It is
muffe
@muffeeee
Feb 01 2018 23:45
Oh.
Brent Hoover
@zenweasel
Feb 01 2018 23:46
theme === plugin
muffe
@muffeeee
Feb 01 2018 23:46
Well that explains a lot.
Brent Hoover
@zenweasel
Feb 01 2018 23:49
Sorry if that wasn’t more clear
muffe
@muffeeee
Feb 01 2018 23:50
Nah, my bad. I think I'm just too stressed, tired and ready-to-get-going, so I skipped the entire "plugins" section and jumped right to theming to get an idea of how that section works