Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Un-comment menu item for providers only

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 10-08-2014, 08:04 AM
 
designguru designguru is offline
 

X-Adept
  
Join Date: Dec 2010
Posts: 418
 

Question 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?
__________________
X-Cart Pro 4.6.2 with many modules
X-CART Pro 4.4.1
Reply With Quote
  #2  
Old 10-13-2014, 01:45 AM
 
designguru designguru is offline
 

X-Adept
  
Join Date: Dec 2010
Posts: 418
 

Default Re: Un-comment menu item for providers only

Anyone knows how to do this.
__________________
X-Cart Pro 4.6.2 with many modules
X-CART Pro 4.4.1
Reply With Quote
  #3  
Old 10-13-2014, 06:02 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,197
 

Default 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
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
designguru (10-13-2014)
  #4  
Old 10-13-2014, 12:16 PM
 
designguru designguru is offline
 

X-Adept
  
Join Date: Dec 2010
Posts: 418
 

Default 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!
__________________
X-Cart Pro 4.6.2 with many modules
X-CART Pro 4.4.1
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 04:41 PM.

   

 
X-Cart forums © 2001-2020