[email protected] Posted March 30, 2016 Share Posted March 30, 2016 (edited) Hi, I have custom fields on my product page. I want them to appear on CART and BILL/BACKEND My first approach was override PaymentModule, function validateOrder. Thx for the help. Edited March 30, 2016 by [email protected] (see edit history) Link to comment Share on other sites More sharing options...
glombi Posted March 30, 2016 Share Posted March 30, 2016 Hi, What do you have version of Prestashop? Link to comment Share on other sites More sharing options...
[email protected] Posted March 30, 2016 Author Share Posted March 30, 2016 (edited) The latest 1.6.1 Edited March 30, 2016 by [email protected] (see edit history) Link to comment Share on other sites More sharing options...
glombi Posted March 30, 2016 Share Posted March 30, 2016 (edited) Are you use specific module to add custom fields? Can you show your url adres? Edited March 30, 2016 by glombi (see edit history) Link to comment Share on other sites More sharing options...
[email protected] Posted March 31, 2016 Author Share Posted March 31, 2016 see here: http://iprint.idpot.fr/medias-speciaux/21-backlight.html Its a module for surface price calculation Link to comment Share on other sites More sharing options...
[email protected] Posted March 31, 2016 Author Share Posted March 31, 2016 Ok, was busy on other project but I found the solution. Override Cart.php => fonction getProducts I added if (array_key_exists($row['id_product_attribute'].'-'.$this->id_lang, self::$_attributesLists)) { $row = array_merge($row, self::$_attributesLists[$row['id_product_attribute'].'-'.$this->id_lang]); } //SURFACE $row['attributes'] .= ", Longueur: ".$row['e_dim_x']." cm, Largeur: ".$row['e_dim_y']." cm"; $row['attributes_small'] .= ", Longueur: ".$row['e_dim_x']." cm, Largeur: ".$row['e_dim_y']." cm"; //echo '<pre>' .print_r($row, true).'</pre>'; Link to comment Share on other sites More sharing options...
glombi Posted March 31, 2016 Share Posted March 31, 2016 I have seen Congratulations Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now