Jump to content

[solved] Which php file write to database while generating an order?


Recommended Posts

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

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

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?

  • Thanks 1
Link to comment
Share on other sites

×
×
  • Create New...