Trying to further mod this mod....
Well ,this mod has been working very well for me. However, I wanted to improve it but I'm having some troubles. What I would like to do is the following:
We have obviuosly had success color coding this table. However, I want to be able to display some order data within that table. Example: Lets say your color coded table shows two orders. One is complete (green) the other is pending (yellow). On the pending order, I want to be able to see a list of the products associated with that order. http://www.stargatecinema.com/new_table.gif Basically, I need to pull info from the "history_order.tpl" and place it into the "order.tpl". Seems pretty simple, but I think these two tpl's call different php files. *The toggle triangle would be a bonus, but it's above the scope of what I'm trying to do. Any help would be great! Pipercub |
I think you would have to find where the history_order.tpl posts its data in the sql db. My site isnt live yet so I have no orders but im guessing you would ahve to take that persons order number and search the order_details table and pull all the info you want for each order that matches that # in the table.
I might write something but It would be useless on my site since some of my orders are going to be 1000 items + |
Do you expect many customers will spend the time to add over 1,000 items to their cart one by one?
Not being sarcastic, but quite serious. Do you have something special planned so they can purchase faster? |
Re: Trying to further mod this mod....
Quote:
This would be useful... any ideas? |
is there a way to highlight orders that are shipped 2nd day so those stand out more?
|
You need to modify this code in the orders_colors.tpl
Code:
{* $Id: orders_colors.tpl,v 1.0 2003/10/26 13:07:50 pipercub Exp $ *} Something like this (this is only a starting point, I'm too busy to develop your mod for you, it's easy you can do it.) Code:
{* $Id: orders_colors.tpl,v 1.0 2003/10/26 13:07:50 pipercub Exp $ *} Hope this helps. Good luck. |
hey thanks! I couldnt figure out the fields that were in the orders struct. Is there a place where they are defined?
i did something like this in orders.tpl (only support ups): Code:
<td width=90% class=Text {include file="main/order_colors.tpl"}> works good!!! thanks man! [/code] |
FYI -- These mods worked fine in 3.5.10 -- Thanks everyone!
|
No problem. I can't live without this mod. I do a modest # of orders, I have no idea how people who pump 100's a day through their site keep track visually.
|
This is one of the most underrated mods for everyday users. Nothing is better than visual representation of order status. Especially when you want to browse through a list to see how many are queued, declined etc all in one screen without using filters.
Implementing this in V4.0.5 You need to modify skin1/main/orders_list.tpl Around line 53 change Code:
<TR{cycle values=", class='TableSubHead'"}> to Code:
<TR{cycle values=", class='TableSubHead'"}> Please also note that you will have to update your orders_colors.tpl file to account for V4 changes. Code:
{* $Id: orders_colors.tpl,v 2.0 2004/10/31 01:27:28 ADPBoss Exp $ *} Please also note that no status colour has been set for Declined "D". You can just copy one of the if statements and add your own. I will follow up with product colour mod as soon as possible. |
All times are GMT -8. The time now is 01:17 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.