These are chat archives for reactioncommerce/reaction

9th
Jul 2017
rabas007
@rabas007
Jul 09 2017 09:06
@zenweasel - Can you please tell me the image property of product , I cannot find it in database? thanks!
hrath2015
@hrath2015
Jul 09 2017 09:10
@rabas007 Please add an image first then u will see the collection populated
Robomongo_1_0.png
rabas007
@rabas007
Jul 09 2017 09:14
ah, thank you ... @hrath2015 :)
v3yr0n
@v3yr0n
Jul 09 2017 17:52

@zenweasel
I'm getting access denied on a newly created route
and i've created a file "startup.js" where I added

import { Reaction, Hooks } from "/server/api";

Hooks.Events.add("afterCoreInit", () => {
  Reaction.addRolesToDefaultRoleSet({
    allShops: true,
    roleSets: ["defaultRoles", "defaultVisitorRole"],
    roles: ["multibanco-paymentmethod/multibancoDone"]
  });
});

what i'm I missing?

hrath2015
@hrath2015
Jul 09 2017 17:54
@v3yr0n can u please share u r register.js
v3yr0n
@v3yr0n
Jul 09 2017 18:15
/* eslint camelcase: 0 */
import { Reaction } from "/server/api";

Reaction.registerPackage({
  label: "MultibancoPayment",
  name: "multibanco-paymentmethod",
  icon: "fa fa-credit-card-alt",
  autoEnable: true,
  settings: {
    mode: false,
    multibanco: {
      enabled: false,
      support: [
        "Authorize",
        "Capture",
        "Refund"
      ]
    }
  },
  registry: [
    // Settings panel
    {
      label: "Multibanco", // this key (minus spaces) is used for translations
      provides: "paymentSettings",
      container: "dashboard",
      template: "multibancoSettings"
    },

    // Payment form for checkout
    {
      template: "multibancoPaymentForm",
      provides: "paymentMethod",
      icon: "fa fa-credit-card-alt"
    },
    {
      route: "/multibanco/done",
      template: "multibancoDone",
      workflow: "coreWorkflow"
    }
  ]
});
@hrath2015 this one? :)
Max Robbins
@maxcr
Jul 09 2017 18:38
Anybody have drop shipping working with Ali Express
Currently I'm using a custom built scraper and Snipcart to fufill orders
Except electron shits itself on the Ali Express website
Might be a regression
hrath2015
@hrath2015
Jul 09 2017 19:03
multibanco-paymentmethod/multibancoDone where is this register as a route? I am not able locate in your register.js.
Seunghun Sunmoon Lee
@SeunghunSunmoonLee
Jul 09 2017 21:07
s
danielpinna
@danielpinna
Jul 09 2017 21:37

Hello people,

The product collection does not suit me as I would like, so I thought of two possible paths:

Create my own product collection or extend the current product collection so it can meet my expectations.

I tried to create my own product collection as follows:

I created a schema called MyProducts in the lib / collections / schemas directory

And I defined my collection in the lib / collections directory.

In the catalog.js file that is in the / server / methods directory I added the code below at line 698 inside if

Let myProduct = {
Title: "Product Test",
Description: "Description Test"
};

MyProduct.insert (myProduct);

However this did not create a new collection in my mongoDB. Do I need to do any other configuration?

What is the best way to extend an existing collection (Product) and how best to create a new collection?

Thank you

With this code when creating a standard reaction product, I hoped that a product would also be created in my new collection.
S Tunji Turner
@stunjiturner
Jul 09 2017 21:44
Screen Shot 2017-07-09 at 5.40.33 PM.png
In safari Version 10.1.1 (12603.2.4), the header for the tags breaks,
v3yr0n
@v3yr0n
Jul 09 2017 22:24
@hrath2015 even if i add the multibanco-paymentmethod/multibancoDoneto my register.js file I get the same you have no permission message with the login form
i'm trying to access http://localhost:3000/printhub/multibanco/done or `http://localhost:3000/printhub/multibanco-paymentmethod/multibancoDone
Brent Hoover
@zenweasel
Jul 09 2017 22:27
Are you doing a full reaction reset?
Adding permissions to default roles is not retroactive. Existing users will not get that permission