Change the way the product appears on invoices

  • Posts: 73
  • Thank you received: 0
11 years 11 months ago #86624

Just come across a major stumbling block for my website. I've gone to print out my first invoices and discovered that the product description is ridiculously long.

Because I have used the copy feature when adding new products (because I have so many characteristics) the invoice is showing all the copy functions.

Could you please tell me how to fix this? I need it only to show the item title, and each characteristic title. (eg. for the image attached it should show only "Ford Falcon AU: Mens T-Shirt 5XL Red")

It is also ESSENTIAL that the sku of the parent product is shown.

This is stopping any orders from being shipped so I really need this fixed urgently.

Thanks

Attachments:
Last edit: 11 years 11 months ago by shamrockshirts.

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 11 months ago #86719

I don't see anything on your screenshot.

To reduce the name, try to edit the view "order / invoice" and you can edit it too in the view "order / listing", views are in HikaShop > Display > Views.

Please Log in or Create an account to join the conversation.

  • Posts: 73
  • Thank you received: 0
11 years 11 months ago #86831

Okay, I have figured out how to do that sucessfully, after lots of research. For anyone else reading this, you need to remove this code

.' '.$product->order_product_code

from the Display>Views>Order forms and invoice files in BOTH your template and the administrator templates. Just changing it in your template won't work.


Xavier, could you also help me with adding two things? I would like the sku of the parent product to show on the invoice. Is this possible without it showing all the previous codes of the characteristics as well?

Also, I have tried adding my logo to the invoice by following instructions I've read in other posts, but no matter where I try to put it, I can't get it to work. Could you tell me exactly where I need to put the code for the image?


And lastly, I would like to remove the two lines at the bottom of the invoice which say

please select a shipping method: regular post
please select a payment method: credit card


Thanks for your help.

Last edit: 11 years 11 months ago by shamrockshirts.

Please Log in or Create an account to join the conversation.

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
11 years 10 months ago #87048

Hi,

1. You would have to use such code:
$class = hikashop_get('class.product');
$productData = $class->get($product->product_id);
if($productData->product_type=="variant") $productData = $class->get($productData->product_parent_id);
echo $productData->product_code;

2. You can simply add the HTML tag of your image in the file "invoice" of the view "order" for your backend template. Something like that:
<img src=" www.website.com/mylogo.png " />

3. You can remove these lines in the same view file:

			<?php if(!empty($this->shipping)){
				echo JText::_('HIKASHOP_SHIPPING_METHOD').' : '.$this->shipping->getName($this->order->order_shipping_method,$this->order->order_shipping_id).'<br/>';
			}?>
			<?php if(!empty($this->payment)){
				echo JText::_('HIKASHOP_PAYMENT_METHOD').' : '.$this->payment->getName($this->order->order_payment_method,$this->order->order_payment_id);
			}?>

Please Log in or Create an account to join the conversation.

  • Posts: 73
  • Thank you received: 0
11 years 10 months ago #87527

Thanks for your help.

1. I have the product code showing correctly now, however it has the text "hikashop product class" before it. How do I remove that text?

2. Could you please tell me EXACTLY where to place the code for the image, because, as I said earlier, no matter where I put it I can't get it to work.

I need two other items to show on the invoice:

3. The order number (preferrably to show directly under the invoice number)

4. The customer's email address.

Please Log in or Create an account to join the conversation.

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
11 years 10 months ago #87710

1. The code I gave only displays the product code. I don't know where you're getting the text "hikashop product class" from.

2. Almost anywhere in the file should be ok.
You can add it at the beginning for example and the logo will display at the top.
You can add it before <h1 style="text-align:center"> and that will add it before the "invoice" title.
It depends where you want to display your logo, so I can't give you the exact place...

3.
You can add:
<?php echo $this->element->order_number; ?>
before:

</div>
				<p>
				<?php echo $this->store_address;?>

4. You can add:
<?php echo $this->element->customer->user_email; ?>

Please Log in or Create an account to join the conversation.

  • Posts: 73
  • Thank you received: 0
11 years 10 months ago #88543

So, I changed the code re the product sku to exactly what you gave me. You say you don't know where "I'm" getting the text HIKASHOPPRODUCTCLASS from, but it's obviously coming from the code you gave me, as that's all that's been changed. Could you please advise me on what I can do to fix this. I've spent HOURS on this and it's extremely frustrating, not to mention unprofessional.

Also, I've tried putting my logo in the exact place you gave me, and although you say almost anywhere in the file will be okay, it STILL doesn't work.

Here's my code, please tell me how to fix these problems. This is now an extremely urgent matter, I have a huge promotion running in 16 hours time.

Thanks in advance.

<?php
/**
 * @package  HikaShop for Joomla!
 * @version  2.0.0
 * @author  hikashop.com
 * @copyright  (C) 2010-2012 HIKARI SOFTWARE. All rights reserved.
 * @license  GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */
defined('_JEXEC') or die('Restricted access');
?><div id="hikashop_invoice_main_div">
  <div id="print" style="float:right">
    <a href="#" onclick="document.getElementById('print').style.visibility='hidden';window.focus();window.print();return false;">
      <img src="<?php echo HIKASHOP_IMAGES; ?>print.png"/>
      </a>
  </div>
  <br/>
  <table width="100%">
    <tr>
      <td>
        <img src="images/logo-shop.jpg">        
        <h1 style="text-align:center">
        <?php
        if($this->invoice_type=='full'){
          echo JText::_('INVOICE');
        }else{
          echo JText::_('SHIPPING_INVOICE');
        }
        ?>
        </h1>
        <br/>
        <br/>
      </td>
    </tr>
    <tr>
      <td>
        <div style="float:right;width:100px;padding-top:20px">
        <?php echo JText::_('DATE').': '.hikashop_getDate($this->element->order_created,'%d %m %Y ');?><br/>
        <?php
          if(!empty($this->element->order_invoice_number)) {
             echo JText::_('INVOICE').': '.$this->element->order_invoice_number;
          } else {
             echo JText::_('INVOICE').': '.@$this->element->order_number;
          }
        ?>
         <?php echo $this->element->order_number; ?>
        </div>
        <p>
        <?php echo $this->store_address;?>
        </p>
      </td>
    </tr>
    <tr>
      <td>
        <br/>
        <br/>
        <table width="100%">
          <tr>
            <?php if($this->invoice_type=='full' && !empty($this->element->billing_address)){?>
            <td>
              <fieldset class="adminform" id="htmlfieldset_billing">
              <legend style="background-color: #FFFFFF;"><?php echo JText::_('HIKASHOP_BILLING_ADDRESS'); ?></legend>
                <?php
                  $this->setLayout('address_template');
                  $html = $this->loadTemplate();
                  foreach($this->element->fields as $field){
                    $fieldname = $field->field_namekey;
                    $html=str_replace('{'.$fieldname.'}',$this->fieldsClass->show($field,$this->element->billing_address->$fieldname),$html);
                  }
                  echo str_replace("\n","<br/>\n",trim(str_replace("\n\n","\n",preg_replace('#{(?:(?!}).)*}#i','',$html)),"\n"));
                ?>
                           <?php echo $this->element->customer->user_email; ?>
              </fieldset>
            </td>
            <?php }?>
            <td>
            <?php
              if(!empty($this->element->order_shipping_id) && !empty($this->element->shipping_address)){
                ?>
                <fieldset class="adminform" id="htmlfieldset_shipping">
                  <legend style="background-color: #FFFFFF;"><?php echo JText::_('HIKASHOP_SHIPPING_ADDRESS'); ?></legend>
                  <?php
                    if(empty($this->element->override_shipping_address)) {
                      $this->setLayout('address_template');
                      $html = $this->loadTemplate();
                      foreach($this->element->fields as $field){
                        $fieldname = $field->field_namekey;
                        $html=str_replace('{'.$fieldname.'}',$this->fieldsClass->show($field,$this->element->shipping_address->$fieldname),$html);
                      }
                      echo str_replace("\n","<br/>\n",trim(str_replace("\n\n","\n",preg_replace('#{(?:(?!}).)*}#i','',$html)),"\n"));
                    } else {
                      echo $this->element->override_shipping_address;
                    }
                  ?>
                </fieldset>
                <?php
              }
            ?>
            </td>
          </tr>
        </table>
      </td>
    </tr>
    <tr>
      <td>
        <br/>
        <fieldset class="adminform" id="htmlfieldset_products">
          <legend style="background-color: #FFFFFF;"><?php echo JText::_('PRODUCT_LIST'); ?></legend>
          <table class="adminlist table table-striped" cellpadding="1" width="100%">
            <thead>
              <tr>
                <th class="title" width="60%">
                  <?php echo JText::_('PRODUCT'); ?>
                </th>
              <?php if ($this->config->get('show_code')) { ?>
                <th class="title" ><?php echo JText::_('CART_PRODUCT_CODE'); ?></th>
              <?php } ?>
                <?php if($this->invoice_type=='full'){?>
                <th class="title">
                  <?php echo JText::_('UNIT_PRICE'); ?>
                </th>
                <?php } ?>
                <th class="title titletoggle">
                  <?php echo JText::_('PRODUCT_QUANTITY'); ?>
                </th>
                <?php if($this->invoice_type=='full'){?>
                <th class="title titletoggle">
                  <?php echo JText::_('PRICE'); ?>
                </th>
                <?php } ?>
              </tr>
            </thead>
            <tbody>
            <?php
              $k=0;
              $group = $this->config->get('group_options',0);
              foreach($this->order->products as $product){
                if($group && $product->order_product_option_parent_id) continue;
                ?>
                <tr class="row<?php echo $k;?>">
                  <td>
                    <?php echo $product->order_product_name.' '.$class = hikashop_get('class.product');
$productData = $class->get($product->product_id);
if($productData->product_type=="variant") $productData = $class->get($productData->product_parent_id);
echo $productData->product_code;?>
                    <p class="hikashop_order_product_custom_item_fields">
                    <?php
                    if($group){
                      $display_item_price=false;
                      foreach($this->order->products as $j => $optionElement){
                        if($optionElement->order_product_option_parent_id != $product->order_product_id) continue;
                        if($optionElement->order_product_price>0){
                          $display_item_price = true;
                        }

                      }
                      if($display_item_price){
                        if($this->config->get('price_with_tax')){
                          echo ' '.$this->currencyHelper->format($product->order_product_price+$product->order_product_tax,$this->order->order_currency_id);
                        }else{
                          echo ' '.$this->currencyHelper->format($product->order_product_price,$this->order->order_currency_id);
                        }
                      }
                    }

                    if(hikashop_level(2) && !empty($this->fields['item'])){
                      foreach($this->fields['item'] as $field){
                        $namekey = $field->field_namekey;
                        if(empty($product->$namekey)){
                          continue;
                        }
                        echo '<p class="hikashop_order_item_'.$namekey.'">'.$this->fieldsClass->getFieldName($field).': '.$this->fieldsClass->show($field,$product->$namekey).'</p>';
                      }
                    }
                    if($group){
                      foreach($this->order->products as $j => $optionElement){
                        if($optionElement->order_product_option_parent_id != $product->order_product_id) continue;

                        $product->order_product_price +=$optionElement->order_product_price;
                        $product->order_product_tax +=$optionElement->order_product_tax;
                        $product->order_product_total_price+=$optionElement->order_product_total_price;
                        $product->order_product_total_price_no_vat+=$optionElement->order_product_total_price_no_vat;

                         ?>
                          <p class="hikashop_order_option_name">
                            <?php
                              echo $optionElement->order_product_name;
                              if($optionElement->order_product_price>0){
                                if($this->config->get('price_with_tax')){
                                  echo ' ( + '.$this->currencyHelper->format($optionElement->order_product_price+$optionElement->order_product_tax,$this->order->order_currency_id).' )';
                                }else{
                                  echo ' ( + '.$this->currencyHelper->format($optionElement->order_product_price,$this->order->order_currency_id).' )';
                                }
                              }
                            ?>
                          </p>
                      <?php
                      }
                    } ?>
                    </p>
                  </td>
                  <?php if ($this->config->get('show_code')) { ?>
                    <td><p class="hikashop_product_code_invoice"><?php echo $product->order_product_code; ?></p></td>
                  <?php } ?>

                  <?php if($this->invoice_type=='full'){?>
                  <td>
                    <?php
                    if($this->config->get('price_with_tax')){
                      echo $this->currencyHelper->format($product->order_product_price+$product->order_product_tax,$this->order->order_currency_id);
                    }else{
                      echo $this->currencyHelper->format($product->order_product_price,$this->order->order_currency_id);
                    } ?>
                  </td>
                  <?php } ?>
                  <td align="center">
                    <?php echo $product->order_product_quantity;?>
                  </td>
                  <?php if($this->invoice_type=='full'){?>
                  <td>
                    <?php
                    if($this->config->get('price_with_tax')){
                      echo $this->currencyHelper->format($product->order_product_total_price,$this->order->order_currency_id);
                    }else{
                      echo $this->currencyHelper->format($product->order_product_total_price_no_vat,$this->order->order_currency_id);
                    } ?>
                  </td>
                  <?php } ?>
                </tr>
                <?php
                $k=1-$k;
              }
            ?>
              <?php if($this->invoice_type=='full'){?>
              <tr>
                <td style="border-top:2px solid #B8B8B8;" colspan="2">
                </td>
                <td style="border-top:2px solid #B8B8B8;" class="key">
                  <label>
                    <?php echo JText::_( 'SUBTOTAL' ); ?>
                  </label>
                </td>
                <td style="border-top:2px solid #B8B8B8;">
                  <?php
                  if($this->config->get('price_with_tax')){
                    echo $this->currencyHelper->format($this->order->order_subtotal,$this->order->order_currency_id);
                  }else{
                    echo $this->currencyHelper->format($this->order->order_subtotal_no_vat,$this->order->order_currency_id);
                  } ?>
                </td>
              </tr>
              <?php $taxes = $this->order->order_subtotal-$this->order->order_subtotal_no_vat+$this->order->order_shipping_tax-$this->order->order_discount_tax;
                if($taxes != 0){
                  if($this->config->get('detailed_tax_display') && !empty($this->order->order_tax_info)){
                    foreach($this->order->order_tax_info as $tax){ ?>
                    <tr>
                      <td colspan="2">
                      </td>
                      <td class="hikashop_order_tax_title key">
                        <label>
                          <?php echo $tax->tax_namekey; ?>
                        </label>
                      </td>
                      <td class="hikashop_order_tax_value">
                        <?php echo $this->currencyHelper->format($tax->tax_amount,$this->order->order_currency_id); ?>
                      </td>
                    </tr>
                  <?php
                    }
                        }else{ ?>
                    <tr>
                      <td colspan="2">
                      </td>
                      <td class="hikashop_order_tax_title key">
                        <label>
                          <?php echo JText::_( 'VAT' ); ?>
                        </label>
                      </td>
                      <td class="hikashop_order_tax_value">
                        <?php echo $this->currencyHelper->format($taxes,$this->order->order_currency_id); ?>
                      </td>
                    </tr>

              <?php  }
                }
                if($this->order->order_discount_price != 0){ ?>
              <tr>
                <td colspan="2">
                </td>
                <td class="key">
                  <label>
                    <?php echo JText::_( 'HIKASHOP_COUPON' ); ?>
                  </label>
                </td>
                <td>
                  <?php
                  if($this->config->get('price_with_tax')){
                    echo $this->currencyHelper->format($this->order->order_discount_price*-1.0,$this->order->order_currency_id);
                  }else{
                    echo $this->currencyHelper->format(($this->order->order_discount_price-@$data->order_discount_tax)*-1.0,$this->order->order_currency_id);
                  } ?>
                </td>
              </tr>
              <?php }
                if(!empty($this->order->additional)) {
                  $exclude_additionnal = explode(',', $this->config->get('order_additional_hide', ''));
                  foreach($this->order->additional as $additional) {
                    if(in_array($additional->order_product_name, $exclude_additionnal)) continue;
                ?>
              <tr>
                <td colspan="2">
                </td>
                <td class="hikashop_order_additionall_title key">
                  <label><?php
                    echo JText::_($additional->order_product_name);
                  ?></label>
                </td>
                <td ><?php
                  if(!empty($additional->order_product_price)) {
                    $additional->order_product_price = (float)$additional->order_product_price;
                  }
                  if(!empty($additional->order_product_price) || empty($additional->order_product_options)) {
                    echo $this->currencyHelper->format($additional->order_product_price, $this->order->order_currency_id);
                  } else {
                    echo $additional->order_product_options;
                  }
                ?></td>
              </tr>
                <?php }
                }
                if($this->order->order_shipping_price!=0){ ?>
              <tr>
                <td colspan="2">
                </td>
                <td class="key">
                  <label>
                    <?php echo JText::_( 'SHIPPING' ); ?>
                  </label>
                </td>
                <td>
                  <?php
                  if($this->config->get('price_with_tax')){
                    echo $this->currencyHelper->format($this->order->order_shipping_price,$this->order->order_currency_id);
                  }else{
                    echo $this->currencyHelper->format($this->order->order_shipping_price-@$data->order_shipping_tax,$this->order->order_currency_id);
                  } ?>
                </td>
              </tr>
              <?php }
              if($this->order->order_payment_price!=0){ ?>
              <tr>
                <td colspan="2">
                </td>
                <td class="key">
                  <label>
                    <?php echo JText::_( 'HIKASHOP_PAYMENT' ); ?>
                  </label>
                </td>
                <td>
                  <?php echo $this->currencyHelper->format($this->order->order_payment_price,$this->order->order_currency_id); ?>
                </td>
              </tr>
              <?php }
              ?>
              <tr>
                <td colspan="2">
                </td>
                <td class="key">
                  <label>
                    <?php echo JText::_( 'HIKASHOP_TOTAL' ); ?>
                  </label>
                </td>
                <td>
                  <?php echo $this->currencyHelper->format($this->order->order_full_price,$this->order->order_currency_id); ?>
                </td>
              </tr>
              <?php } ?>
            </tbody>
          </table>
        </fieldset>
      </td>
    </tr>
    <?php if($this->invoice_type=='full'){

      $fieldsClass = hikashop_get('class.field');
      $fields = $fieldsClass->getFields('backend',$this->order,'order');
      if(!empty($fields)){ ?>
    <tr>
      <td>
        <fieldset class="hikashop_order_custom_fields_fieldset">
          <legend><?php echo JText::_('ADDITIONAL_INFORMATION'); ?></legend>
          <table class="hikashop_order_custom_fields_table adminlist" cellpadding="1" width="100%">
            <?php foreach($fields as $fieldName => $oneExtraField) {
            ?>
              <tr class="hikashop_order_custom_field_<?php echo $fieldName;?>_line">
                <td class="key">
                  <?php echo $this->fieldsClass->getFieldName($oneExtraField);?>
                </td>
                <td>
                  <?php echo $this->fieldsClass->show($oneExtraField,@$this->order->$fieldName); ?>
                </td>
              </tr>
            <?php
          }?>
          </table>
        </fieldset>
      </td>
    </tr>
        <?php
      }

       ?>
        <?php } ?>
<?php
  JPluginHelper::importPlugin('hikashop');
  $dispatcher = JDispatcher::getInstance();
  $dispatcher->trigger('onAfterOrderProductsListingDisplay', array(&$this->order, 'order_back_invoice'));
?>
    <tr>
      <td>
      </td>
    </tr>
  </table>
</div>
<div style="page-break-after:always"></div>

Last edit: 11 years 5 months ago by Jerome.

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 10 months ago #88786

You have to replace:

<?php echo $product->order_product_name.' '.$class = hikashop_get('class.product');
$productData = $class->get($product->product_id);
if($productData->product_type=="variant") $productData = $class->get($productData->product_parent_id);
echo $productData->product_code;?>
By:
<?php echo $product->order_product_name;
$class = hikashop_get('class.product');
$productData = $class->get($product->product_id);
if($productData->product_type=="variant") $productData = $class->get($productData->product_parent_id);
echo $productData->product_code;?>

For the logo, the link used is absolute or relative ? Because you have to use an absolute on. ( domain.com/folder/file.extension )

The following user(s) said Thank You: shamrockshirts

Please Log in or Create an account to join the conversation.

  • Posts: 73
  • Thank you received: 0
11 years 5 months ago #112300

Just one quick follow up question to this change. I have everything working well now, but I would like to make one small change.

The product name and the product id are displayed on the same line, one directly after the other.

I would like to put a line break in after the product name, so the product id is displayed on the next line under the name.

I'm not sure exactly where in the code to put the line break. I've tried a few places but I can't get it to work. Could you help?

Thanks

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 5 months ago #112302

Hi,

I think that replacing the code that Xavier gave you by this will probably do the job :

<?php echo $product->order_product_name;
$class = hikashop_get('class.product');
$productData = $class->get($product->product_id);
if($productData->product_type=="variant") $productData = $class->get($productData->product_parent_id);
echo "</br>" . $productData->product_code;?>

Last edit: 11 years 5 months ago by Mohamed Thelji.
The following user(s) said Thank You: shamrockshirts

Please Log in or Create an account to join the conversation.

  • Posts: 73
  • Thank you received: 0
11 years 5 months ago #112306

That worked perfectly Mohamed, thank you so much.

One last question, then I'm all finished with my invoice.

Is it possible to display both the Billing Address and the Shipping Address?

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 5 months ago #112312

Sure, that's actually the case in the default invoice file of your order view, when you have both billing/shipping address in your order.

Please Log in or Create an account to join the conversation.

  • Posts: 73
  • Thank you received: 0
11 years 5 months ago #112314

Okay, so does that mean that the two addresses with automatically be shown if a different shipping address is entered by the customer when they order?

I've only ever had one address shown on my tax invoices, but it's entirely possible that no one has ever entered a different shipping address.

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 5 months ago #112319

The shipping address should show even if it's the same as the billing address, that's weird because you actually have in you invoice file this code which should display the shipping address :

<fieldset class="adminform" id="htmlfieldset_shipping">
<legend style="background-color: #FFFFFF;"><?php echo JText::_('HIKASHOP_SHIPPING_ADDRESS'); ?></legend>
<?php
if(empty($this->element->override_shipping_address)) {
$this->setLayout('address_template');
$html = $this->loadTemplate();
foreach($this->element->fields as $field){
$fieldname = $field->field_namekey;
$html=str_replace('{'.$fieldname.'}',$this->fieldsClass->show($field,$this->element->shipping_address->$fieldname),$html);
}
echo str_replace("\n","<br/>\n",trim(str_replace("\n\n","\n",preg_replace('#{(??!}).)*}#i','',$html)),"\n"));
} else {
echo $this->element->override_shipping_address;
}
?>
</fieldset>

Please Log in or Create an account to join the conversation.

  • Posts: 73
  • Thank you received: 0
11 years 5 months ago #112322

I don't have that code in my invoice file, and I haven't deleted it. I've only made the changes to the invoice file that you've instructed me to do so in this thread and one other.

Can I add that code in so that the shipping address is shown? If so, where do I put it?

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 5 months ago #112326

I your last post you told us that you had this code :), are you checking the good file ? I'll probably be able to see from where your problem is coming from with a temporary back-access :).

Last edit: 11 years 5 months ago by Mohamed Thelji.

Please Log in or Create an account to join the conversation.

  • Posts: 73
  • Thank you received: 0
11 years 5 months ago #112328

Sorry, the code was there. Not sure why my search didn't find it the first time.

So, that code is in both the order/invoice file for both templates, and the shipping address still doesn't show.

Is there anything else I can try? I can't give you access to the website as it's a live site and against our policy to allow 3rd party access. Sorry.

Please Log in or Create an account to join the conversation.

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
11 years 5 months ago #112420

The shipping address is displayed only if there is a shipping method.
I suppose that you don't have any shipping method.

In that case, you can change the line:
if(!empty($this->element->order_shipping_id) && !empty($this->element->shipping_address)){

to:
if(!empty($this->element->shipping_address)){

in the invoice view file to force its display.

Please Log in or Create an account to join the conversation.

  • Posts: 73
  • Thank you received: 0
11 years 5 months ago #113465

Thanks Nicholas,

I replaced the code as instructed. The shipping address box is now showing on the invoice, but unfortunately there is no address inside it.

Please Log in or Create an account to join the conversation.

  • Posts: 2334
  • Thank you received: 403
11 years 5 months ago #113515

Hi there,

Are you sure you have a shipping address for this order?
Could you try to change this:

if(empty($this->element->override_shipping_address)) {
to:
if(empty($this->element->override_shipping_address)) {echo 'ok';

to check if the condition is passed?

Please Log in or Create an account to join the conversation.

Time to create page: 0.119 seconds
Powered by Kunena Forum