how to use catalog-filter-search singly in header of shop page?

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!
Ahmad
Posts: 72
Joined: 05 Jul 2017, 15:19

how to use catalog-filter-search singly in header of shop page?

Post by Ahmad » 21 Aug 2020, 08:03

i want to use search box (catalog-filter-search) single and without other filters in another place in pages, i mean i want to put search box in header of my pages and set custom styles for it and remove it from catalog filter.
how can i do this?

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

Re: how to use catalog-filter-search singly in header of shop page?

Post by aimeos » 22 Aug 2020, 10:05

Please have a look at:
https://aimeos.org/docs/Laravel/Adapt_pages

The catalog-search part is also available as single component:
https://github.com/aimeos/aimeos-larave ... op.php#L24
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
parmonov98
Posts: 33
Joined: 24 Sep 2020, 12:12

Re: how to use catalog-filter-search singly in header of shop page?

Post by parmonov98 » 08 Oct 2020, 04:44

Hey, Admin! I want the same thing, I changed config in shop.php. catalog/filter to catalog/search but it thew the error:
https://imgur.com/pF0Vti5

what am I supposed here? change aimeos-laravel package? or do you have another solution?

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

Re: how to use catalog-filter-search singly in header of shop page?

Post by aimeos » 08 Oct 2020, 11:58

You have to copy the ./vendor/aimeos/aimeos-laravel/src/views/ to resources/views/vendor/shop/ and adapt them, i.e. remove the catalog/filter and add the catalog/search part
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

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

Re: how to use catalog-filter-search singly in header of shop page?

Post by aimeos » 09 Oct 2020, 09:16

We've simplified this in aimeos/aimeos-laravel:2020.10.x-dev so you don't need to adapt the Blade templates any more :-)
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
parmonov98
Posts: 33
Joined: 24 Sep 2020, 12:12

Re: how to use catalog-filter-search singly in header of shop page?

Post by parmonov98 » 12 Oct 2020, 11:31

aimeos wrote: 09 Oct 2020, 09:16 We've simplified this in aimeos/aimeos-laravel:2020.10.x-dev so you don't need to adapt the Blade templates any more :-)
https://i.imgur.com/qD9akQV.png why am I getting this? Did I mistype version? errors tell me that.

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

Re: how to use catalog-filter-search singly in header of shop page?

Post by aimeos » 12 Oct 2020, 11:52

Remove the "~" character, the correct version required by composer is "2020.10.x-dev"
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply