These are chat archives for reactioncommerce/reaction

26th
May 2018
Abhishek
@thegtagamer
May 26 2018 19:45 UTC
Hello everyone Ive written some plugins in reaction v1.11 and now i wanted to migrate those to reaction v1.6.4

import { check } from "meteor/check";
import { Tracker } from "meteor/tracker";
import { SimpleSchema } from "meteor/aldeed:simple-schema";
//import { TaxPackageConfig } from "/imports/plugins/core/taxes/lib/collections/schemas";
import { registerSchema } from "@reactioncommerce/reaction-collections";

export const ProductComments= new SimpleSchema({
userId: {
type: String
},
productId: {
type: String
},
comments: {
type: String
}
}, { check, tracker: Tracker });

registerSchema("ProductComments", ProductComments);

this is my schema.js
Im getting this error
Error: Cannot find module '@reactioncommerce/reaction-collections'
Prawx
@Prawx
May 26 2018 20:21 UTC
how do you delete products?
i don't see any delete button or way to permanently remove a product i no longer need, or accidentally added
Prawx
@Prawx
May 26 2018 21:56 UTC
nvm just did it from mongo shell - annoying that i cant find it in the UI
I feel like reactioncommerce lacks simple features that would make it way easier. I should probably just make a plugin that fixes what I feel it's lacking lmao
MichaelF77
@MichaelF77
May 26 2018 22:14 UTC
question: what makes the product "publiched" ?
I searched high and low, can't figure it out :(
I can see my manually inserted product in the "edit"s ection
and if I make it public - it shows up in the store
but what field/collection in DB is the "public" fact stored ?
isVisible is set to true
is it Catalog ?
Prawx
@Prawx
May 26 2018 22:29 UTC
I'm honestly not sure, but I have a similar question
if I'm logged in as admin, I can view my entire shop. if I am not, I can not view a single product.
MichaelF77
@MichaelF77
May 26 2018 22:31 UTC
If I click on product then edit then publish - it shows up
no additional fields are set in Product or ProductSearch
I am now trying to add it to Catalog but that does not seem to do anything eithert
not sure what to do about this, doesn't even let me enter anything in that field
MichaelF77
@MichaelF77
May 26 2018 22:36 UTC
check your websocket
you will see what error is there
Prawx
@Prawx
May 26 2018 22:37 UTC
ahh wait - do you need a single variant even if your product is meant to have no variants?
i guess that's how it works
god i'm dumb
MichaelF77
@MichaelF77
May 26 2018 22:37 UTC
yes
Prawx
@Prawx
May 26 2018 22:37 UTC
let me try that LOL
MichaelF77
@MichaelF77
May 26 2018 22:37 UTC
you must have a variant
and a ProductSearch record
Prawx
@Prawx
May 26 2018 22:41 UTC
okay that fixed it.
MichaelF77
@MichaelF77
May 26 2018 22:42 UTC
just need to figure out where is that "Private" flag stored :(
Prawx
@Prawx
May 26 2018 22:45 UTC
is it not the invis one?
also
it's not letting me publish my variants.
on the client it says internal server error (500)
whenever i click publish.
Prawx
@Prawx
May 26 2018 23:42 UTC
okay solved that problem just by deleting my products and creating new ones
anyway, what do i put for "tax code" under variant options?
and does that setting actually affect the taxrate??