These are chat archives for reactioncommerce/reaction

22nd
Apr 2019
Chandran
@chandrantwins
Apr 22 09:50
Hi reaction experts
i have following problem .. while checkout i could not select shipping method
No fulfillment methods
anybody faced similiar problem?
Loan Laux
@loan-laux
Apr 22 11:03
Hey @chandrantwins, did you enable the default flat rates? Not only do you have to enable flat rate shipping as a whole, but you also need to edit each flat rate and check the "Enable" box in the edit form.
@sterowney That was well needed. Thanks for the PR!
Chandran
@chandrantwins
Apr 22 11:04
yes i have enabled @loan-laux
How to enable default flat rates?
Loan Laux
@loan-laux
Apr 22 11:05
In the flat rate list, click one of the rates, check "Enabled" and save the update
Your checkout should work then
Chandran
@chandrantwins
Apr 22 11:06
do i need to enable all three flat rates?
image.png
this is for standard
image.png
Loan Laux
@loan-laux
Apr 22 11:07
Well, just enable the ones you need
Chandran
@chandrantwins
Apr 22 11:07
ok @loan-laux .. thanks i will try now
still i am getting like this @loan-laux
image.png
How to clear cache for frontend @loan-laux
i think it may load from cache
Loan Laux
@loan-laux
Apr 22 11:13
@chandrantwins You need to update your cart for the changes to take effect. Change the quantity of an item in the cart and go back to the checkout. Does that work?
Chandran
@chandrantwins
Apr 22 11:17
i changed quantity but its not working @loan-laux
Loan Laux
@loan-laux
Apr 22 11:24
Getting any error? You've got to help me here
Chandran
@chandrantwins
Apr 22 11:31
i am getting this warning @loan-laux
Warning: Cannot update during an existing state transition (such as within render). Render methods should be a pure function of props and state.
stack_frame_overlay_proxy_console @ index.js:2178
warningWithoutStack @ react-dom.development.js:506
warnAboutInvalidUpdates @ react-dom.development.js:17346
scheduleWorkToRoot @ react-dom.development.js:18626
scheduleWork @ react-dom.development.js:18698
enqueueForceUpdate @ react-dom.development.js:12496
Component.forceUpdate @ react.development.js:393
(anonymous) @ index.module.js:881
push.../node_modules/mobx/lib/mobx.module.js.Reaction
KaTeX parse error: Can't use function '$' in math mode at position 166: …
batchedUpdates$̲1 @ react-dom.d…: 1.runReaction @ mobx.module.js:1705
runReactionsHelper @ mobx.module.js:1836
reactionScheduler @ mobx.module.js:1814
(anonymous) @ mobx.module.js:1843
batchedUpdates$1 @ react-dom.development.js:19260
reactionScheduler @ mobx.module.js:1843
runReactions
1 @ mobx.module.js:1819
endBatch1@mobx.module.js:1521endAction@mobx.module.js:692executeAction1 @ mobx.module.js:1521 endAction @ mobx.module.js:692 executeAction1 @ mobx.module.js:659
res @ mobx.module.js:639
(anonymous) @ withViewer.js:31
finish @ react-apollo.browser.umd.js:462
Query.render @ react-apollo.browser.umd.js:466
finishClassComponent @ react-dom.development.js:14534
updateClassComponent @ react-dom.development.js:14489
beginWork @ react-dom.development.js:15335
performUnitOfWork @ react-dom.development.js:18150
workLoop @ react-dom.development.js:18190
renderRoot @ react-dom.development.js:18276
performWorkOnRoot @ react-dom.development.js:19165
performWork @ react-dom.development.js:19077
performSyncWork @ react-dom.development.js:19051
requestWork @ react-dom.development.js:18920
scheduleWork @ react-dom.development.js:18729
scheduleRootUpdate @ react-dom.development.js:19397
updateContainerAtExpirationTime @ react-dom.development.js:19425
updateContainer @ react-dom.development.js:19482
ReactRoot.render @ react-dom.development.js:19774
legacyRenderSubtreeIntoContainer @ react-dom.development.js:19929
render @ react-dom.development.js:19971
renderReactElement @ index.js:338
_callee5$ @ index.js:397
tryCatch @ runtime.js:62
invoke @ runtime.js:288
prototype.(anonymous function) @ runtime.js:114
asyncGeneratorStep @ asyncToGenerator.js:5
_next @ asyncToGenerator.js:27
(anonymous) @ asyncToGenerator.js:34
F @ _export.js:36
(anonymous) @ asyncToGenerator.js:23
doRender @ index.js:343
_callee2$ @ index.js:233
tryCatch @ runtime.js:62
invoke @ runtime.js:288
prototype.(anonymous function) @ runtime.js:114
asyncGeneratorStep @ asyncToGenerator.js:5
_next @ asyncToGenerator.js:27
(anonymous) @ asyncToGenerator.js:34
F @ _export.js:36
(anonymous) @ asyncToGenerator.js:23
render @ index.js:205
(anonymous) @ index.js:177
(anonymous) @ router.js:794
(anonymous) @ _collection.js:40
notify @ router.js:793
set @ router.js:528
_callee2$ @ router.js:337
tryCatch @ runtime.js:62
invoke @ runtime.js:288
prototype.(anonymous function) @ runtime.js:114
asyncGeneratorStep @ asyncToGenerator.js:5
_next @ asyncToGenerator.js:27
Promise.then (async)
asyncGeneratorStep @ asyncToGenerator.js:15
_next @ asyncToGenerator.js:27
(anonymous) @ asyncToGenerator.js:34
F @ _export.js:36
(anonymous) @ asyncToGenerator.js:23
change @ router.js:362
push @ router.js:244
SingletonRouter.(anonymous function) @ index.js:75
(anonymous) @ routes.js:18
MiniCart._this.handleCheckoutButtonClick @ MiniCart.js:107
(anonymous) @ Button.mjs:69
invokeFunc @ index.js:160
leadingEdge @ index.js:170
debounced @ index.js:235
callCallback @ react-dom.development.js:149
invokeGuardedCallbackDev @ react-dom.development.js:199
invokeGuardedCallback @ react-dom.development.js:256
invokeGuardedCallbackAndCatchFirstError @ react-dom.development.js:270
executeDispatch @ react-dom.development.js:561
executeDispatchesInOrder @ react-dom.development.js:583
executeDispatchesAndRelease @ react-dom.development.js:680
executeDispatchesAndReleaseTopLevel @ react-dom.development.js:688
forEachAccumulated @ react-dom.development.js:662
runEventsInBatch @ react-dom.development.js:816
runExtractedEventsInBatch @ react-dom.development.js:824
handleTopLevel @ react-dom.development.js:4824
batchedUpdates
is that problem @loan-laux ?
@loan-laux even i could not change address.. while checkout..
Chandran
@chandrantwins
Apr 22 12:30
@loan-laux do we have search functionality in starter kit?
Daniel Honig
@dhonig
Apr 22 12:31
@chandrantwins no that is backend.
Its done through Mongo but you could replace it with Algolia, or Elastic.co
Whatever reverse-inded you like. Mongo can take you very far for search
When reaction starts it builds a ProductSearch collection for search.
Chandran
@chandrantwins
Apr 22 12:32
@dhonig then how can we implement search functionality in starter kit
thanks for your reply
Daniel Honig
@dhonig
Apr 22 12:33
you don't.
Chandran
@chandrantwins
Apr 22 12:33
is there any search settings?
Daniel Honig
@dhonig
Apr 22 12:33
You implement it in the backend and use the GraphQL api
Chandran
@chandrantwins
Apr 22 12:33
in 2.0 version
Daniel Honig
@dhonig
Apr 22 12:33
it may need to be extended to suit your needs
Chandran
@chandrantwins
Apr 22 12:36
is that 2.0 reaction also applicable with this documentation @dhonig
Daniel Honig
@dhonig
Apr 22 12:36
as far as I can tell @chandrantwins
Chandran
@chandrantwins
Apr 22 12:38
@dhonig i could not figure out i am getting No fulfillment methods in shipping method
Daniel Honig
@dhonig
Apr 22 12:38
right
that should just be a matter of enabling the flat fee methods
in the admin
so then you should see flat/rate
etc during checkout
Chandran
@chandrantwins
Apr 22 12:45
i have already enabled.. in 2.0 version
Daniel Honig
@dhonig
Apr 22 12:45
you might try deleting your local storage and re-initializing your browser session
in firefox I do this by hitting shift-F9
in crhome I use a plugin to manage local storage
then take it from the top from shopping to checkout
Chandran
@chandrantwins
Apr 22 12:47
oh ok thanks @dhonig i will try now
yes perfect its wokring now..
Chandran
@chandrantwins
Apr 22 12:52
after deleting local storage @dhonig
thanks @dhonig
Daniel Honig
@dhonig
Apr 22 12:52
;)
Daniel Honig
@dhonig
Apr 22 13:04
@chandrantwins let me know if I can be of any more assistance
Loan Laux
@loan-laux
Apr 22 13:05
Sorry I was AFK @chandrantwins. Glad @dhonig could sort it out!
Chandran
@chandrantwins
Apr 22 13:05
i need to figure out how to customize search in backend.
Daniel Honig
@dhonig
Apr 22 13:06
Start with installing that plugin in the article and go from there
Chandran
@chandrantwins
Apr 22 13:06
i could not find search in product list page
Daniel Honig
@dhonig
Apr 22 13:06
I don't see the plugin included any more
The philosohphy has changed from 1.5 to 2.0. Now the core is very light. It used to be more "everything is included"
Loan Laux
@loan-laux
Apr 22 13:06
There's no official search plugin anymore. The Reaction team is building an ElasticSearch integration, but in the meantime there's no search support.
Chandran
@chandrantwins
Apr 22 13:07
ok @loan-laux
Loan Laux
@loan-laux
Apr 22 13:07
But adding a new GraphQL query with a resolver that performs a simple text search in MongoDB shouldn't be an issue
Chandran
@chandrantwins
Apr 22 13:08
@loan-laux is that search funtionality in roadmap?
Loan Laux
@loan-laux
Apr 22 13:08
It is
Chandran
@chandrantwins
Apr 22 13:08
when it will be available in 2.0 version
Loan Laux
@loan-laux
Apr 22 13:08
As I said, the plan is to have it done with ElasticSearch instead of relying only on MongoDB
Daniel Honig
@dhonig
Apr 22 13:08
I still think 1.9 plugin could be adapted pretty reasily
Loan Laux
@loan-laux
Apr 22 13:08
No idea on the ETA, I'm not sure it's been announced at all
@dhonig +1
Chandran
@chandrantwins
Apr 22 13:09
oh ok @dhonig
Daniel Honig
@dhonig
Apr 22 13:09
MongoDB isn't the end all for e-comm search, but you can get pretty far-> https://github.com/rubnvp/mongo-facets
for inspiration
Chandran
@chandrantwins
Apr 22 13:13
ok thanks @dhonig
Daniel Honig
@dhonig
Apr 22 13:13
Let us know what you come up with. Not every store will want to add another dependency.
@chandrantwins some more color there
Chandran
@chandrantwins
Apr 22 14:55
ok thanks @dhonig
Chandran
@chandrantwins
Apr 22 16:23
Hi Once Product ordered .. is there any option to cancel or return the product?
like amazon
@dhonig @loan-laux .. do you have any idea on this ?
Loan Laux
@loan-laux
Apr 22 16:24
@chandrantwins From the operator UI or from the storefront?
Chandran
@chandrantwins
Apr 22 16:25
from both please
Loan Laux
@loan-laux
Apr 22 16:26
From the operator UI, you absolutely can cancel an order
Just have a look at the order management interface and you'll find the option in the order details
Chandran
@chandrantwins
Apr 22 16:27
yes i can see from here
image.png
is there any option from storefront?
Loan Laux
@loan-laux
Apr 22 16:28
Not sure about the storefront, you'll have to check in the order history UI. If it's not there yet then I know it's on the roadmap.
Chandran
@chandrantwins
Apr 22 16:29
ok thanks @loan-laux I will check
Chandran
@chandrantwins
Apr 22 20:01
@loan-laux do you have any idea? is it possible to create multiple stores in single operator site?
anyone created before please share your experience