These are chat archives for reactioncommerce/reaction

25th
Jun 2016
hrath2015
@hrath2015
Jun 25 2016 03:21 UTC
@valorloff were u able to debug your layout??
Valery Orloff
@valorloff
Jun 25 2016 05:05 UTC
@hrath2015 big thanks for help, just a minute
Valery Orloff
@valorloff
Jun 25 2016 05:33 UTC
@hrath2015 step 3 output:
layout in shop: Object {layout: "dstCoreLayout", workflow: "coreWorkflow", collection: "Products", theme: "default", enabled: true…}
VM710:3 To ckeck layout: dstCoreLayout workflow coreWorkflow
Object {layout: "dstCoreLayout", workflow: "coreWorkflow", collection: "Products", theme: "default", enabled: true…}
http://local.dostavka.net.ua/
open js console, and click to example-product tag
pilathraj
@pilathraj
Jun 25 2016 05:35 UTC
Hi
hrath2015
@hrath2015
Jun 25 2016 06:04 UTC
@valorloff I checked on your site
first time I got the error structure not defined
later when clicked on zapchasti link and clicked again example-product I could see the page
blob
Valery Orloff
@valorloff
Jun 25 2016 06:11 UTC
you see a error?
layout.js:68 Uncaught TypeError: Cannot read property 'structure' of undefined
hrath2015
@hrath2015
Jun 25 2016 06:12 UTC
Only first time
Valery Orloff
@valorloff
Jun 25 2016 06:12 UTC
if you look in shops, there layout.structure in place, are you seen?
yes, first click
any ideas?
hrath2015
@hrath2015
Jun 25 2016 06:15 UTC
Let me dig into it.
It is weekend so will get less time
Valery Orloff
@valorloff
Jun 25 2016 06:17 UTC
I understand, big thanks)
hrath2015
@hrath2015
Jun 25 2016 06:17 UTC
I am able to reproduce it consistently. Will get back if I find something.
U r site will be up
right?
Valery Orloff
@valorloff
Jun 25 2016 06:17 UTC
ok, ok
Eric Jonas
@ericmachine88
Jun 25 2016 09:03 UTC
so reaction for market place is not possible now? dropship model?
Brent Hoover
@zenweasel
Jun 25 2016 09:04 UTC
It’s not available “out of the box”. But the backend logic is there to support multiple shops
Eric Jonas
@ericmachine88
Jun 25 2016 09:05 UTC
any tutorials or guide to setup multiple shops?
i have a html bootstrap theme, is it easy for me to create an reaction theme or do i have to massive hack it?
noticed, reaction is still on v1.3.1 meteor. hmm?
sorry, not on
typo
Brent Hoover
@zenweasel
Jun 25 2016 09:06 UTC
No, we are on 1.3.4
Eric Jonas
@ericmachine88
Jun 25 2016 09:06 UTC
oh seriuos?
Brent Hoover
@zenweasel
Jun 25 2016 09:06 UTC
If you are using bootstrap you should be safe
development is, yes
Eric Jonas
@ericmachine88
Jun 25 2016 09:07 UTC
ohh, so you mean the release version is still not on 1.3.4
Brent Hoover
@zenweasel
Jun 25 2016 09:07 UTC
not sure what version master is on
Eric Jonas
@ericmachine88
Jun 25 2016 09:07 UTC
is development version ready for production use?
Brent Hoover
@zenweasel
Jun 25 2016 09:08 UTC
No. But there is no issue with just upgrading the meteor version from 1.3 to 1.3.x
Just meteor update and you should be done
Eric Jonas
@ericmachine88
Jun 25 2016 09:08 UTC
hmm, well as far i remember reading somewhere. even i did that, reaction will still use 1.2x right?
Brent Hoover
@zenweasel
Jun 25 2016 09:09 UTC
No
Eric Jonas
@ericmachine88
Jun 25 2016 09:09 UTC
just my server or local environment is using meteor 1.3 with your command
oh
Brent Hoover
@zenweasel
Jun 25 2016 09:09 UTC
master is using 1.3
Eric Jonas
@ericmachine88
Jun 25 2016 09:09 UTC
for hosting, can i use digital ocean or do have to use a specialised hosting? i remember hosting for meteor isn’t that straightforward
1.3.2.4
Eric Jonas
@ericmachine88
Jun 25 2016 09:10 UTC
does reaction come with any rest api out of the box?
Brent Hoover
@zenweasel
Jun 25 2016 09:10 UTC
Many people are using Digital Ocean. The Docker deployement guide is written for DO
No it doesn't
Eric Jonas
@ericmachine88
Jun 25 2016 09:11 UTC
i am building a mobile app on ionic,plan to call reaction
oh
so i have to write my own?
for the DO hosting, what kind of specs do you recommend for production? can the $5 do the job? i doubt right
Brent Hoover
@zenweasel
Jun 25 2016 09:12 UTC
I believe there is an atmosphere package that will bridge meteor methods and REST API. I don’t have it at my fingertips right now
Eric Jonas
@ericmachine88
Jun 25 2016 09:12 UTC
oh, so how can i have mobile app talk to reaction? i think has to use DDP client or something
Brent Hoover
@zenweasel
Jun 25 2016 09:12 UTC
re: specs. I don’t know. It would really depend on your load and your application
Yeah. Remembering that DDP is just JSON over Websockets
But I believe there are DDP clients for mobile
Eric Jonas
@ericmachine88
Jun 25 2016 09:13 UTC
is it easy to build my own payment gateway module? i have to use a local payment gateway in my country, the example in HTTP POST in php codes.
well, i kind of almost finish my mobile app in ionic
not too sure can do that
Brent Hoover
@zenweasel
Jun 25 2016 09:14 UTC
Yeah. Building a Payment module is pretty easy
Let me give you one big caveat too. Right now we are doing a major refactor that will probably be complete in a week or so. It’s not ready for release yet, but I would start looking at that
This is to support Meteor’s migration from Atmosphere packages to Npm
Eric Jonas
@ericmachine88
Jun 25 2016 09:15 UTC
i have kind of an ecommerce, but i feel it’s just too lacking. thinking of another route. Look at a few frameworks or cms, most of them are a best.. is reaction something easy to pick up and customise? i have a bit of meteor .. tested it before
so you mean i should wait for around 2 weeks
to consider reaction
i mean most of them are a beast
not best
Brent Hoover
@zenweasel
Jun 25 2016 09:15 UTC
No, I am saying if you are starting a new project, start with development.
Otherwise you would end up having to change your code when the next version is released
Eric Jonas
@ericmachine88
Jun 25 2016 09:16 UTC
oic
Brent Hoover
@zenweasel
Jun 25 2016 09:16 UTC
Not ready for production != Not ready for development
Eric Jonas
@ericmachine88
Jun 25 2016 09:16 UTC
i see
is there any tutorials or video course on reaction? find it quiet though :(
Brent Hoover
@zenweasel
Jun 25 2016 09:17 UTC
Best to not sink time into release 13, because 14 is right around the corner and it’s significantly different
Eric Jonas
@ericmachine88
Jun 25 2016 09:17 UTC
so reaction official docs is on release 13
so the only way is to hack around dev verson as it’s kindof release 14 right
Brent Hoover
@zenweasel
Jun 25 2016 09:18 UTC
There are two versions of the docs. Check the dropdown. There is a version for master and a version for development
Eric Jonas
@ericmachine88
Jun 25 2016 09:18 UTC
i did test the version 13 2 months ago, find it lacking for master
ohh i didn’t know that
lol
Brent Hoover
@zenweasel
Jun 25 2016 09:18 UTC
Aaron went through and did a major revision on the docs to reflect the new changes
Eric Jonas
@ericmachine88
Jun 25 2016 09:18 UTC
i see
Brent Hoover
@zenweasel
Jun 25 2016 09:18 UTC
but we keep the master docs for people who are still on 13
Eric Jonas
@ericmachine88
Jun 25 2016 09:19 UTC
but seriously meteor is sux in seo, i mean, if i do a view source on the page, i can’t read at all..
no issue really?
for you guys?
for google crawlers
Brent Hoover
@zenweasel
Jun 25 2016 09:19 UTC
Yeah, you should use the spiderable package
Eric Jonas
@ericmachine88
Jun 25 2016 09:19 UTC
anyway the reaction issues, is still rest api.. if rest api is not possible, i am deep shit :(
Brent Hoover
@zenweasel
Jun 25 2016 09:19 UTC
converts Meteor code to POHTML for spiders
Eric Jonas
@ericmachine88
Jun 25 2016 09:19 UTC
ohhh
Brent Hoover
@zenweasel
Jun 25 2016 09:20 UTC
you just install and sit back and watch the SEO roll in ;)
Eric Jonas
@ericmachine88
Jun 25 2016 09:20 UTC
do you have tips to get the seller market place or dropship to work? any classes or docs to look around?
or multiple shops
Brent Hoover
@zenweasel
Jun 25 2016 09:20 UTC
Yes, h/o
Eric Jonas
@ericmachine88
Jun 25 2016 09:20 UTC
how to activate it?
Brent Hoover
@zenweasel
Jun 25 2016 09:21 UTC
There is someone who has already done it
Eric Jonas
@ericmachine88
Jun 25 2016 09:21 UTC
oh
is there guides somewhere?
We don’t have a guide specifically for marketplace
Eric Jonas
@ericmachine88
Jun 25 2016 09:23 UTC
that’s marketplace hmm
looks like a normal cart :P
serious?
okay i don’t understand that language haha
can’t read
Brent Hoover
@zenweasel
Jun 25 2016 09:24 UTC
It’s like an etsy thing where people can create their own stores
Eric Jonas
@ericmachine88
Jun 25 2016 09:24 UTC
did that guy modify heavily on the dev version?
Brent Hoover
@zenweasel
Jun 25 2016 09:24 UTC
the issue with “marketplace” is that it’s 1000 things to 1000 different people
Eric Jonas
@ericmachine88
Jun 25 2016 09:24 UTC
oh well that’s so true
Brent Hoover
@zenweasel
Jun 25 2016 09:24 UTC
I believe he did yes
Eric Jonas
@ericmachine88
Jun 25 2016 09:25 UTC
i see
i want to ask
i am not sure is possible with reaction
i want to setup a celebrity page within my site, and each celebrity can add my curated products. once someone buys a product at the celebrity page, the celebrity get a sales commission. Is something doable easily or do i have to hack a lot?
say i have justin bieber page
and usher page
any tips?
justin bieber has both nike shoe and adidas shoe
user page has only nike shoe
i mean usher
if someone buys the nike shoe at usher page, usher gets the cut
Brent Hoover
@zenweasel
Jun 25 2016 09:28 UTC
The schema has a “shopId” throughout so you can associate products/orders etc. with a particular shop
When you fire up the default version you can see that two shops are created
So you could use a shop for each celebrity
Eric Jonas
@ericmachine88
Jun 25 2016 09:28 UTC
oh
but i do have merchants with me.. they can’t add new products, only i can. But the merchants can add new product quantity. So the shop is not tied to the merchant but to the celebrity right?
Brent Hoover
@zenweasel
Jun 25 2016 09:30 UTC
So for you mobile app backend, it should be fairly easy. There just isn’t any UI for managing multiple stores. So that part you would need to build
Eric Jonas
@ericmachine88
Jun 25 2016 09:30 UTC
so when i build my custom UI, i needs to talk DDP to reaction
has it to be build on meteor
or something i build on top of reaction for the custom UI?
Brent Hoover
@zenweasel
Jun 25 2016 09:31 UTC
You would be better off building on top of Reaction to take advantage of all the pre-built code. But nothing says you have to. You can just call Meteor.methods.
Eric Jonas
@ericmachine88
Jun 25 2016 09:32 UTC
i see
when you say scheme has a shopid, do i have to create custom schemas or leverage on existing
Brent Hoover
@zenweasel
Jun 25 2016 09:32 UTC
just doing a quick seach on Atmosphere for REST
https://github.com/kahmali/meteor-restivus
Eric Jonas
@ericmachine88
Jun 25 2016 09:33 UTC
when i create a celebrity page in reaction, as you know i have list of products in there and some video contents (something like a cms).. do i haveto create custom page manually in bootstrap where i manually create contents (putting iframe on code level)..
Brent Hoover
@zenweasel
Jun 25 2016 09:33 UTC
You should be able to use the existing schemas. You can extend it if you want if you want to add extra fields, etc.
Eric Jonas
@ericmachine88
Jun 25 2016 09:33 UTC
or reaction has built in cms?
Brent Hoover
@zenweasel
Jun 25 2016 09:33 UTC
We don’t currently have any CMS features. It’s something that will be built soon, but it’s not ready
Valery Orloff
@valorloff
Jun 25 2016 09:34 UTC
simple-rest package should help in many REST tasks
Eric Jonas
@ericmachine88
Jun 25 2016 09:34 UTC
so if i really need a cms, can i use drupal 8 + reaction?
hmm?
or meteor cms, if there’s cuh thing
such thing
thanks @valorloff
Valery Orloff
@valorloff
Jun 25 2016 09:35 UTC
meteorkitchen (simple CMS) + reaction
Brent Hoover
@zenweasel
Jun 25 2016 09:35 UTC
Having done this a few times (with other eCommerce packages) you are probably better off just building CMS features on top of Reaction
Or you could do that.
Eric Jonas
@ericmachine88
Jun 25 2016 09:35 UTC
you mean meteorkitchen?
Valery Orloff
@valorloff
Jun 25 2016 09:36 UTC
yes
Brent Hoover
@zenweasel
Jun 25 2016 09:36 UTC
I don’t know anything about that
Eric Jonas
@ericmachine88
Jun 25 2016 09:36 UTC
oh ok
one more question, can i assign 1 SKU for each product variants e.g. BLUE | XL is 1 SKU, BLUE | M is 1 SKU
or is that something i have to code by myself
Brent Hoover
@zenweasel
Jun 25 2016 09:36 UTC
Yyeah, SKU is in the schema just not in the UI for some reason
Eric Jonas
@ericmachine88
Jun 25 2016 09:37 UTC
oh
so means i have to add in the UI by myself?
is it hard to do?
for a new guy like me?
Brent Hoover
@zenweasel
Jun 25 2016 09:37 UTC
Nope, it’s super easy
Pretty much just adding the HTML
Eric Jonas
@ericmachine88
Jun 25 2016 09:38 UTC
okay, i may have to consume some 3rd party rest API from courier.. is that something easy to call from meteor level? i never dive meteor that deep, just following some basic tutorials
serious, that’s easy
hrath2015
@hrath2015
Jun 25 2016 09:39 UTC
@valorloff can u please log the options as first line in ReactionLayout function in layout.js file.
Brent Hoover
@zenweasel
Jun 25 2016 09:39 UTC
There’s nothing really Meteor-specific about consuming REST. You can just us e the HTTP package. I think there is something in the Meteor Guide about it
hrath2015
@hrath2015
Jun 25 2016 09:40 UTC
also console log newlayout after line 'let newLayout = shop.layout.reverse().find((x) => selectLayout(x, layout, workflow))'
Brent Hoover
@zenweasel
Jun 25 2016 09:40 UTC
@ericmachine88 Also there is stuff on that same page about turning publications into REST
hrath2015
@hrath2015
Jun 25 2016 09:40 UTC
build and deploy please
But Iconic must have at least some Websocket capabilities
I’ve played around with Iconic but haven’t done anything serious
Eric Jonas
@ericmachine88
Jun 25 2016 09:43 UTC
oic
noted
i’ll look at the dev version
thanks so much
Brent Hoover
@zenweasel
Jun 25 2016 09:43 UTC
:+1:
hrath2015
@hrath2015
Jun 25 2016 09:47 UTC
@valorloff can u make 1 change in your layout please change the workflow to "coreProductWorkflow" rightnow u have defined as coreWorkflow.
reset and restart. See if that works
Valery Orloff
@valorloff
Jun 25 2016 09:53 UTC
second
Valery Orloff
@valorloff
Jun 25 2016 09:59 UTC
shame on me....
how i couldn't see it...
thank you @hrath2015
it's working)
Valery Orloff
@valorloff
Jun 25 2016 10:05 UTC
and why it was not work first time only?
@zenweasel how to move to development branch from master? remove and new install?
Brent Hoover
@zenweasel
Jun 25 2016 10:10 UTC
@valorloff You should take a look at development before moving over. There’s a ton of changes. But to answer your question you can just git checkout development. But yeah, I would create a separate directory first.
Just sitting down to dinner now but I can answer any other questions later
Valery Orloff
@valorloff
Jun 25 2016 10:13 UTC
ok ok!
Bon Appetit)
hrath2015
@hrath2015
Jun 25 2016 10:19 UTC
I guess it using fallback layout second time
Valery Orloff
@valorloff
Jun 25 2016 10:33 UTC
it would be nice if, in such cases a fallback used every time
@hrath2015 thank you for you spent time )
Himanshu Aggarwal
@haggarwal90
Jun 25 2016 12:16 UTC
Hi I want to define new route
like i have one template name = "comingsoon"
now i want to display this template on clicking at href
for that i have to define route for this new template
{
  route: "comingsoon",
  name: "comingsoon",
  template: "comingsoon"
}
where i should add this route
Eric Jonas
@ericmachine88
Jun 25 2016 13:08 UTC
is there any return merchandise feature in reaction? when they return, i can return them in a form of store credit or bank transfer.
and does reaction support state machine too? i see a number of growing ecommerce having such feature.
Valery Orloff
@valorloff
Jun 25 2016 14:17 UTC
@haggarwal90 in package registry
Eric Jonas
@ericmachine88
Jun 25 2016 16:21 UTC
just installed the dev version 0.14, quite buggy. hmm.. is 0.13 really big difference with 0.14?