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

#   PDF Invoice custom text based on status.

##

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

Less More

- Posts: 104
- Thank you received: 2
-
-

8 years 4 months ago -  8 years 4 months ago [\#295632](#295632) by [SnoozeULooze.co.za](/forum/user/28906-snoozeulooze-co-za "View SnoozeULooze.co.za's Profile")  *[PDF Invoice custom text based on status.](/forum/30-integrations/895317-pdf-invoice-custom-text-based-on-status#295632 "-- HikaShop version -- : 3.5 -- Joomla version -- : 3.8.8 -- PHP version -- : 7.0  Hi,  I have purchased the PDF invoice plugin. Is it possible to display the payment status &quot;Created&quot; or &quot;Confirmed&quot; on the invoice? Also is it possible to display custom text based on the status, I would like to display &quot;Proforma Invoice&quot; on the invoice when it is unpaid (Created) and &quot;Tax Invoice&quot; when payment has been made and the order has been confirmed.  If this is possible, how would the code look?  Thank you.")* was created by *[SnoozeULooze.co.za](/forum/user/28906-snoozeulooze-co-za "View SnoozeULooze.co.za's Profile")*

-- HikaShop version -- : 3.5
-- Joomla version -- : 3.8.8
-- PHP version -- : 7.0

Hi,

I have purchased the PDF invoice plugin.
Is it possible to display the payment status "Created" or "Confirmed" on the invoice?
Also is it possible to display custom text based on the status, I would like to display "Proforma Invoice" on the invoice when it is unpaid (Created) and "Tax Invoice" when payment has been made and the order has been confirmed.

If this is possible, how would the code look?

Thank you.

Last edit: 8 years 4 months ago by [SnoozeULooze.co.za](/forum/user/28906-snoozeulooze-co-za "View SnoozeULooze.co.za's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84OTUzMTctcGRmLWludm9pY2UtY3VzdG9tLXRleHQtYmFzZWQtb24tc3RhdHVzP3RtcGw9bWFya2Rvd24=) 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: 86587
- Thank you received: 14325
-
-

8 years 4 months ago [\#295646](#295646) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[PDF Invoice custom text based on status.](/forum/30-integrations/895317-pdf-invoice-custom-text-based-on-status#295646 "-- HikaShop version -- : 3.5 -- Joomla version -- : 3.8.8 -- PHP version -- : 7.0  Hi,  I have purchased the PDF invoice plugin. Is it possible to display the payment status &quot;Created&quot; or &quot;Confirmed&quot; on the invoice? Also is it possible to display custom text based on the status, I would like to display &quot;Proforma Invoice&quot; on the invoice when it is unpaid (Created) and &quot;Tax Invoice&quot; when payment has been made and the order has been confirmed.  If this is possible, how would the code look?  Thank you.")*

Hi,

The code would look like that: Code:

// display the order status: echo hikashop_orderStatus($order-&gt;order_status); if($order-&gt;order_status == 'created') { echo 'my text only for created orders'; }

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

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

Less More

- Posts: 104
- Thank you received: 2
-
-

8 years 4 months ago [\#295666](#295666) by [SnoozeULooze.co.za](/forum/user/28906-snoozeulooze-co-za "View SnoozeULooze.co.za's Profile")  Replied by *[SnoozeULooze.co.za](/forum/user/28906-snoozeulooze-co-za "View SnoozeULooze.co.za's Profile")* on topic *[PDF Invoice custom text based on status.](/forum/30-integrations/895317-pdf-invoice-custom-text-based-on-status#295666 "-- HikaShop version -- : 3.5 -- Joomla version -- : 3.8.8 -- PHP version -- : 7.0  Hi,  I have purchased the PDF invoice plugin. Is it possible to display the payment status &quot;Created&quot; or &quot;Confirmed&quot; on the invoice? Also is it possible to display custom text based on the status, I would like to display &quot;Proforma Invoice&quot; on the invoice when it is unpaid (Created) and &quot;Tax Invoice&quot; when payment has been made and the order has been confirmed.  If this is possible, how would the code look?  Thank you.")*

> nicolas wrote: Hi,
>
> The code would look like that:
>
> Code:
>
> // display the order status: echo hikashop_orderStatus($order-&gt;order_status); if($order-&gt;order_status == 'created') { echo 'my text only for created orders'; }

Thanks, Nicolas
All I needed to do was to modify it to look like this and now it works perfectly. Code:

&lt;?php if($order-&gt;order_status == 'created') { echo '&lt;b&gt;Proforma Tax Invoice&lt;/b&gt;'; } elseif($order-&gt;order_status == 'confirmed') { echo '&lt;b&gt;Tax Invoice&lt;/b&gt;'; } ?&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84OTUzMTctcGRmLWludm9pY2UtY3VzdG9tLXRleHQtYmFzZWQtb24tc3RhdHVzP3RtcGw9bWFya2Rvd24=) 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.044 seconds

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