Zen Cart Logo
Forums / General Questions / Add few more fields in Product

Add few more fields in Product

Locked

Views: 710

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
10 Sep 2009, 8:25 PM
#1
nishajh avatar

nishajh

Zen Follower

Join Date:
May 2009
Posts:
105
Plugin Contributions:
0

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

11 Sep 2009, 3:11 AM
#3
toypallet avatar

toypallet

New Zenner

Join Date:
Mar 2007
Posts:
21
Plugin Contributions:
0

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?

11 Sep 2009, 4:14 AM
#4
tino_schlegel avatar

tino_schlegel

Totally Zenned

Join Date:
Nov 2007
Location:
Melbourne, Australia
Posts:
532
Plugin Contributions:
0

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.

12 Sep 2009, 5:14 AM
#5
nishajh avatar

nishajh

Zen Follower

Join Date:
May 2009
Posts:
105
Plugin Contributions:
0

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

14 Sep 2009, 8:06 AM
#6
nishajh avatar

nishajh

Zen Follower

Join Date:
May 2009
Posts:
105
Plugin Contributions:
0

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
:smile: