[size=5]I want remove or hide vendor contact information from vendor main page.[/size]
[size=5]Please help me i have added screenshot[/size]
I edited this page to remove everything except vendor logo, description & website: templates / views / companies / view.tpl
[quote name='Angeltown' timestamp='1425763083' post='207392']
I edited this page to remove everything except vendor logo, description & website: templates / views / companies / view.tpl
[/quote]
does not seem to work. I have removed the code in multiple files in a folder view.tpl company
It works. The only file you need to edit (or add to My Changes) to change each vendor's page is : templates / views / companies / view.tpl
The following example will display only the logo, description & url in a simplified format.
{hook name="companies:view"}
{assign var="obj_id" value=$company_data.company_id}
{assign var="obj_id_prefix" value="`$obj_prefix``$obj_id`"}
{include file="common/company_data.tpl" company=$company_data show_name=true show_descr=true show_rating=true show_logo=true hide_links=true}
{$company_data.company}
{hook name="companies:top_links"}
{/hook}
{assign var="capture_name" value="logo_`$obj_id`"}
{$smarty.capture.$capture_name nofilter}
{if $company_data.company_description}
{$company_data.company_description nofilter}
{/if}
{__("categories")}
{__("name")}
{__("products_amount")}
{foreach from=$company_categories item="category"}
{$category.category}
{$category.count}
{/foreach}
{/hook}
How to add this to my_changes please? Not familiar with that.
Thank you.
design/themes/responsive/templates/addons/my_changes/hooks/companies/view.override.tpl
Create file and place mentioned code to this file. Then clear cache
design/themes/responsive/templates/addons/my_changes/hooks/companies/view.override.tpl
Create file and place mentioned code to this file. Then clear cache
Thank you. I was created in the wrong directory. :)
You are welcome!
I have hided the contact information with my_changes. Question: is it possible to hide part of address and leave only country and city visible?
Thank you.
Why not?
Why not?
How I can do that please? :)
replace
{$address="address_`$obj_id`"} {if $smarty.capture.$address|trim}{$smarty.capture.$address nofilter}{/if}{$location_full="location_full_`$obj_id`"} {if $smarty.capture.$location_full|trim}
{$smarty.capture.$location_full nofilter}{/if}
{$company_data.city nofilter}
Thanks ecomm
I asked you on my other post, but you already missioned here today :) thanks a lot
two more question :
After any upgrade , would it remain or will change have to be done again ?
can you confirm this one manipulation in my changes will apply to ALL vendors (not just one )
Thank you !
replace
{$address="address_`$obj_id`"} {if $smarty.capture.$address|trim}{$smarty.capture.$address nofilter}{/if}{$location_full="location_full_`$obj_id`"} {if $smarty.capture.$location_full|trim}
{$smarty.capture.$location_full nofilter}{/if}with{$company.city nofilter}
Thank you. It works but shows only country. I would like country and city to show.
Regards
Thank you. It works but shows only country. I would like country and city to show.
Regards
I can't find this lines in post #4 ?
{$address="address_`$obj_id`"}
{if $smarty.capture.$address|trim}
<div class="ty-company-detail__control-group">
{$smarty.capture.$address nofilter}span>
div>
{/if}
{$location_full="location_full_`$obj_id`"}
{if $smarty.capture.$location_full|trim}
<div class="ty-company-detail__control-group">
{$smarty.capture.$location_full nofilter}span>
div>
{/if}
I can't find this lines in post #4 ?
{$address="address_`$obj_id`"}
{if $smarty.capture.$address|trim}
<div class="ty-company-detail__control-group">
{$smarty.capture.$address nofilter}span>
div>
{/if}
{$location_full="location_full_`$obj_id`"}
{if $smarty.capture.$location_full|trim}
<div class="ty-company-detail__control-group">
{$smarty.capture.$location_full nofilter}span>
div>
{/if}
I don't follow post #4. I have created file in directory from my MV original file and made changes.
design/themes/responsive/templates/addons/my_changes/hooks/companies/view.override.tpl
yes that's what i did but from the admin panel (design>theme>responsive>template )
did you do it from your server ?
that's where i am expecting to do the change , so i did put #4 in this
design/themes/responsive/templates/addons/my_changes/hooks/companies/view.override.tpl
Create file and place mentioned code to this file. Then clear cache
please could you clarify ? is it the code mentioned code in post #4 ? because I cant see any other
thank you
please could you clarify ? is it the code mentioned code in post #4 ? because I cant see any other
thank you
I have placed whole code from design/themes/responsive/templates/companies/view.tpl
to design/themes/responsive/templates/addons/my_changes/hooks/companies/view.override.tpl
and made changes:
replace
{if $smarty.capture.$address|trim}
<div class="ty-company-detail__control-group">
{$smarty.capture.$address nofilter}span>
div>
{/if}
{$location_full="location_full_`$obj_id`"}
{if $smarty.capture.$location_full|trim}
<div class="ty-company-detail__control-group">
{$smarty.capture.$location_full nofilter}span>
div>
{/if}
{$company.city nofilter}
I have placed whole code from design/themes/responsive/templates/companies/view.tpl
to design/themes/responsive/templates/addons/my_changes/hooks/companies/view.override.tpl
and made changes:
replace
{$address="address_`$obj_id`"}
{if $smarty.capture.$address|trim}
<div class="ty-company-detail__control-group">
{$smarty.capture.$address nofilter}span>
div>
{/if}
{$location_full="location_full_`$obj_id`"}
{if $smarty.capture.$location_full|trim}
<div class="ty-company-detail__control-group">
{$smarty.capture.$location_full nofilter}span>
div>
{/if}withclass="ty-company-detail__control-group">
{$company.city nofilter}
thank you very much
I find it , it worked but only the country shows , and there still the email contact visible
I am going to wait with you for ecomm answer, as I also wish for country and city to appear.
Thanks a lot