Best Approach for View Customer
Hey!
I want to put the customer box (infolist) next to the last order placed (widget) and also make it responsive so that last order place is slightly wider to fit snug with the customer info.
Am I better off makin it a custom page? Have I done the right approach with making last order a widet and customer info an infolist or am I approaching this wrong?
https://gist.github.com/Diddyy/39abf6ff8dafd3953ff61fa38a87c069
6 Replies
No need for a custom page. Just use a grid layout component. Sharing some code would help too.
Cheers dude! I did Gist all the relevent parts in the OP 🙂
I don't know why but I am really drawing a blank at how I can get the two next to each other. See the original gist.
Its because I have to edit infobuilder in the CustomerResource and the LastOrder widget in ViewCustomer. The widget is a 'Header Widget'
Didn’t realize one was a widget. Sorry. You’ll need to do a custom page then.
It might work to turn LastOrder an info list component and add that to the existing info list using a grid like mentioned before.
Just curious @awcodes how you would approach it. Keep last order as a widget and just call it on a custom page so I can position it next to an infolist or is there a better approach I’m not thinking of?
I would just make a custom view page. It’s all in the docs.