Simple field add not proving so simple

Hi, I am tryign to add a UPC field to products and don't want to use the features option.



I modified the database table to add a column called UPC as the 3rd column in cscart_products and I manually entered some data into one of the records to test with.



I modified the skins\basic\admin\views\products\manage.tpl with changes in the following code




{$product.product|unescape} {include file="views/companies/components/company_name.tpl" company_name=$product.company_name company_id=$product.company_id}
{$lang.product_code}:

[i][b]
{$lang.UPC}:
[/b][/i]





The field shows up in the layout but the data does not show or link. Is there an array somewhere or something else I need to change?

Please try

{$lang.UPC}:




You need to modify also fn.catalog.php(v3 core/fn.catalog.php, v4 app/functions/fn.catalog.php), search for [color=#ff0000]only_short_fields[/color] and

#after ```php
‘products.is_edp’,

#add```php
'products.UPC',
```<br />
<br />
or you can use hooks <img src="upload://ssa1U17ndImgNZSdwFNmOF2yUgM.png" class="bbc_emoticon" alt=";)"><br />
<br />
---<br />
Valentin<br />
[color=#808080][size=2]part of hungryweb.net[/size][/color]

Ah ha! That is where the array is. Worked perfect. Thanks, I am still learning my way around CS Cart as to where everything is hidden.

hi there,



i am using V415

how to find skins\basic\admin\views\products\manage.tpl



thanks,

Hi Jack,



design/backend/templates/views/products/manage.tpl




Regards,





Valentin

[color=#808080][size=2]part of hungryweb.net[/size][/color]

[quote name='Vali' timestamp='1403761365' post='186466']

Hi Jack,



design/backend/templates/views/products/manage.tpl




Regards,





Valentin

[color=#808080][size=2]part of hungryweb.net[/size][/color]

[/quote]



Hi Valentin,



Thank you for your reply.



I notice that the script in V4.15 is different from the one as it is in the post.

design/backend/templates/views/products/manage.tpl







{if $search.cid && $search.subcats != "Y"}


{/if}

{include file="common/image.tpl" image=$product.main_pair.icon|default:$product.main_pair.detailed image_id=$product.main_pair.image_id image_width=50 href="products.update?product_id=`$product.product_id`"|fn_url}



{$product.product|truncate:40 nofilter}


{__("sku")}


{include file="views/companies/components/company_name.tpl" object=$product}
[color=#ff0000]
{$lang.UPC}:
[/color]






i put the code in there, and added


[quote]You need to modify also fn.catalog.php(v3 core/fn.catalog.php, v4 app/functions/fn.catalog.php), search for [color=#ff0000]only_short_fields[/color] and

#after

'products.is_edp',

#add

'products.UPC',

[/quote]



but nothing shows up.



have i done anything wrong?



Thank you,



Jack

#v3.x


{$lang.UPC}




#v4.x


{__('UPC')}






Regards,





Valentin

[color=#808080][size=2]part of hungryweb.net[/size][/color]

[quote name='Vali' timestamp='1403837932' post='186516']

#v3.x


{$lang.UPC}




#v4.x


{__('UPC')}






Regards,





Valentin

[color=#808080][size=2]part of hungryweb.net[/size][/color]

[/quote]



Hi Valentin,



Where do i put it to? in below

design/backend/templates/views/products/manage.tpl



Thanks,



Jack

[quote name='Vali' timestamp='1403837932' post='186516'] #v3.x {$lang.UPC} #v4.x {__('UPC')} Regards, — Valentin [color=#808080][size=2]part of hungryweb.net[/size][/color] [/quote]



Hi Valentin,



I didn't get it work yet


```php




{if $search.cid && $search.subcats != "Y"}


{/if}

{include file="common/image.tpl" image=$product.main_pair.icon|default:$product.main_pair.detailed image_id=$product.main_pair.image_id image_width=50 href="products.update?product_id=`$product.product_id`"|fn_url}



{$product.product|truncate:40 nofilter}

{__("sku")}


{__('UPC')}:


{include file="views/companies/components/company_name.tpl" object=$product}


{include file="buttons/update_for_all.tpl" display=$show_update_for_all object_id="price_`$product.product_id`" name="update_all_vendors[price][`$product.product_id`]"}




{if $search.order_ids}
```

v4 app/functions/fn.catalog.php)
```php
} else {
$fields = array (
'products.product_id',
'products.product_code',
'products.product_type',
'products.status',
'products.company_id',
'products.list_price',
'products.amount',
'products.weight',
'products.tracking',
'products.is_edp',
'products.UPC',
```

It does not shows on the admin panel or the front-store. is there any else place i need to edit?

Really appreciate your help on this.

Sincerely,

Jack