Thread: Custom Fields

Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2008
    Location
    Abbottabad, Pakistan
    Posts
    60
    Plugin Contributions
    0

    Default Custom Fields

    I upgraded a zen cart from 1.3.8 to 1.5.6c
    Older version had these custom fields as can be seen in the attached screenshot.
    Database entries exist as well in the upgraded database

    (Products table)
    `products_eye` varchar(32) NOT NULL,
    `products_DBL` varchar(32) NOT NULL,
    `products_TPL` varchar(32) NOT NULL,
    `products_A` varchar(32) NOT NULL,
    `products_B` varchar(32) NOT NULL,
    `products_ED` varchar(32) NOT NULL,

    Name:  screenshot.png
Views: 217
Size:  2.5 KB


    Plus code is also added in tpl_product_info_display.php


    <table width="250" cellpadding="0" cellspacing="0" border="0">
    <tr>

    <?php if ($products_eye != '') { ?>
    <td width-"25" valign="top">Eye:</td>
    <td>
    <?php echo $products_eye; ?>
    </td>
    <?php
    }
    ?>
    <td width="50">&nbsp;</td>
    <?php if ($products_A != '') { ?>
    <td width-"25" valign="top">A:</td>
    <td>
    <?php echo $products_A; ?>
    </td>
    <?php
    }
    ?>
    </tr>
    <tr>
    <?php if ($products_DBL != '') { ?>
    <td width-"25" valign="top">DBL:</td>
    <td>
    <?php echo $products_DBL; ?>
    </td>
    <?php
    }
    ?>
    <td>&nbsp;</td>
    <?php if ($products_B != '') { ?>
    <td width-"25" valign="top">B:</td>
    <td>
    <?php echo $products_B; ?>
    </td>
    <?php
    }
    ?>
    </tr>
    <tr>
    <?php if ($products_TPL != '') { ?>
    <td width-"25" valign="top">TPL:</td>
    <td>
    <?php echo $products_TPL; ?>
    </td>
    <?php
    }
    ?>
    <td>&nbsp;</td>
    <?php if ($products_ED != '') { ?>
    <td width-"25" valign="top">ED:</td>
    <td>
    <?php echo $products_ED; ?>
    </td>
    <?php
    }
    ?>
    </tr>
    </table>


    Still nothing shows up in backend nor frontend of the upgraded website. Which files I should look for?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Custom Fields

    Sounds like whatever steps you took to do your upgrade skipped setting the DB_PREFIX to correctly match the tables in your new database.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Jul 2012
    Posts
    16,718
    Plugin Contributions
    17

    Default Re: Custom Fields

    ****Assuming**** that the statement "nothing shows up in backend nor frontend of the upgraded website" means none of the additional fields, but the rest of the product information shows, then certainly agree that there was information missed in the upgrade, but it is code related.

    On the catalog side, missing the database pull to assign values to variables such as $products_eye. This is typically done as part of files loaded in includes/modules/pages/YOUR_PAGE either directly in header_php.php, main_template_vars.php, an additional file or by use of a notifier (if the notifiers were or made available back then). Then on the admin side, there probably was additional code in the admin/includes/modules/PRODUCT_TYPE folder for the collect_info.php, preview_info.php, etc...

    There have been significant changes in the code structure, but the necessary information should still be able to be pulled into the current process.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. v155 How do I get custom fields to display? (Numinix Product Fields)
    By aurum.genesis in forum All Other Contributions/Addons
    Replies: 8
    Last Post: 14 Jul 2017, 01:07 PM
  2. Custom Product Fields
    By CheezyBreezy13 in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 18 Sep 2008, 06:45 PM
  3. Custom fields?
    By kdlklm in forum General Questions
    Replies: 0
    Last Post: 21 Feb 2007, 05:55 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