Hide In Order Customer Informaion Vendor Panel

Hi. How can we hide in order, customer information on vendor.

hide_customer_information.png

design/backend/templates/views/orders/details.tpl

try to replace

{include file="views/order_management/components/profiles_info.tpl" user_data=$order_info location="I" form_id="order_info_form"}

with

{if $smarty.const.ACCOUNT_TYPE != 'vendor'}
{include file="views/order_management/components/profiles_info.tpl" user_data=$order_info location="I" form_id="order_info_form"}
{/if}

Then clear cache and check

if you familiar with hooks, it can be done with the My changes module

(!) Not tested

Thanks ecom. But its not works can we put there??

vendor_multivendor.post.php

Thanks ecom. But its not works can we put there??

vendor_multivendor.post.php


Hello!

There is a typo in post #2. The condition should be

{if $smarty.const.ACCOUNT_TYPE != 'vendor'}

Please note that it will hide not only customer information section, but also billing and shipping address sections. If you want to hide only customer information, you need the design/backend/templates/views/order_management/components/profiles_info.tpl file.

Also you should be logged in as vendor, not just select vendor from the top panel.

Thanks ecom. But its not works can we put there??

vendor_multivendor.post.php

Sorry, post corrected. Unfortunately, you cannot hide this information with vendor_multivendor.post.php

Can we hide in order right panel "Payment Ä°nformation" . Because if customer incomplete order card information is still show there its critical information about card number. Soo we dont see there in vendor page.

Use orders:payment_info hook in the design/backend/templates/views/orders/details.tpl file to add condition by order status. For example, you can wrap hook content with the following code

{if $order_info.status != 'N'}
   .....
{/if}

Thanks ecomlab

in Vendor Page not whole order status can we only hide "payment information" vendor can see complete incomplete etc. but nothing see "credit card number"

Thanks ecomlab

in Vendor Page not whole order status can we only hide "payment information" vendor can see complete incomplete etc. but nothing see "credit card number"

Yes, payment information code is located in the mentioned hook (between the following lines)

{hook name="orders:payment_info"}
....
{/hook}|

Ecomlabs

Thanks for all

Is there a way to implement this through the Vendor privileges add-on? That way, we can create a user group that will not be able to see customer data. And another user group that can see the data. The reason I’m asking this is because we have our own vendor account on our marketplace and we would like to see customer data just like normal, while other vendors can’t.



Many thanks


Hello!

There is a typo in post #2. The condition should be

{if $smarty.const.ACCOUNT_TYPE != 'vendor'}
Please note that it will hide not only customer information section, but also billing and shipping address sections. If you want to hide only customer information, you need the design/backend/templates/views/order_management/components/profiles_info.tpl file.

Also you should be logged in as vendor, not just select vendor from the top panel.

Is there a way to implement this through the Vendor privileges add-on? That way, we can create a user group that will not be able to see customer data. And another user group that can see the data. The reason I'm asking this is because we have our own vendor account on our marketplace and we would like to see customer data just like normal, while other vendors can't.

I am afraid, additional development is required to do it