Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6137907
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:47:06+00:00 2026-05-23T17:47:06+00:00

I am currently modifying the Magento front end printable order page (the page a

  • 0

I am currently modifying the Magento front end printable order page (the page a customer can print when they view an order and click “print order”), specifically the items table. I removed a column from the table (“Product Name”), and now the table is screwed up because the totals rows labels span a certain number of columns (4). I have found the specific template that deals with the order totals:

/app/design/frontend/base/default/template/sales/order/totals.phtml

I thought I would be able to just copy that file to my template directory, go in and change the colspan attribute value from 4 to 3. But where the class and the colspan attributes should be is a call to $this->getLabelProperties(). getLabelProperties returns ‘class=”a-right” colspan=”4″‘. I’ve traced it through and found that getLabelProperties is one of those magic getters that calls getData(‘label_properties’) in /lib/Varien/Object.php.

I’m probably missing something embarrassingly obvious, but I can’t tell where the value of ‘label_properties’ is set or stored. When I step through the code using xdebug and Notepad++ I see everything to the point of it gleaning the getData key from the method that was called, it passing that key to getData, and down to line 285 of /lib/Varien/Object.php:

return $this->_data[$key];

… and then magically the ‘class=”a-right” colspan=”4″‘ has populated the $data variable to be returned to the template. I don’t see a $this->_data array in the debug var list, so how is the key being used to retrieve data from it. And if it exists (I know it has to), what is populating the $this->_data array in the first place. I know it’s not magic, so I’m sure I’ve just missed something somewhere. Can someone enlighten me? Push me in the right direction?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T17:47:07+00:00Added an answer on May 23, 2026 at 5:47 pm

    You can update the values of the colspan in your layout file:

    app/design/frontend/base/default/layout/sales.xml
    

    Just copy the sales.xml in your custom theme and search for “setLabelProperties”.

    Let me know if you need further explanations.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having trouble with modifying the way comments are displayed. Currently they are always
I'm currently responsible for running, modifying, and tuning a Magento installation. I'm not satisfied
I'm currently modifying Liquid Framework ( http://github.com/tobi/liquid ) in order to make it support
I'm currently modifying a document literal SOAP service for a business app which transfers
In the project my team is currently working on, we're modifying a commercial PHP
I am currently modifying an existing system that generates reports with iText and java.
I'm currently modifying my regex for this: Extracting email addresses in an html block
I am currently modifying a piece of code and I am wondering if the
I have a theme that I'm modifying for my site. I currently have it
Currently, I am modifying a css document to make a website compatible in IE

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.