unamed Posted November 8, 2008 Share Posted November 8, 2008 Hi everyoneI need to add a functionallity to V1.1 beta prestashop, and I request some help. I thought that team was working on it, but it seems no.I need to add some "property" to article (like name or reference, but different and mandatory) and that appears in the box where name and price is displayed. I previously thought it would be easier to modify attributes to allow enter free text instead of selecting from attributes...Other thinks I thought is use features, but should be mandatory fields and should be seen in the main box.Thank you! Link to comment Share on other sites More sharing options...
Matthieu Biart Posted November 8, 2008 Share Posted November 8, 2008 Hi unamed!For doing what you want you have two different ways:- using the product features AND editing your PrestaShop theme, more precisely your product page theme to display the feature you want on the "price's frame"- editing directly the PrestaShop core by adding a new field on your product table, Product class, AdminProduct tab, product controler and product page templateThe first solution is of course the faster and easier way. And moreover will be easier to keep under PrestaShop futur upgrades. Except that only the second solution allow you to made that "property" required during a product creation/modification. Link to comment Share on other sites More sharing options...
unamed Posted November 8, 2008 Author Share Posted November 8, 2008 The problem on using features (I have already tried it, but only worked some times, depending on which features you have filled) is that when you receive in the template the features, you don't get it with it's reference name+value (like an array of 2 elements, property_name and value), you get only the value (and not ordered alphabetically). So I didn't know how to get the correct feature value to show it on the "pricese frame" , as they are no correctly ordered.Thank you Link to comment Share on other sites More sharing options...
Matthieu Biart Posted November 10, 2008 Share Posted November 10, 2008 Arf.Please have a look on the BO Product page (/admin/tabs/AdminProduct.php), feature section and especially on how the corresponding is made between the value and the name (should be displayFeatureForm() or something like that) and try to reproduce it on your controller (product.php). Link to comment Share on other sites More sharing options...
Recommended Posts