Add Description & Short Description For Invoice Print

Hi,



I tried to search about this request of how to add desc and short desc inside invoice…

can someone who can help me how to add this. We currently using Voucher for the Customer.

and I want to modify the invoice. I checked also the addons “invoice / packing slip” but i dont see that there is a feature for what i need for my invoice. Please help me, i dont know how and where to put the code. I used multi vendor lifetime license. This is the first time i use cs cart ecommerce…

hi eucgroup,



unfortunately, order info does not store product description information that is why it is not possible quickly enable this feature for invoice/packing slip and additional code modification is required.

f you are interested in it, we will be glad to assist you



Best regards,

WSA team

This is trivial task. If you are interested, please PM me and we will find the solution

[quote name='Damir (WSA-team)' timestamp='1428645672' post='210900']

hi eucgroup,



unfortunately, order info does not store product description information that is why it is not possible quickly enable this feature for invoice/packing slip and additional code modification is required.

f you are interested in it, we will be glad to assist you



Best regards,

WSA team

[/quote]



Thank you for your answer. I thought it will be easy to add the description for the invoice…

Hy eucgroup,



You can use this code to show product description in the invoice:



{assign var="product_info" value=$oi.product_id|fn_get_product_data:$auth:$smarty.const.CART_LANGUAGE:false:false:false:false}
{if $product_info.short_description}
{$product_info.short_description nofilter}{/if}
{if $product_info.full_description}
{$product_info.full_description nofilter}{/if}




For backend put it in the design/backend/mail/templates/orders/invoice.tpl file after line #226, this one


{if $oi.product_options}
{include file="common/options_info.tpl" product_options=$oi.product_options}{/if}




And for frontend use design/themes/responsive/mail/templates/orders/invoice.tpl file and put the code after the following line (#234)

{if $oi.product_options}
{include file="common/options_info.tpl" product_options=$oi.product_options}{/if}




Best regards,

Alt-team

[quote name='Alt-team' timestamp='1428661790' post='210942']

Hy eucgroup,



You can use this code to show product description in the invoice:



{assign var="product_info" value=$oi.product_id|fn_get_product_data:$auth:$smarty.const.CART_LANGUAGE:false:false:false:false}
{if $product_info.short_description}
{$product_info.short_description nofilter}{/if}
{if $product_info.full_description}
{$product_info.full_description nofilter}{/if}




For backend put it in the design/backend/mail/templates/orders/invoice.tpl file after line #226, this one


{if $oi.product_options}
{include file="common/options_info.tpl" product_options=$oi.product_options}{/if}




And for frontend use design/themes/responsive/mail/templates/orders/invoice.tpl file and put the code after the following line (#234)

{if $oi.product_options}
{include file="common/options_info.tpl" product_options=$oi.product_options}{/if}




Best regards,

Alt-team

[/quote]



Ok i will try this…



ohh i forgot…where is the file for the invoice?



where i can put this

[color=#666600]{[/color][color=#000000]assign [/color][color=#000088]var[/color][color=#666600]=[/color][color=#008800]“product_info”[/color][color=#000000] value[/color][color=#666600]=[/color][color=#000000]$oi[/color][color=#666600].[/color][color=#000000]product_id[/color][color=#666600]|[/color][color=#000000]fn_get_product_data[/color][color=#666600]:[/color][color=#000000]$auth[/color][color=#666600]:[/color][color=#000000]$smarty[/color][color=#666600].[/color][color=#000088]const[/color][color=#666600].[/color][color=#000000]CART_LANGUAGE[/color][color=#666600]:[/color][color=#000088]false[/color][color=#666600]:[/color][color=#000088]false[/color][color=#666600]:[/color][color=#000088]false[/color][color=#666600]:[/color][color=#000088]false[/color][color=#666600]}[/color]

[color=#666600]{[/color][color=#000088]if[/color][color=#000000] $product_info[/color][color=#666600].[/color][color=#000000]short_description[/color][color=#666600]}<[/color][color=#000000]br[/color][color=#666600]/>{[/color][color=#000000]$product_info[/color][color=#666600].[/color][color=#000000]short_description nofilter[/color][color=#666600]}{/[/color][color=#000088]if[/color][color=#666600]}[/color]

[color=#666600]{[/color][color=#000088]if[/color][color=#000000] $product_info[/color][color=#666600].[/color][color=#000000]full_description[/color][color=#666600]}<[/color][color=#000000]br[/color][color=#666600]/>{[/color][color=#000000]$product_info[/color][color=#666600].[/color][color=#000000]full_description nofilter[/color][color=#666600]}{/[/color][color=#000088]if[/color][color=#666600]}[/color]



My apology this is my first use for the cs cart…thats why i dont know on which folder/file i can put the code…





BTW Thanks… I do really Appreciate your response… to Alt-Team, Ecom Labs, and W$A Team…

opsss…sorry…i get it now… Thanks again…i will test it now

[quote name=‘Alt-team’ timestamp=‘1428661790’ post=‘210942’]

Hy eucgroup,



You can use this code to show product description in the invoice:


<br />
{assign var="product_info" value=$oi.product_id|fn_get_product_data:$auth:$smarty.const.CART_LANGUAGE:false:false:false:false}<br />
{if $product_info.short_description}<br/>{$product_info.short_description nofilter}{/if}<br />
{if $product_info.full_description}<br/>{$product_info.full_description nofilter}{/if}<br />

```<br />
<br />
For backend put it in the design/backend/mail/templates/orders/invoice.tpl file after line #226, this one<br />
```php
<br />
{if $oi.product_options}<br/>{include file="common/options_info.tpl" product_options=$oi.product_options}{/if}<br />

```<br />
<br />
And for frontend use design/themes/responsive/mail/templates/orders/invoice.tpl file and put the code after the following line (#234)<br />
```php
{if $oi.product_options}<br/>{include file="common/options_info.tpl" product_options=$oi.product_options}{/if}
```<br />
<br />
Best regards,<br />
Alt-team<br />
[/quote]<br />
<br />
Nice... It worked.... Thank you Alt-Team...for this Code...<img src="upload://zpvGXU83KUgZwhE2OOlB1CZIceX.png" class="bbc_emoticon" alt="^_^">

[quote name='Alt-team' timestamp='1428661790' post='210942']

Hy eucgroup,



You can use this code to show product description in the invoice:



{assign var="product_info" value=$oi.product_id|fn_get_product_data:$auth:$smarty.const.CART_LANGUAGE:false:false:false:false}
{if $product_info.short_description}
{$product_info.short_description nofilter}{/if}
{if $product_info.full_description}
{$product_info.full_description nofilter}{/if}




For backend put it in the design/backend/mail/templates/orders/invoice.tpl file after line #226, this one


{if $oi.product_options}
{include file="common/options_info.tpl" product_options=$oi.product_options}{/if}




And for frontend use design/themes/responsive/mail/templates/orders/invoice.tpl file and put the code after the following line (#234)

{if $oi.product_options}
{include file="common/options_info.tpl" product_options=$oi.product_options}{/if}




Best regards,

Alt-team

[/quote]



Hi, Again



I have question… How about the short description…I want to show in invoice… not the full description…

Is still the same code?

Because I tried to remove this code: on both backend and theme folder

[color=#000088]if[/color][color=#000000] $product_info[/color][color=#666600].[/color][color=#000000]full_description[/color][color=#666600]}<[/color][color=#000000]br[/color][color=#666600]/>{[/color][color=#000000]$product_info[/color][color=#666600].[/color][color=#000000]full_description nofilter[/color][color=#666600]}{/[/color][color=#000088]if[/color][color=#666600]}[/color]



but its still show in the invoice… is there another code for this?



and where I can modify the CSS for INVOICE Layout…I want to modify the paddings and margins…

Clear both the registry and template caches on your server by doing:

[your_domain_admin.php]?cc&ctpl

This will force the changes to your template to be used.

[quote name=‘tbirnseth’ timestamp=‘1428957191’ post=‘211334’]

Clear both the registry and template caches on your server by doing:

[your_domain_admin.php]?cc&ctpl
```<br />
This will force the changes to your template to be used.<br />
[/quote]<br />
<br />
I dont get it... is that url ?<br />
<br />
like this  http://domain.com/admin.php?cc&tpl    <br />
<br />
Is this what you mean..<img src="upload://zpvGXU83KUgZwhE2OOlB1CZIceX.png" class="bbc_emoticon" alt="^_^">...

Yes, that's what I mean by “[your_domain_admin.php]” syntax. I have no way of knowing your domain and what you use for your admin.php file so that's how I short-hand it…

[quote name=‘tbirnseth’ timestamp=‘1428964565’ post=‘211342’]

Yes, that’s what I mean by “[your_domain_admin.php]” syntax. I have no way of knowing your domain and what you use for your admin.php file so that’s how I short-hand it…

[/quote]



haha…ok thank you…^_^… and sorry… im noob to understand those term…^_^…it worked btw…^_^



is this the answer for the whole problem right?

[quote name='eucgroup' timestamp='1428956980' post='211332']

and where I can modify the CSS for INVOICE Layout…I want to modify the paddings and margins…

[/quote]



If you open both invoice.tpl files, you will see that all CSS code is located there. These files contain CSS code because they are sent in e-mails.

Hi eucgroup,



You are very welcome. Hope you sorted this out and now the code works as you need.



Best regards,

Alt-team

[quote name=‘eComLabs’ timestamp=‘1428999677’ post=‘211356’]

If you open both invoice.tpl files, you will see that all CSS code is located there. These files contain CSS code because they are sent in e-mails.

[/quote][quote name=‘Alt-team’ timestamp=‘1429017155’ post=‘211420’]

Hi eucgroup,



You are very welcome. Hope you sorted this out and now the code works as you need.



Best regards,

Alt-team

[/quote]



Its Ok now…^_^…haha,thanks ALT-TEAM and ECL…you solved my problem…

You are welcome!