Help to show categories on supplier shop page

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
User avatar
aimeos
Administrator
Posts: 7908
Joined: 01 Jan 1970, 00:00

Re: Help to show categories on supplier shop page

Post by aimeos » 30 Jan 2022, 09:10

You mean this page?
https://laravel.demo.aimeos.org/supplie ... rrency=EUR

You can add this to your own supplier/detail.blade.php file:

Code: Select all

@section('aimeos_body')
    <div class="container-fluid">
        <div class="row">
            <aside class="col-lg-3">
                <?= $aibody['catalog/tree'] ?? '' ?>
            </aside>
            <div class="col-lg-9">
                <?= $aibody['supplier/detail'] ?? '' ?>
                <?= $aibody['catalog/lists'] ?? '' ?>
            </div>
        </div>
    </div>
@stop
The catalog/tree component will add a request to the /count URL which will add the nunber of found products to each category. You can also change its JS code to hide all categories without products for that supplier.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

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

Re: Help to show categories on supplier shop page

Post by aimeos » 31 Jan 2022, 12:23

The category counts are added by this JS code:
https://github.com/aimeos/ai-client-htm ... e-body.php
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply