These are chat archives for reactioncommerce/reaction

5th
Sep 2018
rohit-elevar
@rohit-elevar
Sep 05 2018 05:27
I just created a couple of new products through the dashboard, and then got an error while opening the site, and nothing is displayed. Is anyone familiar with this error?
Uncaught TypeError: Cannot read property 'displayPrice' of undefined
    at p.renderGridContent (91a7199cdf88f462692575008d440ad8c893cff2.js?meteor_js_resource=true:213)
    at p.render (91a7199cdf88f462692575008d440ad8c893cff2.js?meteor_js_resource=true:213)
    at qi (91a7199cdf88f462692575008d440ad8c893cff2.js?meteor_js_resource=true:11)
    at $i (91a7199cdf88f462692575008d440ad8c893cff2.js?meteor_js_resource=true:11)
    at Ea (91a7199cdf88f462692575008d440ad8c893cff2.js?meteor_js_resource=true:11)
    at Oa (91a7199cdf88f462692575008d440ad8c893cff2.js?meteor_js_resource=true:11)
    at us (91a7199cdf88f462692575008d440ad8c893cff2.js?meteor_js_resource=true:11)
    at is (91a7199cdf88f462692575008d440ad8c893cff2.js?meteor_js_resource=true:11)
    at os (91a7199cdf88f462692575008d440ad8c893cff2.js?meteor_js_resource=true:11)
    at ts (91a7199cdf88f462692575008d440ad8c893cff2.js?meteor_js_resource=true:11)
Brent Hoover
@zenweasel
Sep 05 2018 05:30
No, but have you published these products?
Ghost
@ghost~5b28a10ad73408ce4f9dcfde
Sep 05 2018 06:21
HI All, What exactly is compare at price used for in reaction?
rohit-elevar
@rohit-elevar
Sep 05 2018 06:27
@zenweasel Yeah. I have published the products
I even tried archiving those products. But the error still hasn't gone away
Brent Hoover
@zenweasel
Sep 05 2018 06:29
@abhisheknair-clarion I don’t believe it is currently used anywhere. It’s just there if you want to use it in your implementation
Ghost
@ghost~5b28a10ad73408ce4f9dcfde
Sep 05 2018 06:29
Thanks Brent!
Brent Hoover
@zenweasel
Sep 05 2018 06:30
@rohit-elevar Sorry, that was my only guess
rohit-elevar
@rohit-elevar
Sep 05 2018 06:32
Ok.. @zenweasel . Thanks. I'll try resetting the products collections
Can I see archived products?
Brent Hoover
@zenweasel
Sep 05 2018 06:34
No
Adnaan Jiwaji
@adnaan07
Sep 05 2018 08:50
Would appreciate help on the currency issue I had mentioned before: how do I add a currency to the Localization section? I would like to add TZS. I tried editing currency.js but couldn't get it to work.
Brent Hoover
@zenweasel
Sep 05 2018 08:50
You need to add it to your Shops.json
and then you will need to reaction reset -n
Adnaan Jiwaji
@adnaan07
Sep 05 2018 08:51
I changed shops.json
Adnaan Jiwaji
@adnaan07
Sep 05 2018 08:51
haven't run the reset command
Brent Hoover
@zenweasel
Sep 05 2018 08:53
or you could just drop the Shops collection and restart if you don’t want to reset everything
Adnaan Jiwaji
@adnaan07
Sep 05 2018 08:53
ah i see, appreciate it. let me give it a try and I'll let you know
Brent Hoover
@zenweasel
Sep 05 2018 08:54
:+1:
techinfo6789
@techinfo6789
Sep 05 2018 09:16
trying to set up the environment in my system from last 1 week 10 days , but coming with an error Oops! you don't have Meteor installed yet!
1000cc
@1000cc
Sep 05 2018 10:15
Hi to all, I am trying to start reaction but I get an error in cmd - 'reaction' is not recognized as an internal or external command, operable program or batch file.
And i didn't have any problem until now starting it any ideas how I can find a fix for this?
Abhishek
@thegtagamer
Sep 05 2018 10:37
@1000cc are you sure that you're in your reaction project directory
1000cc
@1000cc
Sep 05 2018 10:42
yes
Abhishek
@thegtagamer
Sep 05 2018 10:44
Can you post your project path name @1000cc
1000cc
@1000cc
Sep 05 2018 10:48
c://users/my-reaction-projects/reaction/
lakhvir998
@lakhvir998
Sep 05 2018 12:40
hi am customizing theme with given tuorial getting this in console WARN Reaction: No shopId, waiting one second...'
nothing is showing please help
anybody here?
lakhvir998
@lakhvir998
Sep 05 2018 13:15
very bad
no help :(
Brent Hoover
@zenweasel
Sep 05 2018 13:49
@1000cc Did you follow the install instructions for Windows?
@lakhvir998 That error usually occurs if you are starting up the app w/o the fixtures, e.g. Shops.json. You always need to have at least one shop to start the app
1000cc
@1000cc
Sep 05 2018 14:14
@zenweasel yes, and everything was working correctly now when I run reaction i get this error
Janus Reith
@janus-reith
Sep 05 2018 15:52

Is there a way to add graphQL mutations/queries within a plugin yet (without altering core code)?

I stripped all the necessary code from the core graphql plugin, but adding new queries only works when I recreate what is done in 'createApolloServer' but with a different graphql/graphiql endpoint url.
Simply trying to replace the same that was created in core does not work, my new queries don't show up then.
This leaves a gap now, as I could replace the Product grid component using reaction's component api, but I cant make one of the Apollo <Query HOCs use a custom query.

My goal is to enhance the tag system to take multiple tags in the URL, and restrictively only show products that include all of the necessary tags.
Therefore I need a new Tags query that takes an array of slugs and sends an array of ids,
and a new catalogItems query that matches all tagIds, not just one of them

F.J. Genus
@FJKhan
Sep 05 2018 22:22
@techinfo6789 you need to install meteor https://www.meteor.com/install