Thread: File location

Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2008
    Location
    Sydney Australia
    Posts
    682
    Plugin Contributions
    0

    Default File location

    Hi All,

    I appear to have made an error somewhere with a file and now I am showing two fields called Condition in the product editing section.

    I did a search in Developers tool kit searching for the word Condition: but could not see any difference from my live site to the dev site files (which I am working on) that came up.

    The live site shows only the one condition field which was a field produced by numinix module and the same on the dev site. Image below of the conditions field I am talking about.
    Click image for larger version. 

Name:	Category Product.jpg 
Views:	217 
Size:	22.7 KB 
ID:	20972

    If anyone could tell me what file I should be looking at it would be a great help as I am unable to locate it.

  2. #2
    Join Date
    Apr 2008
    Location
    Qld, Australia
    Posts
    312
    Plugin Contributions
    6

    Default Re: File location

    With Numinix Product fields the "Condition" fields comes from YOUR_ADMIN\includes\npf_includes\npf_templates\common.php. If this is not duplicated then you are probably calling it twice in the "collect_info.php" file eg look for something like
    Code:
             <!--BOF NPF [5 of 6] --><?php
      $dirList = dirList(NPF_INCLUDES_TEMPLATES_FOLDER);
      foreach ($dirList as $file) {
        include(NPF_INCLUDES_TEMPLATES_FOLDER . $file);  
      }
    ?>
              <!--EOF NPF [5 of 6]-->
    OldNGrey
    ZC158a PHP 8.2.15
    MySQL 10.6.16-MariaDB

  3. #3
    Join Date
    Aug 2008
    Location
    Sydney Australia
    Posts
    682
    Plugin Contributions
    0

    Default Re: File location

    Quote Originally Posted by OldNGrey View Post
    With Numinix Product fields the "Condition" fields comes from YOUR_ADMIN\includes\npf_includes\npf_templates\common.php. If this is not duplicated then you are probably calling it twice in the "collect_info.php" file eg look for something like
    Code:
             <!--BOF NPF [5 of 6] --><?php
      $dirList = dirList(NPF_INCLUDES_TEMPLATES_FOLDER);
      foreach ($dirList as $file) {
        include(NPF_INCLUDES_TEMPLATES_FOLDER . $file);  
      }
    ?>
              <!--EOF NPF [5 of 6]-->
    This is what is on the live site and the DEV site it is only showing the one conditions box on live site. File information:
    <div class="form-group">
    <?php echo zen_draw_label(TEXT_PRODUCTS_CONDITION, 'products_condition', 'class="col-sm-3 control-label"'); ?>
    <div class="col-sm-9 col-md-6">
    <?php echo zen_draw_input_field('products_condition', $pInfo->products_condition, 'class="form-control"'); ?>
    </div>
    </div>

    Screen shot of what is showing below on live site:
    Click image for larger version. 

Name:	Live site.jpg 
Views:	7 
Size:	19.2 KB 
ID:	20974

  4. #4
    Join Date
    Aug 2008
    Location
    Sydney Australia
    Posts
    682
    Plugin Contributions
    0

    Default Re: File location

    Quote Originally Posted by OldNGrey View Post
    With Numinix Product fields the "Condition" fields comes from YOUR_ADMIN\includes\npf_includes\npf_templates\common.php. If this is not duplicated then you are probably calling it twice in the "collect_info.php" file eg look for something like
    Code:
             <!--BOF NPF [5 of 6] --><?php
      $dirList = dirList(NPF_INCLUDES_TEMPLATES_FOLDER);
      foreach ($dirList as $file) {
        include(NPF_INCLUDES_TEMPLATES_FOLDER . $file);  
      }
    ?>
              <!--EOF NPF [5 of 6]-->
    Thank you OldNGrey it fixed the issue with two fields showing up on the dev site.

    I am now wondering if I should install the latest version of the nuninix module on the dev site for testing.

  5. #5
    Join Date
    Apr 2008
    Location
    Qld, Australia
    Posts
    312
    Plugin Contributions
    6

    Default Re: File location

    I run several versions of the store.
    I have a dev version where changes can be made. If the changes pass I will install them on a test site where I can run a series of tests as admin and as users.
    If the changes pass and only if 100% certain will I install them on a "pre-prod" (pre production) site. The pre-prod site is a copy of production and can always be used to compare to the production site that the world can see. Making changes to pre-prod means updating my documentation that shows what configuration settings are required and the sequence to make them + lists of all files in that change.
    This is necessary so my production system has minimal down time when making changes and I know exactly what I am changing.

    Before I install any updates such as the latest version of Product Fields, I compare the new version against the old using WinMerge to see what has changed.
    OldNGrey
    ZC158a PHP 8.2.15
    MySQL 10.6.16-MariaDB

 

 

Similar Threads

  1. install file location
    By BlankTheMan in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 24 Jun 2011, 10:28 AM
  2. EZ Pages - file location?
    By bertles86 in forum General Questions
    Replies: 5
    Last Post: 7 Jun 2010, 03:06 PM
  3. File Location?????
    By buttonmanb in forum General Questions
    Replies: 1
    Last Post: 5 May 2010, 06:44 PM
  4. EzPages file location?
    By mthem2003 in forum General Questions
    Replies: 2
    Last Post: 23 Mar 2008, 07:37 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR