Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Configuring the Zen Cart Admin / Managing Customers and Orders / Manufacturers name in Orders page

Manufacturers name in Orders page

Locked

Started by safeg on 6 Nov 2009, 10:49 AM · Views: 825

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
6 Nov 2009, 10:49 AM
#1
safeg avatar

safeg

Zen Follower

Join Date:
Apr 2009
Location:
Edinburgh
Posts:
130
Plugin Contributions:
0

Post #1 by safeg

Hi there

I have looked everywhere for that problem, got solution which didn't work at all. I need a quick help with this problem and if anyone know the solution I would much appreciate.

In Orders page there is a table that shows what customers has bought. In this table there are a few columns: (from the left) Products Models Tax

What I need is to put a new column with manufacturers name, somewhere between Products and Model.

I got one solution, tried it and it didn't work.

Here is what I got:

In your includes/templates/your_custom_template_name/tpl_account_history_default.php file,

find:

<td class="accountQuantityDisplay"><?php echo  $order->products[$i]['qty'] . QUANTITY_SUFFIX; ?></td>

add right below:

<td class="accountProductManufacturers"><?php echo zen_get_products_manufacturers_name($order->products[$i]['id']); ?></td>

Then, in your CSS file, you can create a new instance called: accountProductManufacturers and customize it, if you'd like.

This should show the manufacturers name right between the products quantity ordered and the products name in the order's history from the store.

Lukas

6 Nov 2009, 1:16 PM
#2
safeg avatar

safeg

Zen Follower

Join Date:
Apr 2009
Location:
Edinburgh
Posts:
130
Plugin Contributions:
0

Post #2 by safeg

Any help..?

Lukas

6 Nov 2009, 7:08 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #3 by ajeh

One of the problems could be, that you are adding a TD on the row for the Product but not in the header area so you would have an unbalanced table being built ...

This section holds the titles on the table:

        <th scope="col" id="myAccountQuantity"><?php echo HEADING_QUANTITY; ?></th>
        <th scope="col" id="myAccountProducts"><?php echo HEADING_PRODUCTS; ?></th>

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

9 Nov 2009, 10:55 AM
#4
safeg avatar

safeg

Zen Follower

Join Date:
Apr 2009
Location:
Edinburgh
Posts:
130
Plugin Contributions:
0

Post #4 by safeg

Thanks for the reply Ajeh. I think I am going to leave it as it is, however, I will quicly add manually the manufacturer in products name and that should do for a while

However I will still be looking for the better solution

Thanks again :hug:

Lukas