Vendor Link On Order Page

Hi when an order is visible (Order Detail) on the order page in the backend, all the information is there but there is no link for the Vendor Information / Email / Phone Number etc.



Can we some how create a link on that view order page for the vendor admin account so that one can click on it and it can take us to the vendor information page?

hi,



please check file “design/backend/templates/views/companies/components/company_name.tpl” and replace this part:


{if $simple}



with this:


{if $smarty.request.dispatch == 'orders.manage'}

{$object.company_name|default:$_company_name}


{elseif $simple}




after that please clean up the template cache.



best regards,

WSA team

[quote name='Damir (WSA-team)' timestamp='1431002712' post='213677']

hi,



please check file “design/backend/templates/views/companies/components/company_name.tpl” and replace this part:


{if $simple}



with this:


{if $smarty.request.dispatch == 'orders.manage'}

{$object.company_name|default:$_company_name}


{elseif $simple}




after that please clean up the template cache.



best regards,

WSA team

[/quote]



Did the changes and cleared the cache but no change ?



Any idea what could be wrong or if i missed something.

Oh my bad I figured out your change is right but my requirement was on the page order.details not order.manage.

Can you point me for the same since i want to see a link for vendor on the order details page ? Basically for direct communication with Vendor we need his info.

[quote][color=#282828][font=arial, verdana, tahoma, sans-serif]Oh my bad I figured out your change is right but my requirement was on the page order.details not order.manage.[/font][/color]

[color=#282828][font=arial, verdana, tahoma, sans-serif]Can you point me for the same since i want to see a link for vendor on the order details page ? Basically for direct communication with Vendor we need his info. [/font][/color][/quote]



it is difficult to advise in this case so please provide FTP access in private

possibly this would work - please check file “/design/backend/templates/views/orders/details.tpl” and replace this part:

<br />
</span>{if $order_info.company_id} / {$order_info.company_id|fn_get_company_name}{/if}</span><br />

```<br />
with this:<br />
```php
<br />
</span>{if $order_info.company_id} / <a href="{"companies.update?company_id=`$order_info.company_id`"|fn_url}">{$order_info.company_id|fn_get_company_name}{/if}</a></span><br />

```<br />
<br />
After this clean up the cache and the link would appear in company name near title with Order ID<br />
<br />
p.s. if you need further assistance, please don't hesitate to [url="http://hd.webshopaddons.com/open.php"]contact us <img src="upload://b6iczyK1ETUUqRUc4PAkX83GF2O.gif" class="bbc_emoticon" alt=":-)">[/url][url="http://hd.webshopaddons.com/open.php"] [/url]

Excellent info WAMIR it works like a charm, Thank you so much.

you are welcome!