ReactionCode Posted December 26, 2012 Share Posted December 26, 2012 (edited) 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 December 26, 2012 by javsmile (see edit history) Link to comment Share on other sites More sharing options...
ReactionCode Posted December 27, 2012 Author Share Posted December 27, 2012 Some body know where can I find a tutorial like this?? http://blog.redegal.com/anadiendo-campos-a-prestashop Link to comment Share on other sites More sharing options...
ReactionCode Posted December 28, 2012 Author Share Posted December 28, 2012 Finaly I solved by myself how to insert new fields in DB. 1 Link to comment Share on other sites More sharing options...
benjamin utterback Posted December 28, 2012 Share Posted December 28, 2012 Hello javsmile, thank you for the message. Sorry we weren't able to help more, would you mind explaining how you solved this issue. I'm sure it will help other merchants who have similar questions gain a better understanding of the solution. Thank you so much for choosing PrestaShop! Link to comment Share on other sites More sharing options...
taseaford Posted January 1, 2013 Share Posted January 1, 2013 Hi javsmile! Would you mind making note of the differences that you found between the 1.4 and 1.5.2 versions? I need to add a field for author's name within the products. Link to comment Share on other sites More sharing options...
ReactionCode Posted January 5, 2013 Author Share Posted January 5, 2013 (edited) 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 January 5, 2013 by javsmile (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts