Page 1 of 1

Add the product number to the order page.

Posted: Tue Mar 05, 2013 12:10 pm
by Bluesplayer
With my products being so similar and having quite a range of options then the order page could do with the order number being added to help reduce any order mistakes occuring.

Re: Add the product number to the order page.

Posted: Tue Mar 05, 2013 1:14 pm
by leo
You mean admin/order?

Re: Add the product number to the order page.

Posted: Tue Mar 05, 2013 1:20 pm
by Bluesplayer
leo wrote:You mean admin/order?
Yes. To make sure I pass the right product on to the supplier.

Re: Add the product number to the order page.

Posted: Tue Mar 05, 2013 1:55 pm
by leo
Order number is displayed there.

Re: Add the product number to the order page.

Posted: Tue Mar 05, 2013 2:13 pm
by Bluesplayer
Doesn't seem to be showing with me:

Re: Add the product number to the order page.

Posted: Wed Mar 06, 2013 4:13 am
by leo
I have deleted your image, as it displayed the path to your admin. Keep it in secret.

The order number should be in the heading.

Re: Add the product number to the order page.

Posted: Wed Mar 06, 2013 4:24 am
by Bluesplayer
I can see I wasn't clear with my post. What I meant to refer to was the model number. What you are refering too is the order reference number. My fault. Adding the model number would help cut down on any mistakes when reordering from the supplier.

Image

Something like the above.

Re: Add the product number to the order page.

Posted: Wed Mar 06, 2013 6:49 am
by leo
Open admin/template/default/content/order.tpl and modify it according this:

Code: Select all

      <?php foreach ($products as $product) { ?>
      <tr>
        <td class="left"><?php echo $product['name']; ?></a>
          <?php foreach ($product['option'] as $option) { ?>
          <br>
          &nbsp;<small> - <?php echo $option['name']; ?> <?php echo $option['value']; ?></small>
          <?php } ?>
	<?php if ($product['model_number']) { ?>
          <br>
          &nbsp;<small>(<?php echo $text_model_number; ?> <?php echo $product['model_number']; ?>)</small>
	<?php } ?>

Re: Add the product number to the order page.

Posted: Wed Mar 06, 2013 7:00 am
by Bluesplayer
Yup. That did it.

Thanks