Magento Forum

remove custom options description on invoice
 
BjorntobeWild
Jr. Member
 
Total Posts:  3
Joined:  2012-10-09
 

Hi all,

I’m having different products with cuystom options. In these custom options the customer can select a certain weight of a product.
The label of the custom option is “Select weight...”.

When I’m printing the invoice the label of the custom option will be shown on the invoice. I want to remove the label and only want to show the title after the product description.

I’ve searched for solutions but can’t figure it out?
Could someone help me a little with this problem?

Kind regards,

Bjorn

 
Magento Community Magento Community
Magento Community
Magento Community
 
McZoid
Jr. Member
 
Total Posts:  20
Joined:  2011-11-07
 

Hi,

Could you find a solution for this in the meanwhile? Or could anybody give a hint on this? I’m looking for the same thing and tried several things, but didn’t get it working.

In order to remove the bundle option labels I tried to edit the following files:

app/code/core/Mage/Sales/Model/Order/Pdf/Items/Invoice/Default.php
app/code/core/Mage/Bundle/Model/Sales/Order/Pdf/Items/Invoice.php

For example, in the latter one I replaced “Mage::helper(’core/string’)->str_split($attributes[’option_label’], 45, true, true)” with ‘’ but this did not show any effect (neither on budle options nor on custom option labels).

I know you should not edit core files; I just did this to see the effect. Once I found the solution I’d put it into local folder.

Any hint would be much appreciated. Thanks!

Alex

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top