These are chat archives for reactioncommerce/reaction

12th
Dec 2018
Lebzanwa
@Lebzanwa
Dec 12 2018 14:10
Hi.. guys. I need help... running Reactionon my machine.
Need help with installing...
I've followed the youtube video. But still can't run it.
Please advice me...
Lebzanwa
@Lebzanwa
Dec 12 2018 16:41
Amalia@LAPTOP-AL3OE1SI MINGW64 /g/reaction (master)
$ reaction
INFO: Could not find files for the given pattern(s).
Setting up plugin imports...

Setting up style imports...

Provisioning assets...

[[[[[ ~\G\reaction ]]]]]

=> Started proxy.
=> Started MongoDB.
=> Meteor 1.8 is available. Update this project with 'meteor update'.
app/client/plugins.less: warn: There are some @import rules those are not taking effect as they are required to be in the beginning of the file.
app/client/plugins.less: warn: There are some @import rules those are not taking effect as they are required to be in the beginning of the file.
=> Errors prevented startup:

   While building for web.browser:

   imports/plugins/core/graphql/lib/mutations/updateFulfillmentOptionsForGroup.graphql:1:41:
   Unterminated string constant (1:41)

   imports/plugins/core/graphql/lib/mutations/createFlatRateFulfillmentMethod.graphql:1:41:
   Unterminated string constant (1:41)

   imports/plugins/core/graphql/lib/mutations/updateFlatRateFulfillmentMethod.graphql:1:41:
   Unterminated string constant (1:41)

   imports/plugins/core/graphql/lib/mutations/deleteFlatRateFulfillmentMethod.graphql:1:41:
   Unterminated string constant (1:41)

   imports/plugins/core/graphql/lib/mutations/placeOrderWithExampleIOUPayment.graphql:1:41:
   Unterminated string constant (1:41)

   imports/plugins/core/graphql/lib/mutations/placeOrderWithStripeCardPayment.graphql:1:41:
   Unterminated string constant (1:41)

   While building for web.browser.legacy:

   imports/plugins/core/graphql/lib/mutations/updateFulfillmentOptionsForGroup.graphql:1:41:
   Unterminated string constant (1:41)

   imports/plugins/core/graphql/lib/mutations/createFlatRateFulfillmentMethod.graphql:1:41:
   Unterminated string constant (1:41)

   imports/plugins/core/graphql/lib/mutations/updateFlatRateFulfillmentMethod.graphql:1:41:
   Unterminated string constant (1:41)

   imports/plugins/core/graphql/lib/mutations/deleteFlatRateFulfillmentMethod.graphql:1:41:
   Unterminated string constant (1:41)

   imports/plugins/core/graphql/lib/mutations/placeOrderWithExampleIOUPayment.graphql:1:41:
   Unterminated string constant (1:41)

   imports/plugins/core/graphql/lib/mutations/placeOrderWithStripeCardPayment.graphql:1:41:
   Unterminated string constant (1:41)

   While building for os.windows.x86_64:

   imports/plugins/core/core/server/no-meteor/schemas/address.graphql:1:41:
   Unterminated string constant (1:41)
   imports/plugins/core/core/server/no-meteor/schemas/base.graphql:1:41:
   Unterminated string constant (1:41)

   imports/plugins/core/core/server/no-meteor/schemas/currency.graphql:1:41:
   Unterminated string constant (1:41)
   imports/plugins/core/core/server/no-meteor/schemas/email.graphql:1:41:
   Unterminated string constant (1:41)

   imports/plugins/core/core/server/no-meteor/schemas/metafield.graphql:1:41:
   Unterminated string constant (1:41)
   imports/plugins/core/core/server/no-meteor/schemas/node.graphql:1:41:
   Unterminated string constant (1:41)
   imports/plugins/core/core/server/no-meteor/schemas/shop.graphql:1:41:
   Unterminated string constant (1:41)
   imports/plugins/core/core/server/no-meteor/schemas/tag.graphql:1:41:
   Unterminated string constant (1:41)

   imports/plugins/core/accounts/server/no-meteor/schemas/account.graphql:1:41:
   Unterminated string constant (1:41)

   imports/plugins/core/accounts/server/no-meteor/schemas/group.graphql:1:41:
   Unterminated string constant (1:41)

   imports/plugins/core/accounts/server/no-meteor/schemas/role.graphql:1:41:
   Unterminated string constant (1:41)
   imports/plugins/core/cart/server/no-meteor/schemas/cart.graphql:1:41:
   Unterminated string constant (1:41)

   imports/plugins/core/cart/server/no-meteor/schemas/checkout.graphql:1:41:
   Unterminated string constant (1:41)

   imports/plugins/core/catalog/server/no-meteor/schemas/schema.graphql:1:41:
   Unterminated string constant (1:41)

   imports/plugins/core/orders/server/no-meteor/schemas/schema.graphql:1:41:
   Unterminated string constant (1:41)
Need help... Please advice
Lebzanwa
@Lebzanwa
Dec 12 2018 16:48
=> Your application has errors. Waiting for file change.
F.J. Genus
@FJKhan
Dec 12 2018 20:16
hi everyone :)
does anyone know if there's a minimum order i.e. minimum cart subtotal, setting somewhere?
Abhishek
@thegtagamer
Dec 12 2018 20:41
@FJKhan minimum cart subtotal ?
F.J. Genus
@FJKhan
Dec 12 2018 20:41
@thegtagamer yes
meaning, you cannot proceed to checkout until the items in the cart pass a particular sum. say for example, the minimum order amount is $25 before shipping and taxes. so the cart subtotal has to be >= $25, before the user can proceed to checkout and convert the cart to an order
Abhishek
@thegtagamer
Dec 12 2018 20:44
@FJKhan well if you want to set it to a particular amount you could do it in cartSubTotal under core/checkout
F.J. Genus
@FJKhan
Dec 12 2018 20:45
thanks @thegtagamer . I was just wondering if there was a setting for it, or if I'd have to implement it myself
Abhishek
@thegtagamer
Dec 12 2018 20:51

@FJKhan You're welcome, heres the calculation for subTotal it happens in /lib/collections/transform/cartOrder.js

getSubTotal() {
    let subTotal = 0;
    if (this.taxes) {
      this.taxes.map(function (item) {
        subTotal += item.totalBasePrice;
      });
    } else {
      subTotal = getSummary(this.items, ["quantity"], ["priceWhenAdded", "amount"]);
    }
    return accounting.toFixed(subTotal, 2);
  },

You can refer it for more info

F.J. Genus
@FJKhan
Dec 12 2018 20:54
@thegtagamer lovely. thank you very much