View Single Post
  #8  
Old 04-25-2008, 12:38 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.

Quote:
Originally Posted by ScrapProfessor
That's fine. Thank you. Talk to you soon!

There is a solution to your problem:

We allow only one provider to change "Extra-Fileds", while other providers can only fill "Extra-Fileds" in the creation of their product.


The obligatory initial condition - no "Extra-Fileds" for all providers.


The order changes:
1. Create the backup site

2. Create provider (We need to know his login). You can use the provider, established by default (login: provider).

3. Edit file "modules/Extra_Fields/extra_fields.php",

Find the following line:
PHP Code:
$provider_condition = ($single_mode "" " AND $sql_tbl[extra_fields].provider='$extra_fields_provider' "); 

And replaced by:
PHP Code:
//$provider_condition = ($single_mode ? "" : " AND $sql_tbl[extra_fields].provider='$extra_fields_provider' "); 
Reply With Quote