These are chat archives for reactioncommerce/reaction

14th
Dec 2016
Michael Duane Mooring
@mikeumus
Dec 14 2016 03:44
Hey Gang, How does one get the productId for using with cloneVariant() ?
Brent Hoover
@zenweasel
Dec 14 2016 03:57
In what context? Do you mean the parent product ID?
Michael Duane Mooring
@mikeumus
Dec 14 2016 04:05
@zenweasel, creating a number of productVariants upon an admin choosing a the "Height & Width" "Product Type" I added to the product's options. See my forum post here: https://forums.reactioncommerce.com/t/product-price-variant-matrix-hundreds-of-possible-prices/244/4
Michael Duane Mooring
@mikeumus
Dec 14 2016 04:11
I have this const selectedParentId = Reaction.Router.getParam("parentId");
inside:
Template.onCreated(function () {
  this.autorun(() => {
    const selectedProductId = Reaction.Router.getParam("productId");
Michael Duane Mooring
@mikeumus
Dec 14 2016 04:16
console.logging selectedProductId just logs undefined 100 or so times.
Brent Hoover
@zenweasel
Dec 14 2016 04:16
Still not understanding the context here. You want to run cloneVariant but you are getting the productId from the router?
Michael Duane Mooring
@mikeumus
Dec 14 2016 04:36
I want the productId of the product I want to create the variant for, and got lost on some example getting the productId from the router it seems 😅
Brent Hoover
@zenweasel
Dec 14 2016 04:44
Ok, cool. Was feeling really stupid for a second.
So normally the parent is going to be the ancestor
if it’s a single-level, then there will just be one ancestor
There may be a function for getting rhe parent of a variant, let me look real quick
Not seeing it
so if you need the top-level parent you would need to climb the ancestor tree
smahi
@smahi
Dec 14 2016 06:26
Hi,
I am new to reaction, i would like to know if it's possible to build a multi language store say (english & arabic) ?
Brent Hoover
@zenweasel
Dec 14 2016 06:27
Yes you can. Localization is built in
smahi
@smahi
Dec 14 2016 06:28
@zenweasel thx
Brent Hoover
@zenweasel
Dec 14 2016 06:28
Some arabic translations are already included
smahi
@smahi
Dec 14 2016 06:31
@zenweasel can i set multiple price for the same product ( for different customer based on their roles )? and hide price from other ?
Brent Hoover
@zenweasel
Dec 14 2016 06:32
Currently we don’t support multiple prices for the same product, though you could do that through customization
smahi
@smahi
Dec 14 2016 06:33
@zenweasel any hint ? please.
Brent Hoover
@zenweasel
Dec 14 2016 06:33
Pardon?
smahi
@smahi
Dec 14 2016 06:34
@zenweasel any resources (docs) ?
Brent Hoover
@zenweasel
Dec 14 2016 06:35
You probably want to go through the Customization Guide starting here: https://docs.reactioncommerce.com/reaction-docs/development/plugin-intro-1
smahi
@smahi
Dec 14 2016 06:36
@zenweasel thx
I am going offline now and will come back soon , sorry
Brent Hoover
@zenweasel
Dec 14 2016 06:36
:+1:
Kolawole Michael Alade
@michael-alade
Dec 14 2016 10:11
@zenweasel How do I create a page on reaction?
Brent Hoover
@zenweasel
Dec 14 2016 10:37
That’s covered in the Customization Guide, if I am understanding what you want correctly
Kolawole Michael Alade
@michael-alade
Dec 14 2016 10:40
+1
smahi
@smahi
Dec 14 2016 10:40
@zenweasel :+1:
Michael Duane Mooring
@mikeumus
Dec 14 2016 11:41
Alright thanks @zenweasel , I'll try that and report back. 🙇
Brent Hoover
@zenweasel
Dec 14 2016 12:04
@mikeumus :+1:
Bendik Aagaard Lynghaug
@bendik
Dec 14 2016 17:03
Hi folks. I’m sort of new to docker and would like to deploy reaction with zeit.co/now
What would the simplest dockerfile look like? so far i have this:
FROM reactioncommerce/base:latest COPY . /source WORKDIR /source ENV ROOT_URL "https://example.com" ENV PORT 3000 EXPOSE 3000 CMD "reaction”
But I get a please do not build meteor with root warning that seem to cancel my build. Any ideas? (yes i have a mongo_url env variable)
Spencer Norman
@spencern
Dec 14 2016 18:26
Just want to say thanks for the loggly integration! Have just deployed it on our staging server and it’s pretty great.
Jeremy Shimko
@jshimko
Dec 14 2016 18:26
:thumbsup:
@bendik Why are you creating a Dockerfile from scratch instead of using the one that’s already there?
Also, you need to build both images at the same time (base and main app image). Run:
.reaction/docker/build.sh
Kolawole Michael Alade
@michael-alade
Dec 14 2016 22:19
@zenweasel How do I add styles to my plugin?
Brent Hoover
@zenweasel
Dec 14 2016 22:20
Kolawole Michael Alade
@michael-alade
Dec 14 2016 22:23
@zenweasel Where can I put it in the default-theme?
Brent Hoover
@zenweasel
Dec 14 2016 22:23
No, you should put it in your own plugin
Kolawole Michael Alade
@michael-alade
Dec 14 2016 22:26
@zenweasel So if I am creating a react component with filepath imports/plugins/custom/notifications/components/notification.js and a less filepath as imports/plugins/custom/notifications/styles/notification.less, it would be correct, right?
Brent Hoover
@zenweasel
Dec 14 2016 22:30
the path shouldn’t be important as long as the file gets imported
Kolawole Michael Alade
@michael-alade
Dec 14 2016 22:31
ok I'll try it..
Kolawole Michael Alade
@michael-alade
Dec 14 2016 22:51
@zenweasel It works..
:+1:
@zenweasel How do I run test?
Brent Hoover
@zenweasel
Dec 14 2016 22:53
reaction test