These are chat archives for reactioncommerce/reaction

15th
Feb 2018
dilas12345
@dilas12345
Feb 15 2018 11:10
hi, i have successfully installed reaction e-commerce. but i want to sell digital content and services, i don't know if i can get a help with that please. thanks
Lorenzo Campanis
@lcampanis
Feb 15 2018 12:41
@dilas12345 to answer your question in the architecture room as to how you can download an image, you can look at implementing a solution like this one https://www.npmjs.com/package/image-downloader which would take the path of the image from the CollectionFS store and serve it
Amalan Jenicious
@amalan-shenll
Feb 15 2018 13:11
hi guys
do anyone have example for customizing menu in reaction commerce
dilas12345
@dilas12345
Feb 15 2018 13:29
@lcampanis i really want the user to be able to download a 3d model, and also can subscribe for some services
Harshal Yeole
@harshalyeole-tudip
Feb 15 2018 15:03

Hey,
Possible BUG alert!
Can anyone explain me the below scenario?

When I am a guest and I place an order with say x@abc.com and then add 2 items in may cart.
And now I sign up with x@abc.com, I can see my Cart containing exactly 2 items which I added as guest, but I cannot see my orders.
I checked the DB for this, this is what I found:
Cart Reconciles but Orders doesn't.

mavais
@mavais
Feb 15 2018 18:09
@Vineeth73009077_twitter try eval "$(docker-machine env easypeasy)" and then docker run . How about your containers, up and running? or exited?
Loz
@lozGemachet_twitter
Feb 15 2018 21:56
Hello , Since I ran "meteor update" I'm getting errors while running the project.
Brent Hoover
@zenweasel
Feb 15 2018 21:57
Yeah, don’t do that
Loz
@lozGemachet_twitter
Feb 15 2018 21:57
how can I go back now?
Brent Hoover
@zenweasel
Feb 15 2018 21:58
you can do meteor update —release and specify the release to go back to
which should be 1.6.0.1
Loz
@lozGemachet_twitter
Feb 15 2018 21:58
Thanks!
Loz
@lozGemachet_twitter
Feb 15 2018 22:25
now the error changed...
Unexpected mongo exit code 100. Restarting. Can't start Mongo server. MongoDB had an unspecified uncaught exception. This can be caused by MongoDB being unable to write to a local database. Check that you have permissions to write to .meteor/local. MongoDB does
Brent Hoover
@zenweasel
Feb 15 2018 22:26
You may need to reset
Loz
@lozGemachet_twitter
Feb 15 2018 22:27
meteor reset ?
Brent Hoover
@zenweasel
Feb 15 2018 22:27
reaction reset which will reset your db, so only if you have no data you need to keep
Loz
@lozGemachet_twitter
Feb 15 2018 22:27
this is what I ran before downgrading because I got this message
Your development database is using mmapv1, the old, pre-MongoDB 3.0 database engine. You should consider upgrading to Wired Tiger, the new engine. The easiest way to do so in development is to run meteor reset. If you'd like to migrate your database,
Brent Hoover
@zenweasel
Feb 15 2018 22:28
What mongo are you using?
reaction reset basically equals meteor reset
You might want to clean out your node_modules too for good measure
Loz
@lozGemachet_twitter
Feb 15 2018 22:28
ok I'm running it now. will post the outcome...
Loz
@lozGemachet_twitter
Feb 15 2018 23:01
WOrking now! thanks Mr. Brent
Brent Hoover
@zenweasel
Feb 15 2018 23:01
Awesome!
Loz
@lozGemachet_twitter
Feb 15 2018 23:09
Now I need some guidance on how to add a field to every order record. can you please link to an article or sample? Thanks
Loz
@lozGemachet_twitter
Feb 15 2018 23:12

That only adds to the scheme but doesn't add add data. I already added ipAddress to the scheme using this code
const ExtendedSchema = new SimpleSchema({
ipAddress: {
type: String,
optional: true
}
});
Orders.attachSchema(ExtendedSchema);
registerSchema("Order", ExtendedSchema);

but I can't figure out how to actually add the data to the records

Brent Hoover
@zenweasel
Feb 15 2018 23:17
The best thing would be to use one of the Event.Hooks to add the data from your plugin
There are a lot of new hooks being added in the current pending release on the release-1.8.0 branch
Loz
@lozGemachet_twitter
Feb 15 2018 23:19
I want to add the data from the client side because I want to get the clients ip address not the servers. I assume that if I add the ip from the server I'll end up with servers ip address.
Brent Hoover
@zenweasel
Feb 15 2018 23:20
You’re not going to be able to write to the order directly from the client-side
you could add a new Metoer method that could pass in the IP and add it to the order from the server-side
I feel like we had this conversation before