Injecting Components

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Luke
Posts: 13
Joined: 14 Aug 2015, 21:34

Injecting Components

Post by Luke » 14 Aug 2015, 21:38

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

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Injecting Components

Post by aimeos » 14 Aug 2015, 23:59

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 :-)

Post Reply