Attributes on uc_order-customer.tpl.php

madmadmadaxe's picture
Offline
Joined: 06/28/2010
Juice: 25
Attributes on uc_order-customer.tpl.php

Hi,

Have changed my invoice templates over since the update and everything is working great except the attributes on the invoice templates. They are saying "array" for the content descriptions. They never used to say this prior to the update. Is there something that needs to be changed with them?

<?php
if (is_array($product->data['attributes']) && count($product->data['attributes']) > 0) {
?>
<?php
foreach ($product->data['attributes'] as $key => $value) {
                                echo
'<li>'. $key .': '. $value .'</li>'
?>

That is the original code that worked great.

Changing invoice templates for Ubercart 2.3 and later By: Lyle (88 replies) Thu, 07/15/2010 - 16:10
  • subscribing By: bunset (03/08/2011 - 13:43)
  • How to change invoice from order admin screen? By: eurotransient (02/18/2011 - 15:58)
  • Improvments By: md-2 (02/13/2011 - 15:37)
  • Helper module By: md-2 (02/10/2011 - 12:08)
  • Need help By: ToddFur (01/21/2011 - 17:16)
  • Correct procedure--this worked for me By: gjmokcb (01/16/2011 - 18:16)
  • uberinvoice By: md-2 (11/23/2010 - 13:25)
  • Hang ups and How I solved By: jeeberpow (10/22/2010 - 14:47)
  • Bulk Order Operations By: sterg17 (10/14/2010 - 17:24)
  • Re: Changing invoice templates for Ubercart 2.3 and later By: obrienmd (10/13/2010 - 23:56)
  • Re: Changing invoice templates for Ubercart 2.3 and later By: obrienmd (10/13/2010 - 18:57)
  • Re: Changing invoice templates for Ubercart 2.3 and later By: obrienmd (10/13/2010 - 17:30)
  • How to add a template file in a module By: samuelsov (10/13/2010 - 16:00)
  • Re: Changing invoice templates for Ubercart 2.3 and later By: obrienmd (10/13/2010 - 12:12)
  • Re: Changing invoice templates for Ubercart 2.3 and later By: fcortez (10/12/2010 - 17:25)
  • Re: Changing invoice templates for Ubercart 2.3 and later By: sterg17 (10/12/2010 - 16:22)
  • hook_uc_invoice_templates By: fcortez (10/12/2010 - 17:31)
  • why us no one helping??? Is By: sterg17 (10/03/2010 - 23:35)
  • Help! Bulk Operations By: sterg17 (09/24/2010 - 11:05)
  • invoice template not using store date format By: moby (09/22/2010 - 21:24)
  • Re: Changing invoice templates for Ubercart 2.3 and later By: arguila (09/17/2010 - 08:48)
  • Re: Changing invoice templates for Ubercart 2.3 and later By: glennpratt (09/11/2010 - 08:28)
  • Should custom invoices be placed in the site theme folder By: md-2 (09/10/2010 - 11:33)
  • ubercart to read uc_order new template file By: arguila (09/07/2010 - 05:24)
  • Issue on Drupal.org By: xurizaemon@drupal.org (08/30/2010 - 23:35)
  • Attributes on uc_order-customer.tpl.php By: madmadmadaxe (08/29/2010 - 20:24)
  • Does not seem to be working? By: pamreed (08/26/2010 - 01:39)
  • Custom Tokens in Ubercart Invoice Template By: mophyz (08/16/2010 - 14:45)
  • Problem adding new invoice? By: shiloe (08/12/2010 - 17:25)
  • Re: Changing invoice templates for Ubercart 2.3 and later By: marcus178 (08/10/2010 - 06:47)
  • Emailed invoice template wrong By: marcus178 (08/07/2010 - 12:45)
  • customer.itpl.php to uc_order_customer.tpl.php By: Marijke (08/05/2010 - 03:41)
  • Easy mode please By: Iella (07/31/2010 - 09:43)
  • Re: Changing invoice templates for Ubercart 2.3 and later By: totsubo (07/30/2010 - 04:58)
  • Administration Theme By: jstrachan (07/27/2010 - 12:28)