These are chat archives for reactioncommerce/reaction

27th
Apr 2017
septk
@septk
Apr 27 2017 11:54
hi @aditzend, I'm using mlab, and for example in heroku mongo_url was mongodb://<dbuser>:<dbpassword>@xxx.mlab.com:23351/xxxx-mongodb, same for digitalocean, how can I change this if I have this link? thank you for your feedback
I found a null inside of my id in Shipping collection, but when I put my ID shop, the values are visible on my setup, but when I try to checkout something, the shipping part shows that shipping is not configured...
and when I try to find my taxes, this is the result
Captura de pantalla 2017-04-27 a las 13.57.53.png
Brent Hoover
@zenweasel
Apr 27 2017 11:58
it looks like your translations are also not loaded
septk
@septk
Apr 27 2017 12:00
pfff so much problems for me...
Janus Reith
@janus-reith
Apr 27 2017 12:07
@aviadbd Did you solve your problem by now?
I had the same issue on my vultr vps, which has 1G RAM and ran out of memory.
sshing to the vps and creating a swapfile solved it for me, just be sure you make it bigger than the 256MB shown in the tutorial you used - I used dd if=/dev/zero of=/swapfile bs=1M count=4096, but this may also be more than needed.
Janus Reith
@janus-reith
Apr 27 2017 12:31
Okay, next issue: I use custom npm modules in my reaction plugins, when I use docker build on my remote machine, they are somehow not installed...
Brent Hoover
@zenweasel
Apr 27 2017 12:31
do you have package.json’s in your plugins?
Janus Reith
@janus-reith
Apr 27 2017 12:35

actually no, I have this defined in my register.js (code from the hydrotik plugin demo)
settings: {
npm: {
dependencies: {
"react-slick": "^0.14.5",
"slick-carousel": "^1.6.0"
}
}

And those two modules installed in my reaction dir. - Oh, just realized the issue my self, since I copied my plugins into a new branch of reaction, I completely forgot to save them in the package.json

Had them installed , but without --save
Brent Hoover
@zenweasel
Apr 27 2017 12:36
you can add a package.json to your plugin and the reaction-cli will install them
Janus Reith
@janus-reith
Apr 27 2017 12:36
@zenweasel is there a way to define the package.json in my plugins?
That would be way better
oh
Brent Hoover
@zenweasel
Apr 27 2017 12:37
it’s a pretty recently added feature, long after hydrotik did his stuff
Janus Reith
@janus-reith
Apr 27 2017 12:38
nice to know!
does the npm dependencies part in register.js even make sense at all then?
Brent Hoover
@zenweasel
Apr 27 2017 12:39
no, that was when we still were using Meteor packages
we eliminated that back in version 0.14
septk
@septk
Apr 27 2017 12:39
@zenweasel how can I load translations?
Brent Hoover
@zenweasel
Apr 27 2017 12:40
@septk If everything is running correctly, they should just load. It’s another thing that maybe points to an issue with your DB
If you are logged in as an administrator you can try doing Meteor.call("i18n/flushTranslations”);
Janus Reith
@janus-reith
Apr 27 2017 12:44

@zenweasel Thanks for the info. Is there any example of a plugin that is using a package.json?
Appareantly the inclued plugins like paypal that make use of npm modules dont use this feature yet.

which part are the bare minimum in the package.json to make it work? - Can I just use
{
"dependencies": {
...
}
?

Brent Hoover
@zenweasel
Apr 27 2017 12:44
you should be able to just npm init in your plugin directory
Janus Reith
@janus-reith
Apr 27 2017 12:49
also an option
Brent Hoover
@zenweasel
Apr 27 2017 12:50
in answer to your question, I don’t know. Whatever the bare minimum that npm requires.
Requirements

As a bare minimum, a package.json must have:

"name"
all lowercase
one word, no spaces
dashes and underscores allowed
"version"
in the form of x.x.x
follows semver spec
For example:

{
  "name": "my-awesome-package",
  "version": "1.0.0"
}
so I guess it’s that, plus dependencies
Janus Reith
@janus-reith
Apr 27 2017 12:54
ok, did that.
So from now on, the typcial scenario would be that I "npm install -save" my modules directly inside of the plugin dir, right?
Brent Hoover
@zenweasel
Apr 27 2017 12:55
Yes, I believe so. I haven’t actually tried it yet, but that’s the expected behavior
Janus Reith
@janus-reith
Apr 27 2017 12:55
Ok, makes more sense than to have them "globally" in the react project
*reactino
*on
Great, works, reaction cli detects it and states Installing dependencies for pluginname...
Brent Hoover
@zenweasel
Apr 27 2017 13:00
awesome
Loan Laux
@loanlaux
Apr 27 2017 13:03
Screen Shot 2017-04-27 at 14.57.27.png
Screen Shot 2017-04-27 at 14.57.01.png
Hey guys, experiencing a weird behaviour on my product detail pages. The price property is defined correctly (I guess) in /private/data/Products.json but the PriceRange component doesn't display any value. Is there anything obvious I'm missing?
Brent Hoover
@zenweasel
Apr 27 2017 13:04
has the product been published?
Loan Laux
@loanlaux
Apr 27 2017 13:04
The first screen is from my theme's lib/layout/simple.js
Screen Shot 2017-04-27 at 15.04.59.png
Here's a preview of my product in Products.json
@zenweasel, when you say "published", are you talking about a boolean property that has to be set in Products.json or an action to take in Reaction's admin panel?
finseth
@finseth
Apr 27 2017 13:06
Does anyone have experience with deploying reactioncommerce on Deis Workflow?
Brent Hoover
@zenweasel
Apr 27 2017 13:07
well, I guess if it’s in your Product.json it should already be published
septk
@septk
Apr 27 2017 13:07
@loanlaux same issue here, the price is not updated..
Loan Laux
@loanlaux
Apr 27 2017 13:08
@septk Interesting
Brent Hoover
@zenweasel
Apr 27 2017 13:11
just looking at what’s there, it looks correct
septk
@septk
Apr 27 2017 13:11
I'm looking inside of mongodb collection products
Brent Hoover
@zenweasel
Apr 27 2017 13:11
looks like you exported this back in 2016?
septk
@septk
Apr 27 2017 13:11
Captura de pantalla 2017-04-27 a las 15.11.35.png
Brent Hoover
@zenweasel
Apr 27 2017 13:12
@loanlaux Did you you look in the MongoDb?
You might want to try adding/export/import and see if that fixes it
Loan Laux
@loanlaux
Apr 27 2017 13:13
Didn't think about it, I'll try it out right now
Loan Laux
@loanlaux
Apr 27 2017 13:26
Screen Shot 2017-04-27 at 15.23.38.png
Everything seems okay on this one for instance
Screen Shot 2017-04-27 at 15.26.33.png
And still nothing displayed by the PriceRange component... It happens with all my products, just checked the whole catalog
Loan Laux
@loanlaux
Apr 27 2017 13:35
Screen Shot 2017-04-27 at 15.34.54.png
And of course the price is correctly displayed on the product list page
@septk is it still similar to your issue?
Alexander Ditzend
@aditzend
Apr 27 2017 13:59
@septk I never deployed with mongolab but make sure reaction has a database on its own. What do you replace "mongodb" with in your connection string? Is it a default mongolab suggests or the name of a db you want to create there?
Loan Laux
@loanlaux
Apr 27 2017 14:06
Screen Shot 2017-04-27 at 16.06.39.png
Just restored the original Reaction theme, reset the database and the issue remains
Screen Shot 2017-04-27 at 16.07.35.png
Same as before, product's price is displayed without any problem on the product list
Loan Laux
@loanlaux
Apr 27 2017 14:22
Okay, I started again from scratch, rebuilt a product catalog and it works
septk
@septk
Apr 27 2017 14:31
@loanlaux same issue, exactly
Loan Laux
@loanlaux
Apr 27 2017 14:34
Thanks for your insight @zenweasel!
Chandler Freeman
@Stat1c14
Apr 27 2017 14:58
Hey guys, I'm doing some server side customization and adding some static pages to my site. I'm using this plugin here as a starting point: https://github.com/hydrotik/reaction-hydrotik-plugin They already have a built-in route for an About Us page, but I realized that when I change the template name in the html file and in Registry.js, suddenly the template doesn't render, even though those are the only places that name is mentioned... Is this a bug with Reaction or am I misunderstanding something?
septk
@septk
Apr 27 2017 15:02
@loanlaux what do you have in your mongodb product document?
Chandler Freeman
@Stat1c14
Apr 27 2017 15:10
Also, what version of Node are you guys using? I've run into a whole plethora of obscure bugs, and I wanna make sure I'm on the same version the developers are using to minimize the chance of running into bugs
terrelltechsup
@terrelltechsup
Apr 27 2017 15:21
It looks like if you have no tax rates defined and you choose custom rates, you get this message: admin.taxSettings.noCustomTaxRatesFound and the checkboxes for avalara and taxcloud disappear
Aaron Judd
@aaronjudd
Apr 27 2017 15:29
@terrelltechsup sound like a legit bug. I don’t think we have an issue for that, be great if you could create one
septk
@septk
Apr 27 2017 15:35
@aaronjudd @terrelltechsup translation load bug?
Aaron Judd
@aaronjudd
Apr 27 2017 15:39
that’s what it sounds like but could be a ui/component issue as well (I’m pretty sure those i18n labels exist)
@Stat1c14 reaction -v will give you the environment versions of Reaction. Meteor includes it’s own node and npm versions, currently Meteor ships with v4.8.1, and the packages we include are now also pinned and shrinkwrapped, so everyone should be running the same versions.
Chandler Freeman
@Stat1c14
Apr 27 2017 15:46
@aaronjudd thanks. I also threw up an issue for the other problem as well reactioncommerce/reaction#2173
Aaron Judd
@aaronjudd
Apr 27 2017 15:56
@Stat1c14 :thumbsup:
terrelltechsup
@terrelltechsup
Apr 27 2017 16:15
ya unfortunately I am running it deployed to heroku so the meteor shell is not available to me. I may just spin up the environment on my local machine to get more information
septk
@septk
Apr 27 2017 16:24
@aaronjudd Could do you tell me if is a error when I create a product and I fix a price, in homepage of my store not show correct price (Only show 0)
Erik Kieckhafer
@kieckhafer
Apr 27 2017 16:40
@septk have you published the product, or just created it without publishing?
septk
@septk
Apr 27 2017 16:42
I published this product, in another session without admin login, I can see 0 like admin view
@kieckhafer
Erik Kieckhafer
@kieckhafer
Apr 27 2017 16:43
does the product have variants as well as options, and are all of those published as well?
my first thought is the “main” product might be published, but the variants and options which have the price attached are not published, still in draft mode
septk
@septk
Apr 27 2017 16:51
@kieckhafer only have simple variants that I need for fix a price
but is not logic, because I putted a price..
Carlos Olivera Terrazas
@carlos-olivera
Apr 27 2017 16:52
The reactioncommerce powered store that I managed, is selling one Galaxy S8 every 2 hours, in a Country where no e-commerce culture, is a big hit. https://nextlevel.com.bo/tag/smartphone
Aaron Judd
@aaronjudd
Apr 27 2017 17:06
@carlos-olivera looks great! nice work :thumbsup:
Spencer Norman
@spencern
Apr 27 2017 17:06
Nice work @carlos-olivera
Loan Laux
@loanlaux
Apr 27 2017 17:06
Congrats @carlos-olivera!
Carlos Olivera Terrazas
@carlos-olivera
Apr 27 2017 17:07
@aaronjudd @spencern @loanlaux, thanks!! :smile:
Daniel Honig
@dhonig
Apr 27 2017 17:17
Any tricks to speed up the reaction run command?
Loan Laux
@loanlaux
Apr 27 2017 17:25
Would be interested to know as well
Daniel Honig
@dhonig
Apr 27 2017 17:25
If I turn the log levels to debug I see its prefetching every language preference etc. So limiting the languages to the locales I need might be one thing to try
Erik Kieckhafer
@kieckhafer
Apr 27 2017 17:49
@septk it is possible to put a price, but not publish it (or not make the variant visible). As you can see here, I already saved the price as $10, but because my variant is not yet visible, it still shows $0 on the grid
REACTION_and_New_Product.png
as soon as I make the variant visible by clicking the eyeball, and then publishing the visibility, the price updates on the grid
REACTION_and_New_Product.png
Eduard Dumitru
@alexdorn87
Apr 27 2017 17:53
Hi
Nice to meet you!
now I want to build mobile app for reaction commerce
but it is not working successfully now
could you help me to know how I can run reaction commerce with mobile server address?
Aaron Judd
@aaronjudd
Apr 27 2017 19:37
@alexdorn87 we don’t do anything specific to configure for mobile development as each case will be unique to the store/brand. I suggest you review the Meteor docs https://docs.meteor.com/api/mobile-config.html on the configuration requirements and assets needed for mobile configuration.
Eduard Dumitru
@alexdorn87
Apr 27 2017 20:27
when I build it, it shows only white screen
@aaronjudd could you help me anything?
Aaron Judd
@aaronjudd
Apr 27 2017 21:49
@alexdorn87 no sorry, I can’t help you with the mobile config. There might be others in the channel though that can.