camel2 Posted April 6, 2013 Share Posted April 6, 2013 I create several attributes for each of products only for layered filter function. I don't want these attribes combination showing in the product name in orders or invoices. I checked the table order_detail in database, the field "product_name" contains "the product name + combination". So I think the only way to solve my problem is not write these "combinations" to "product_name". But I can't find which one is the file (I guess it should be a php) to write the value of order while generating an order? Any one can help me? Thanks. Link to comment Share on other sites More sharing options...
tomerg3 Posted April 6, 2013 Share Posted April 6, 2013 /classes/PaymentModule.php Link to comment Share on other sites More sharing options...
c0rw Posted April 7, 2013 Share Posted April 7, 2013 Hello, I'm trying to solve same thing for same reason as camel2 - I'm using attributes only for filtering, I don't want them in front or back office orders. I'm using Presta 1.5.3.1 On 4/6/2013 at 8:38 PM, tomerg3 said: /classes/PaymentModule.php What does this affect? I tried to remove attributes condition from lines 273 and 284, but it doesn't seem to have effect on created order in backoffice. On 4/6/2013 at 4:12 PM, camel2 said: But I can't find which one is the file (I guess it should be a php) to write the value of order while generating an order? If this helps you, I found how to remove it from emails - you have to edit file: /modules/mailalerts/mailalerts.php and remove attributes from $item_table. Link to comment Share on other sites More sharing options...
c0rw Posted April 7, 2013 Share Posted April 7, 2013 So finally I found place where to prevent saving attributes to DB: /class/order/OrderDetail.php - function create(); - line 548 I used overrides to change this. So actually I know about 3 places, where attributes are processed to client (I don't care about tpls): /modules/mailalerts/mailalerts.php /classes/PaymentModule.php /classes/order/OrderDetail.php Any other suggestions for this issue? 1 Link to comment Share on other sites More sharing options...
camel2 Posted April 9, 2013 Author Share Posted April 9, 2013 thank you, timerg3 and c0rw. it works fine for me Link to comment Share on other sites More sharing options...
vekia Posted April 9, 2013 Share Posted April 9, 2013 so i can go ahead and mark this thread as solved, thanks for the solutions and information that it work for you regards Link to comment Share on other sites More sharing options...
Recommended Posts