Override default layout and template for vendor

I’m trying to override default layout and template for my cs cart vendor.
there are 2 views, vendor detail and vendor products.
it is possible to do changes on layout manager, however it’s not what i’m looking for.

where to start to override.
for example I’ve done some changes on below file to understand what to do, but still i should deal with default layout.
and i couldn’t found vendor products template.

Microstore uses the following template

/design/themes/responsive/templates/views/companies/products.tpl

and the following template is used for the Vendor details page

/design/themes/responsive/templates/views/companies/view.tpl

Both templates have hooks to change the content through addons

Please check this article:
https://docs.cs-cart.com/latest/developer_guide/addons/hooking/tpl_hooks.html#how-to-override-a-template

Thanks.
I’ve read that, but it doesn’t mention how to render page without default theme layout.
And right now I need help to get default metas, for head, and it’s ready to go.
I’ve explained everything in above reply.

Thanks,
This will help on changing the views, however the next issue was default layout.

I’ve managed to render my own template without default layout, using below hooks :
dispatch_before_display
complete

when I used first hook like below :


    if (Registry::get('runtime.controller') == 'companies' && Registry::get('runtime.mode') == 'view') {
        $company_id = (int) $_REQUEST['company_id'];
        $allowed_company_ids = [1, 2, 3, 4, 5, 6]; // IDS are for testing purposes

        if (in_array($company_id, $allowed_company_ids)) {
//            Tygh::$app['view']->setLayout('empty_layout');
            $template = fn_get_profile_field_data('S', $company_id, 54);


            $template = Tygh::$app['view']->fetch("addons/custom_vendor_layout/views/companies/$template.tpl");
            echo $template;

        }
    }

I managed to get my own template without default layout using exit after echo template.
but the issue was meta tags wasn’t filled at all.
I was including meta tags from theme and seo addon, but the meta values for rendered meta tags from tpl, was emptym or page doesn’t had title.

then when I’ve changed hook to complete and removed exit; I decided to set an empty layout in cs cart, then set tygh_container to none, to get my template with meta tag.

however I’m interested in using dispatch_before_display hook and only implement meta in my own template base on requirement of page such as scripts/css since some vendors might have specific design.

So right now i need help to get default metas, for head, and it’s ready to go.

Actually you can add specific CSS with the template hooks mentioned in my message. There is not need to make php changes in this case