Jump to content

Help!: How to insert new fields data on ps_product DB


Recommended Posts

Hi.

 

I'm looking to add a new price an name field on prestashop, I was work well on the 1.4 version but I can't see how can I do it in the 1.5.2 version.

 

I did it the next.

 

For new Price field.

 

1 Create the new field on the ps_product "new_price"

 

2 Override the class "product.php"

 

3 Modify The "www.domain.com\admin\themes\default\template\controllers\products\products.tpl For new_price Also I modified the "www.domain.com\js\price.js" for some calculation

 

For new Name

 

1 Create the new field on the ps_product_lang table "new_nameformat"

 

2 Override the class "product.php"

 

3 Modify The "www.domain.com\admin\themes\default\template\controllers\products\informations.tpl

 

Maybe we need to override some file more but i'm lost.

 

Thanks!

Edited by javsmile (see edit history)
Link to comment
Share on other sites

I'm sorry now I don't have much time to writte a how to. :(

 

If you know a little bit to override the core you need to check the next files:

 

www.domain.com/override/classes/Product.php

www.domain.com/override/classes/Classes.php

 

www.domain.com/admin/themes/default/template/controllers/products/informations.tpl

 

And then you can call your author's variable on product page.

 

Also I think the author's name may be is better to insert like a feature and you don't need to edit anything.

Edited by javsmile (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...