View Single Post
  #9  
Old 04-25-2008, 01:00 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default Re: Extra Fields: Creating and making available for all Providers.

4. Edit file "provider/extra_fields.php":

after this lines:
PHP Code:
#   
# Use this condition when single mode is disabled
#
$provider_condition = ($single_mode "" "AND provider='$login'"); 

Insert the following line:
PHP Code:
if ($login!="provider"func_header_location("home.php"); 

PS. .......$login!="provider"....
If the username "provider who can edit "Extra Fileds" no "provider", change this condition (Replace the "provider" for your provider login).

5. Edit file "skin1/provider/menu.tpl":

find this lines:
PHP Code:
{if $active_modules.Extra_Fields ne ""}
<
a href="{$catalogs.provider}/extra_fields.php" class="VertMenuItems">{$lng.lbl_extra_fields}</a><br />
{/if} 

and replace them with this:
PHP Code:
{if $active_modules.Extra_Fields ne "" and $login eq "provider"}
<
a href="{$catalogs.provider}/extra_fields.php" class="VertMenuItems">{$lng.lbl_extra_fields}</a><br />
{/if} 

PS. .......and $login eq "provider"....
If the username "provider who can edit "Extra Fileds" no "provider", change this condition (Replace the "provider" for your provider login).


If you have any difficulty or questions, I am here.


Total:
- We allowed only one provider to work with "Extra-fileds".
- All providers see the same set of "Extra-fileds" when working with the product.
Reply With Quote