[Skip to main content](#vessel-content)

#   Add Shipping Method to Shipping Invoice

##

- **[phickman](/forum/user/5715-phickman "View phickman's Profile")**
- [![phickman's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5715-phickman "View phickman's Profile") Topic Author
- [ Offline](/forum/user/5715-phickman)

Less More

- Posts: 51
- Thank you received: 0
-
-

13 years 7 months ago [\#97479](#97479) by [phickman](/forum/user/5715-phickman "View phickman's Profile")  *[Add Shipping Method to Shipping Invoice](/forum/4-how-to/79961-add-shipping-method-to-shipping-invoice#97479 "Hello,  We are currently offering two different shipping methods; UPS or Manual/House Delivery. We would like the Shipping Methods to display on the Shipping Invoice. I understand that the oldinvoice.php file can be modified, but I'm not really that proficient in PHP and was hoping to get some pointers. Or, to find someone who would be interested in working on those modifications for, or with us.  I can see that both invoice.php and oldinvoice.php have code to only print the Shipping Method line when the user choices the regular invoice and not the Shipping Invoice with this code:  invoice&#95;type=='full'){ echo JText::&#95;('INVOICE'); }else{ echo JText::&#95;('SHIPPING&#95;INVOICE'); } ?&gt;  and this:  shipping)){ echo JText::&#95;('HIKASHOP&#95;SHIPPING&#95;METHOD').' : '.$this-&gt;shipping-&gt;getName($this-&gt;order-&gt;order&#95;shipping&#95;method,$this-&gt;order-&gt;order&#95;shipping&#95;id).''; }?&gt;  I'm not sure how to modify that to print the Shipping Method in the Shipping Invoice. Can anyone help?  Thanks!")* was created by *[phickman](/forum/user/5715-phickman "View phickman's Profile")*

Hello,

We are currently offering two different shipping methods; UPS or Manual/House Delivery. We would like the Shipping Methods to display on the Shipping Invoice. I understand that the oldinvoice.php file can be modified, but I'm not really that proficient in PHP and was hoping to get some pointers. Or, to find someone who would be interested in working on those modifications for, or with us.

I can see that both invoice.php and oldinvoice.php have code to only print the Shipping Method line when the user choices the regular invoice and not the Shipping Invoice with this code:

&lt;?php
if($this-&gt;invoice_type=='full'){
echo JText::_('INVOICE');
}else{
echo JText::_('SHIPPING_INVOICE');
}
?&gt;

and this:

&lt;?php if(!empty($this-&gt;shipping)){
echo JText::_('HIKASHOP_SHIPPING_METHOD').' : '.$this-&gt;shipping-&gt;getName($this-&gt;order-&gt;order_shipping_method,$this-&gt;order-&gt;order_shipping_id).'&lt;br/&gt;';
}?&gt;

I'm not sure how to modify that to print the Shipping Method in the Shipping Invoice. Can anyone help?

Thanks!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc5OTYxLWFkZC1zaGlwcGluZy1tZXRob2QtdG8tc2hpcHBpbmctaW52b2ljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86582
- Thank you received: 14322
-
-

13 years 7 months ago [\#97585](#97585) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Add Shipping Method to Shipping Invoice](/forum/4-how-to/79961-add-shipping-method-to-shipping-invoice#97585 "Hello,  We are currently offering two different shipping methods; UPS or Manual/House Delivery. We would like the Shipping Methods to display on the Shipping Invoice. I understand that the oldinvoice.php file can be modified, but I'm not really that proficient in PHP and was hoping to get some pointers. Or, to find someone who would be interested in working on those modifications for, or with us.  I can see that both invoice.php and oldinvoice.php have code to only print the Shipping Method line when the user choices the regular invoice and not the Shipping Invoice with this code:  invoice&#95;type=='full'){ echo JText::&#95;('INVOICE'); }else{ echo JText::&#95;('SHIPPING&#95;INVOICE'); } ?&gt;  and this:  shipping)){ echo JText::&#95;('HIKASHOP&#95;SHIPPING&#95;METHOD').' : '.$this-&gt;shipping-&gt;getName($this-&gt;order-&gt;order&#95;shipping&#95;method,$this-&gt;order-&gt;order&#95;shipping&#95;id).''; }?&gt;  I'm not sure how to modify that to print the Shipping Method in the Shipping Invoice. Can anyone help?  Thanks!")*

Hi,

You would have to add the line:
&lt;?php } if(true){
before:
&lt;?php if(!empty($this-&gt;shipping)){
in the invoice file of the order view.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc5OTYxLWFkZC1zaGlwcGluZy1tZXRob2QtdG8tc2hpcHBpbmctaW52b2ljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[phickman](/forum/user/5715-phickman "View phickman's Profile")**
- [![phickman's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5715-phickman "View phickman's Profile") Topic Author
- [ Offline](/forum/user/5715-phickman)

Less More

- Posts: 51
- Thank you received: 0
-
-

13 years 7 months ago [\#98438](#98438) by [phickman](/forum/user/5715-phickman "View phickman's Profile")  Replied by *[phickman](/forum/user/5715-phickman "View phickman's Profile")* on topic *[Add Shipping Method to Shipping Invoice](/forum/4-how-to/79961-add-shipping-method-to-shipping-invoice#98438 "Hello,  We are currently offering two different shipping methods; UPS or Manual/House Delivery. We would like the Shipping Methods to display on the Shipping Invoice. I understand that the oldinvoice.php file can be modified, but I'm not really that proficient in PHP and was hoping to get some pointers. Or, to find someone who would be interested in working on those modifications for, or with us.  I can see that both invoice.php and oldinvoice.php have code to only print the Shipping Method line when the user choices the regular invoice and not the Shipping Invoice with this code:  invoice&#95;type=='full'){ echo JText::&#95;('INVOICE'); }else{ echo JText::&#95;('SHIPPING&#95;INVOICE'); } ?&gt;  and this:  shipping)){ echo JText::&#95;('HIKASHOP&#95;SHIPPING&#95;METHOD').' : '.$this-&gt;shipping-&gt;getName($this-&gt;order-&gt;order&#95;shipping&#95;method,$this-&gt;order-&gt;order&#95;shipping&#95;id).''; }?&gt;  I'm not sure how to modify that to print the Shipping Method in the Shipping Invoice. Can anyone help?  Thanks!")*

So now I have this:

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

&lt;/td&gt;

And am receiving the following error:

Parse error: syntax error, unexpected '&lt;' in /home/phickman/public_html/urbanashes/partners/administrator/templates/bluestork/html/com_hikashop/order/invoice.php on line 409

Did that tag you gave me need to be closed? And, if so where and how?

Thanking you in advance for your patience! (I know enough code to sometimes see what is supposed to be happening, but not enough to debug.)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc5OTYxLWFkZC1zaGlwcGluZy1tZXRob2QtdG8tc2hpcHBpbmctaW52b2ljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 7 months ago [\#98499](#98499) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Add Shipping Method to Shipping Invoice](/forum/4-how-to/79961-add-shipping-method-to-shipping-invoice#98499 "Hello,  We are currently offering two different shipping methods; UPS or Manual/House Delivery. We would like the Shipping Methods to display on the Shipping Invoice. I understand that the oldinvoice.php file can be modified, but I'm not really that proficient in PHP and was hoping to get some pointers. Or, to find someone who would be interested in working on those modifications for, or with us.  I can see that both invoice.php and oldinvoice.php have code to only print the Shipping Method line when the user choices the regular invoice and not the Shipping Invoice with this code:  invoice&#95;type=='full'){ echo JText::&#95;('INVOICE'); }else{ echo JText::&#95;('SHIPPING&#95;INVOICE'); } ?&gt;  and this:  shipping)){ echo JText::&#95;('HIKASHOP&#95;SHIPPING&#95;METHOD').' : '.$this-&gt;shipping-&gt;getName($this-&gt;order-&gt;order&#95;shipping&#95;method,$this-&gt;order-&gt;order&#95;shipping&#95;id).''; }?&gt;  I'm not sure how to modify that to print the Shipping Method in the Shipping Invoice. Can anyone help?  Thanks!")*

Hi,

Thanks to try that code: Code:

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc5OTYxLWFkZC1zaGlwcGluZy1tZXRob2QtdG8tc2hpcHBpbmctaW52b2ljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.046 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
