These are chat archives for reactioncommerce/reaction

1st
Dec 2016
Kolawole Michael Alade
@michael-alade
Dec 01 2016 11:47
@zenweasel How does an order get created in reaction?
Where does the Orders.insert happen?
in cart/copyCartToOrder method
tdmoneybanks
@tdmoneybanks
Dec 01 2016 15:08
is the plan to always use the bootstrap lib as a dep?
i am trying to create a materialize css theme but the use of $(...).collapse() within the reaction code base (i believe this function comes from bs) causes an error when i include materialize js. i assume due to some conflict
tdmoneybanks
@tdmoneybanks
Dec 01 2016 15:23
i noticed that all of bs js and css is coming through the default theme
however, when you turn it off,
it breaks the client code for child varient
specifically these links
lines

Template.onRendered(function () {
this.autorun(() => {
const selectedVariantId = Reaction.Router.getParam("variantId");

$(`div.child-variant-collapse:not(#child-variant-form-${selectedVariantId})`).collapse("hide");
$(`#child-variant-form-${selectedVariantId}`).collapse("show");

});
});

Lorenzo Campanis
@lcampanis
Dec 01 2016 15:34
@tdmoneybanks Themes currently inherit the base theme and are autoincluded in the order they appear in your plugins/custom folder, you won't be able to just turn it off, but you can override things easily https://docs.reactioncommerce.com/reaction-docs/development/creating-a-theme#install-theme
Jeremy Shimko
@jshimko
Dec 01 2016 15:39
Yeah, you will unfortunately have to override tempaltes with Bootstrap-specific behavior in them if you want to remove Bootstrap. We’re trying to make this more flexible, but it’s not quite there yet.
tdmoneybanks
@tdmoneybanks
Dec 01 2016 15:52
alright thanks for the updates guys!
just btw
the main reason i pointed out this specific instance
is that it is using bootstrap
but can not be overridden
since it is a "global" template rendered call
Jeremy Shimko
@jshimko
Dec 01 2016 15:56
“it’ll all be different when we switch to React…”. ;)
tdmoneybanks
@tdmoneybanks
Dec 01 2016 15:57
ill just comment out those calls for now:)
Jeremy Shimko
@jshimko
Dec 01 2016 15:57
in the meantime, if you come up with a solution, we’re always open to contributions.
tdmoneybanks
@tdmoneybanks
Dec 01 2016 15:57
alright ill see if i can at the very least move it to a less global spot
is there a reason it cant just be on the product variant template itself?
Jeremy Shimko
@jshimko
Dec 01 2016 15:58
Not sure without digging. That sounds worth trying though
tdmoneybanks
@tdmoneybanks
Dec 01 2016 16:02
alright ill check it out
Spencer Norman
@spencern
Dec 01 2016 16:49
Random, but 12 minutes to go on the FontAwesome5 kickstarter if you want to lock in FA5 at $20 https://www.kickstarter.com/projects/232193852/font-awesome-5?ref=card
Jeremy Shimko
@jshimko
Dec 01 2016 16:52
pretty hilarious video
Spencer Norman
@spencern
Dec 01 2016 16:53
yeah, reminds me a lot of the dollar shave club vid
Jeremy Shimko
@jshimko
Dec 01 2016 16:53
sure does
Spencer Norman
@spencern
Dec 01 2016 16:54
also, the (now that they’ve hit $1MM mark) open source SVG framework should be useful
Lorenzo Campanis
@lcampanis
Dec 01 2016 17:09
hilarious!