how can i hide url of vendors without store on the product page?
for example:
{if $vendor_store = 'Y'}
{/if}
how can i hide url of vendors without store on the product page?
for example:
{if $vendor_store = 'Y'}
{/if}
you need to create a custom addon or use an existing one.
In product controller add:
use Tygh\Models\Company; .... ....$company = Company::model()->find($product['company_id']); if ($company->vendor_store) { Tygh::$app['view']->assign('vendor_store', true); }
then within file design/themes/responsive/templates/views/companies/components/product_company_data.tpl you need to override the hook: companies:product_company_data like this:
{if $vendor_store} ......... {/if}
Hope this helps.
If however you have doubts do not hesitate to hire me to apply this mod
you need to create a custom addon or use an existing one.
In product controller add:
use Tygh\Models\Company; .... ....$company = Company::model()->find($product['company_id']); if ($company->vendor_store) { Tygh::$app['view']->assign('vendor_store', true); }
then within file design/themes/responsive/templates/views/companies/components/product_company_data.tpl you need to override the hook: companies:product_company_data like this:
{if $vendor_store} ......... {/if}Hope this helps.
If however you have doubts do not hesitate to hire me to apply this mod
Where exactly should i add this $company = Company::model()->find($product['company_id']);
if ($company->vendor_store) {
Tygh::$app['view']->assign('vendor_store', true);
} ? i mean the file path, i tried adding to app/controllers/frontend/product.php but it broke the site