Sorry if I haven't been clear with this. I really appreciate you all taking the time to look at this in the first place.
What I'm looking to do is to change the layout of the orders.php page in the admin section and also add a few new fields to it.
The new fields I need to add are as follows and they will show for each individual product on any order.
Item Location.
Comments
Stage 2
Shipped
In Stock
The following items will require to be text input boxes that will be filled in by an administrator and updated with a button somewhere on the page:
Item Location.
Comments
Stage 2
Shipped
The In Stock part I was looking to do a product lookup I guess to check and see whether the item is in stock or not. If its not instock I want it to show as a red dot.
I was also wanting to change the way an item is displayed on the orders.php page.
Instead of an item showing as follows:
**1 x 09-10 England home
- England Size: 38"
- Other Name & Number: John Martins 78**
I was wanting it to show like this:
09-10 England home (John Martins 78) Size:38
I have no idea what the code will be to achieve this because what I thought would work is doing nothing.
Here's what I was trying to use for that part:
if (($order->products[$j]['attributes']=='Other Name & Number')){
echo'(' . $order->products[$i]['attributes'][$j]['option'][$j]['value'] . ')';}
There are a few parts I'm struggling with.
I've got the orders page showing text input boxes for all the parts I need but I'm not sure how to link it in with the database so it doesn't wreck the rest of the site. I know I will have to create new columns in the database but I'm not sure where to put them and what files and scripts if any I will have to change so that it doesn't effect the rest of my sight in a negative way.
Can anyone point me in the right direction with any of what I'm trying to do please?
Any help as always much appreciated.
Thanks in advance