Page 1 of 1

Injecting Components

Posted: 14 Aug 2015, 21:38
by Luke
Hi,

Thanks for the great product, seems to work extremely well and definitely a much better alternative to Magento!

I am trying to set up a store for a client and we have been provided the frontend HTML from a 3rd party. I have been reading up on how to use the extension builder and have installed it to our Laravel 5.1 build.

I am having some trouble working out how to incorporate sections (ie the basket or search form) onto a blade template. Looking through the code in the themes, they all seem to spit out PHP variables I assume preloaded with HTML.

What I would like to do is build around our existing theme and just put in the partials where they need to be.

Please let me know how this would work as I am racking my brain over the documentation (very well documented, maybe a little too well!) trying to work out what to do.

Thanks :D

Re: Injecting Components

Posted: 14 Aug 2015, 23:59
by aimeos
Luke wrote: Thanks for the great product, seems to work extremely well and definitely a much better alternative to Magento!
Thanks, that's good to know ;-)
Luke wrote: I am having some trouble working out how to incorporate sections (ie the basket or search form) onto a blade template. Looking through the code in the themes, they all seem to spit out PHP variables I assume preloaded with HTML.

What I would like to do is build around our existing theme and just put in the partials where they need to be.
Did you've read https://aimeos.org/docs/Laravel/Adapt_pages?
You can adapt all views located in "./resources/views/vendor/shop" that way.

To create new pages including Aimeos components, this article may be helpful: https://aimeos.org/docs/Laravel/Create_new_pages

If that doesn't help you understanding the system, make a concrete example of what you want to do. Then we can describe the exact steps to get there :-)