These are chat archives for reactioncommerce/reaction

7th
Jun 2017
ushadev
@ushadev
Jun 07 2017 03:34
@zenweasel
Having issue in products gallery with 'SoldOut' badge. i have products gallery and sub tags tag1, tag2, tag3 and tag4.(so i have gallery, tag1, tag2. tag3, tag4). now while adding new products i select gallery and tag1 for a specific product and inventory quantity >= 1. in the tag1 products view. there is no Sold Out badge but in the gallery products view there is a sold Out badge(though the the inventory > 0) this happens in admin mode. Why is this happening? and this happens in admin mode only?
Vigy
@vigyano
Jun 07 2017 10:02
@ushadev @zenweasel - the issue might be related to reactioncommerce/reaction#2029 which was fixed for non-admin users but now recur for admin users.
ushadev
@ushadev
Jun 07 2017 10:33
@vigyano @zenweasel - I tried changing the value of ITEM_INCREMENT to 100 and the Sold Out badge disappears in admin mode. this issue is relevant to reactioncommerce/reaction#2029 but for admin users now. Thanks @vigyano for spotting it.
Brent Hoover
@zenweasel
Jun 07 2017 10:39
Ok, if you can open an issue I can probably get someone to look at it
I won’t be able to look at it tonight
Rabea Abdelwahab
@RabeaWahab
Jun 07 2017 14:42
Installation issue on my side, anybody who can help, meteor + reaction-cli installed
reaction run with this output :

``` Using settings file at settings/dev.settings.json

Setting up plugin imports...

Setting up style imports...

[[[[[ /srv/node/reaction ]]]]]

=> Started proxy.
=> Started MongoDB.
14:40:45.987Z INFO Reaction: Load default data from /private/data/
14:40:46.315Z INFO Reaction: JobServer started
14:40:46.320Z WARN Reaction: Skipped loading settings from reaction.json.
14:40:50.744Z INFO Reaction: Using meteor --settings to create admin user
14:40:53.668Z WARN Reaction:


IMPORTANT! DEFAULT ADMIN INFO

EMAIL/LOGIN: jobpa8ee@localhost

PASSWORD: LwogcPtW

14:40:53.670Z INFO Reaction: Reaction Version: 1.2.0
14:40:53.812Z INFO Reaction: Migrating from version 0 -> 4
14:40:53.812Z INFO Reaction: Running up() on version 1
14:40:53.976Z INFO Reaction: Running up() on version 2
14:40:54.076Z INFO Reaction: Running up() on version 3
14:40:54.100Z WARN Reaction: Skipped loading settings from reaction.json.
14:40:56.248Z INFO Reaction: Running up() on version 4
14:40:56.259Z INFO Reaction: Finished migrating.
14:40:56.310Z WARN Reaction: OpenExchangeRates API not configured. Not adding fetchRates job
14:40:56.311Z WARN Reaction: OpenExchangeRates API not configured. Not adding flushRates job
14:40:56.313Z WARN Reaction: No cart cleanup schedule
14:40:56.644Z INFO Reaction: Reaction initialization finished.
=> Started your app.

=> App running at: http://localhost:3000/ ```

I am getting a blank page
juandanceswild
@juandanceswild
Jun 07 2017 14:43
any messages on your browser’s console?
Jeremy Shimko
@jshimko
Jun 07 2017 14:44
FYI, the three backticks (```) need to be on their own line for code highlighting to look right
Rabea Abdelwahab
@RabeaWahab
Jun 07 2017 14:44
ya I was trying a new line with ctrl+enter like Slack after them
my bad, still getting used to gitter
Uncaught ReferenceError: Buffer is not defined
    at util.js (modules.js?hash=a20a309…:123655)
    at fileEvaluate (modules-runtime.js?hash=8587d18…:343)
    at require (modules-runtime.js?hash=8587d18…:238)
    at _stream_readable.js (modules.js?hash=a20a309…:119339)
    at fileEvaluate (modules-runtime.js?hash=8587d18…:343)
    at require (modules-runtime.js?hash=8587d18…:238)
    at readable.js (modules.js?hash=a20a309…:119274)
    at fileEvaluate (modules-runtime.js?hash=8587d18…:343)
    at require (modules-runtime.js?hash=8587d18…:238)
    at index.js (modules.js?hash=a20a309…:119158)
main.js:96 Uncaught TypeError: Cannot read property 'Subscriptions' of undefined
    at main.js:96
    at Tracker.Computation._compute (tracker.js?hash=997515f…:339)
    at new Tracker.Computation (tracker.js?hash=997515f…:229)
    at Object.Tracker.autorun (tracker.js?hash=997515f…:613)
    at main.js:94
    at maybeReady (meteor.js?hash=27829e9…:809)
    at HTMLDocument.loadingCompleted (meteor.js?hash=27829e9…:821)
node --version => v6.10.0
Jeremy Shimko
@jshimko
Jun 07 2017 14:46
did you update Meteor manually?
Rabea Abdelwahab
@RabeaWahab
Jun 07 2017 14:46
meteor update
to 1.5
Jeremy Shimko
@jshimko
Jun 07 2017 14:47
you broke it. :)
Rabea Abdelwahab
@RabeaWahab
Jun 07 2017 14:47
:| :D
should I downgrade ?
Jeremy Shimko
@jshimko
Jun 07 2017 14:47
can’t do that unless you make fixes too. Have to stick with the one Reaction is set to use.
yes
meteor update --release <version>
Rabea Abdelwahab
@RabeaWahab
Jun 07 2017 14:48
thanks @jshimko , trying it now
Jeremy Shimko
@jshimko
Jun 07 2017 14:48
or manually change .meteor/release to whatever it used to be
Rabea Abdelwahab
@RabeaWahab
Jun 07 2017 14:48
thanks
Jeremy Shimko
@jshimko
Jun 07 2017 14:49
or just ditch the all of the changes with git checkout -- .
that drops all unstaged changes
Rabea Abdelwahab
@RabeaWahab
Jun 07 2017 14:50
that should work too
Jeremy Shimko
@jshimko
Jun 07 2017 14:52
FYI, Meteor 1.5 is on its way soon. There’s an open PR for it and the issue you had was already fixed there.
reactioncommerce/reaction#2371
which you could try if you want with:
reaction init --branch Meteor-1.5
or git checkout Meteor-1.5
Rabea Abdelwahab
@RabeaWahab
Jun 07 2017 14:56
just saw the message before u sent the branch :thumbsup:
Jeremy Shimko
@jshimko
Jun 07 2017 14:57
:thumbsup:
Pretty sure that should get merged soon, but I’m not sure if anyone else was having issues with it. Certainly feel free to use that branch and report any bugs you find to that PR thread. I think it should be pretty close to ready though.
Rabea Abdelwahab
@RabeaWahab
Jun 07 2017 14:59
:thumbsup:
Jeremy Shimko
@jshimko
Jun 07 2017 15:00
It’s passing tests and builds are succeeding
https://circleci.com/gh/reactioncommerce/reaction/tree/Meteor-1.5
Rabea Abdelwahab
@RabeaWahab
Jun 07 2017 15:03
awesome, and btw the local setup just worked, thanks again @jshimko , this is my first attempt to checkout Reaction, and so far looks really nice, Magento was my go to eCom shop and I am looking for alternatives.
Jeremy Shimko
@jshimko
Jun 07 2017 15:11
:thumbsup:
vipul08
@vipul08
Jun 07 2017 15:39
Hi All,
wanted to add my own plugin in the reaction
I wanted to use classes used in css for styling
Do we have any kinda documentation for it
like bootstrap has
One option is you can copy the default theme into /imports/plugins/custom and start from there
cp -R imports/plugins/included/default-theme/ imports/plugins/custom/my-theme
vipul08
@vipul08
Jun 07 2017 15:44
ok
thanks
Jeremy Shimko
@jshimko
Jun 07 2017 15:45
you'd obviously want to remove the default styles from that and write your own, but that at least gets you the file/folder structure in a single command
vipul08
@vipul08
Jun 07 2017 15:46
Take an example: reaction-navigation-header
this is one css class
how would I know this exists or not
because you guys have developed this you probably remember this
Daniel Honig
@dhonig
Jun 07 2017 15:47
Right i was wondering what the magic is to use SASS and Less
Jeremy Shimko
@jshimko
Jun 07 2017 15:47
@vip I don’t understand the question. What do you mean?
@dhonig just add sass or less files to your plugin and they’ll get compiled for you
Daniel Honig
@dhonig
Jun 07 2017 15:48
So don't need to add any dependencies?
vipul08
@vipul08
Jun 07 2017 15:48
My question is simple. So here is the scenario : I want to add one icon just adjacent to cart icon
through which css class I can add that
Jeremy Shimko
@jshimko
Jun 07 2017 15:49
adding an icon is going to require some markup too, no?
vipul08
@vipul08
Jun 07 2017 15:50
you mean to say something like adding into register.js
icon: "fa fa-vine",
like this
Jeremy Shimko
@jshimko
Jun 07 2017 15:52
@dhonig actually, you’d need to add an scss package if you use scss (because Reaction uses less), but that’s it. The standard in the Meteor world is fourseven:scss https://github.com/fourseven/meteor-scss
Just run meteor add fourseven:scss and add an index.scss to your custom plugin that imports all other scss in your plugin and reaction-cli will import it for you.
Daniel Honig
@dhonig
Jun 07 2017 15:53
:+1: got it
Jeremy Shimko
@jshimko
Jun 07 2017 15:54
@vipul08 if you want to add an icon to somewhere that it doesn’t currently exist, I think you’re probably going to have to override that component with your own custom component.
vipul08
@vipul08
Jun 07 2017 15:55
how to do that
like you overrirden in reactione-example-plugin
?
Seun Martins
@impactmass
Jun 07 2017 16:31
@vipul08 have you tried just modifying the template that has the cart icon directly? i.e /imports/plugins/core/checkout/client/templates/cartIcon/cartIcon.html
vipul08
@vipul08
Jun 07 2017 16:31
no
Seun Martins
@impactmass
Jun 07 2017 16:39
Actually, that is a core file… it’s best to override by a custom component.. . which I don’t have the right answer for at the moment
Mike Murray
@mikemurray
Jun 07 2017 16:53
@vipul08 as we’re working on the react conversion we are implementing registerComponent in places to allow for overriding smaller components without having to replace the entire plugin and whatnot.
import { registerComponent } from "/imports/plugins/core/layout/lib/components";

registerComponent({
  name: "coreLayoutBeesknees",
  component: CoreLayoutBeesknees
});
Faiz Ahmed
@Faiz7412
Jun 07 2017 22:45
hey I was wondering about deploying to docker on digital ocean. But don't you think that since it's an ecommerce website, the space that they offer could be an issue?
Brent Hoover
@zenweasel
Jun 07 2017 22:45
How so?
Daniel Honig
@dhonig
Jun 07 2017 22:45
@Faiz7412 need to mount block storage to the droplet
Jeremy Shimko
@jshimko
Jun 07 2017 22:46
what are you expecting to fill the space with?
If it’s a production deployment, your database should be on another server anyway. And the app code doesn’t change in size.
Faiz Ahmed
@Faiz7412
Jun 07 2017 22:49
Thanks! Which servers do you recommend for database?
Daniel Honig
@dhonig
Jun 07 2017 22:49
What do you mean?
are you going to host your own mongo?
There is a deployment channel focused on these topics https://gitter.im/reactioncommerce/deployment
Faiz Ahmed
@Faiz7412
Jun 07 2017 22:51
Yeah I'll be hosting the database on another server as Jeremy suggested. Thanks I'll check out this deployment channel.
@dhonig Will add block storage to the droplet. :)
Daniel Honig
@dhonig
Jun 07 2017 22:53
You will need to mount that in docker as well
Jeremy Shimko
@jshimko
Jun 07 2017 22:53
Database server size mostly depends on how much traffic you expect (probably not a lot at first if you don’t already have a commerce business running). Also, if you’re not a Mongo/database specialist, it may be easiest to pay for a hosted database from someone like Compose.com. You just start it up and grab your MONGO_URL. No complicated setup/maintenance. But if you’re comfortable with it, absolutely go for it.
Daniel Honig
@dhonig
Jun 07 2017 22:53
but there are plenty of guides for that