X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Un-comment menu item for providers only (https://forum.x-cart.com/showthread.php?t=70189)

designguru 10-08-2014 08:04 AM

Comment order_info.tpl to hide for provider only
 
I would like to comment the customer information section within order information (provider area).
I don't want providers to see the full adress and email of the customer.

So therefore I would comment the Customer info and shipping information in /common_files/main/history_order.tpl
The customer information and shipping address is included within main/order_info.tpl. But this template is also used for admin. What code do I need to wrap around the commented section so it only gets hidden for providers?

designguru 10-13-2014 01:45 AM

Re: Un-comment menu item for providers only
 
Anyone knows how to do this.

cflsystems 10-13-2014 06:02 AM

Re: Un-comment menu item for providers only
 
{if $current_area eq 'X'}

where X is one of these
C - customer
P - provider
A - admin
B - partner

designguru 10-13-2014 12:16 PM

Re: Un-comment menu item for providers only
 
Quote:

Originally Posted by cflsystems
{if $current_area eq 'X'}

where X is one of these
C - customer
P - provider
A - admin
B - partner


With your hint I was able to hide different stuff too but not the areas I wanted too. I broke the page (was no mistake there like a left bracket etc.)

I want to out-comment the Customer Information. Do you happen to have the exact code (area to comment to not break it)?

Thank you!


All times are GMT -8. The time now is 10:10 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.