Add Product Attribute to eCommerce Order
Permalink
Hi - I added Part Number (type: text, handle: partnumber) to Product Attributes. I need the part number of the product included in the order somehow.
I've tried messing with packages/core_commerce/mail/order.php and can't get it to pull a value, and I've tried adding it to packages/core_commerce/models/order/product.php but only got an error in the dashboard.
Our product names are not unique. I need the part number to identify what the customer ordered. Also, eventually we'll need to be able to import the orders into QuickBooks. QBs will need to identify the product somehow so I can't just go and add the part number into the product name field. I need the product name to remain descriptive for customers looking for a product.
I've found a few other threads asking for this too, but none of those has been answered.
Any help would be appreciated! Or at least point me in the right direction!
Thanks!
Amanda
I've tried messing with packages/core_commerce/mail/order.php and can't get it to pull a value, and I've tried adding it to packages/core_commerce/models/order/product.php but only got an error in the dashboard.
Our product names are not unique. I need the part number to identify what the customer ordered. Also, eventually we'll need to be able to import the orders into QuickBooks. QBs will need to identify the product somehow so I can't just go and add the part number into the product name field. I need the product name to remain descriptive for customers looking for a product.
I've found a few other threads asking for this too, but none of those has been answered.
Any help would be appreciated! Or at least point me in the right direction!
Thanks!
Amanda
http://www.concrete5.org/community/forums/jobs1/add-attributes-to-ecommerce-email/#discussionpost
Hi there - Yes, I finally hired someone to do this for me. Maurice did a fantastic job, so I wouldn't want to give out his code for free. I'll send you his email in a PM.
Hi there - Yes, I finally hired someone to do this for me. Maurice did a fantastic job, so I wouldn't want to give out his code for free. I'll send you his email in a PM.
Thanks Amanda - I've sent him an email
Did you get this figured out? Our client also wants to add a custom attribute, in this case 'product_code' to the order in the dashboard and the email receipt sent out to the customer and the admin.
I know where the code goes but am no where near expert enought to figure out how to grab the custom product attribute.