Skip to content

Instantly share code, notes, and snippets.

@and1truong
Created August 16, 2012 00:55
Show Gist options
  • Select an option

  • Save and1truong/3365162 to your computer and use it in GitHub Desktop.

Select an option

Save and1truong/3365162 to your computer and use it in GitHub Desktop.
diff -Naur nohack/sites/all/modules/ubercart/uc_order/templates/uc_order-customer.tpl.php dev/sites/all/modules/ubercart/uc_order/templates/uc_order-customer.tpl.php
--- nohack/sites/all/modules/ubercart/uc_order/templates/uc_order-customer.tpl.php 2012-04-26 15:48:51.000000000 +0700
+++ dev/sites/all/modules/ubercart/uc_order/templates/uc_order-customer.tpl.php 2012-08-06 23:12:06.000000000 +0700
@@ -231,7 +231,15 @@
<b><?php echo $product->qty; ?> x </b>
</td>
<td width="98%">
- <b><?php echo $product->title .' - '. uc_price($price_info, $context); ?></b>
+ <b><?php echo $product->title .' - '. uc_price($price_info, $context); ?>
+ <?php
+ $node_obj = node_load($product->nid);
+ foreach($node_obj->og_groups as $groups){
+ $group_obj = node_load($groups);
+ }
+ echo "<br /><b style='padding-top:3px;'>Shop Owner</b><br />".l($group_obj->title, 'node/'.$group_obj->nid);
+ ?>
+ </b>
<?php if ($product->qty > 1) {
$price_info['qty'] = 1;
echo t('(!price each)', array('!price' => uc_price($price_info, $context)));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment