Hello i just started using invoices in ubercart, and could use a hand with the templates, are there any other pre made templates around. Would be really cool to have product images as ubercart should have them kicking around anyway. I read the doc about invoices and copied the customer invoice template to a newcustomer template and have been playin around with it abit but my php is really terrible. Would be nice to have a bunch of premade template's
bump nobody has an templates for invoices or know where or how to add/modify them
ps i do not get fancy blue lines or borders like on the preview screen.
Documentation is a good place to start:
http://www.ubercart.org/docs/developer/246/invoice_system
Although I am all for the idea to move invoice templates to something thats more in line with drupal theming as being discussed here: http://drupal.org/node/295423
Yes thank you for the reply, but i have already looked at the docs you list. Not really interested in moving my templates yet as i do not really have one i care about yet that will be my next step. However reading the invoice_system developers doc did help me create a bit of a new template.
However i still have not been able to discover how to include a picture (the one drupal uses for a thumbnail maybe) beside my description as well I am still wondering why my printer does not print the lines and stuff i see on the screen. Also is there a way to add a note field below each product? or is that a line item. I think i have way to many question and need to play around a bit more but some guidance would be great too.
I am also looking for thumbnails of images on invoice. $form['items'][$i]['image']['#value'] = uc_product_get_picture($display_item['nid']['#value'], 'cart'); this code from uc_cart.module shoul be inserted into any invoice template somewhere around here as an exampla but it is ofcourse not working
<tr>
<td valign="top" nowrap="nowrap">
<b><?php echo $product->qty; ?> x </b>
</td>
<td width="98%">
<b><?php echo $product->title .' - '. uc_price($price_info, $context); ?></b>
<?php if ($product->qty > 1) {
$price_info['qty'] = 1;
echo t('(!price each)', array('!price' => uc_price($price_info, $context)));
} ?>
<br />
<?php echo t('SKU: ') . $product->model; ?><br />
<?php echo t('') . uc_product_get_picture($display_item['nid']['#value'], 'cart'); ?><br />
<?php if (is_array($product->data['attributes']) && count($product->data['attributes']) > 0) {?>
<?php foreach ($product->data['attributes'] as $attribute => $option) {
echo '<li>'. t('@attribute: @options', array('@attribute' => $attribute, '@options' => implode(', ', (array)$option))) .'</li>';
} ?>
<?php } ?>if anyone can help i would really appreciate it.
