Results 1 to 6 of 6
  1. #1
    Join Date
    May 2009
    Posts
    105
    Plugin Contributions
    0

    Default Add few more fields in Product

    Hello

    I wanted to include few fields like UPC code, Case Pack and Unit ( whether sold as Piece, Display or Set) for the product. Is there any code available to do this. Any help is highly appreciated.

    Thanks

  2. #2
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,252
    Plugin Contributions
    59

    Default Re: Add few more fields in Product

    http://www.zen-cart.com/index.php?ma...oducts_id=1140 is a very flexible way to add additional info.

    and here is for UPC http://www.zen-cart.com/index.php?ma...roducts_id=651

    ~Melanie
    PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are not conducive to a helpful community.

  3. #3
    Join Date
    Mar 2007
    Posts
    21
    Plugin Contributions
    0

    Default Re: Add few more fields in Product

    I am interested in the MSRP add on, Ive downloaded the add on, how do I install it now?

  4. #4
    Join Date
    Nov 2007
    Location
    Melbourne, Australia
    Posts
    541
    Plugin Contributions
    0

    Default Re: Add few more fields in Product

    Read the readme files/documentation that is included in the zip file of the module/addon. If there is no documentation, I wouldnt recommend to use it.

    First Step: BACKUP all files. So that you can always go back to a working version.

    Usually, a module is installed by copying all files to the corresponding zencart installation folder. All module files should be in the zencart directory stucture. You have to rename your personal template folder (often called YOUR_TEMPLATE). Check if you have to install a SQL Patch.

    But if you dont find a similar information in the module documentation or the support thread of the module in the forum, think twice if you want to try it.

  5. #5
    Join Date
    May 2009
    Posts
    105
    Plugin Contributions
    0

    Default Re: Add few more fields in Product

    Thank you Melanie.

    I made some changes sucessfully. Created a field product_upc in product table. made the code change. I can see the field in Admim and can also update the field through Admin sucessfully.

    however when I try to display the code in the front end it does not show.

    This is what I did

    step 1
    /includes/languages/english/product_info.php
    // included this code
    define('TEXT_PRODUCT_UPC', 'UPC: ');

    step 2
    in tpl_product_info_display.php

    <?php echo TEXT_PRODUCT_UPC. $products_upc . "\n"; ?>

    But it does not print the upc code.

    what is missing here?

    Thanks

  6. #6
    Join Date
    May 2009
    Posts
    105
    Plugin Contributions
    0

    Default Re: Add few more fields in Product

    got it done. file inludes/modules/pages/product_info/main_template_vars.php takes the data available for product page

 

 

Similar Threads

  1. v151 Add more info to Registration or Order Page (more fields)
    By imfsub12 in forum General Questions
    Replies: 1
    Last Post: 16 Jul 2013, 01:52 PM
  2. v150 Add more fields to payment page?
    By tillsey in forum Customization from the Admin
    Replies: 2
    Last Post: 15 Mar 2012, 04:24 PM
  3. Add more fields to checkout? PLEASE HELP
    By mgavaldon in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 6 Apr 2011, 10:47 PM

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