Add customer notes to packaging slip?

Basically, my customers leave notes at checkout and I put their slip in their package when I ship it. I want them to see the notes they left on the slip, so they know that my staff was aware of them when packaging up their order.



Is this possible? I have looked at the template for the packaging slip and see a code to display “notes” but don’t see the notes. Are they hidden on the slip? Can I remove this block???

Add the variable {$order_info.notes] to your packing slip template.

thanks for replying.



Maybe you can help me make sense of this? I went to admin to edit the template for print_packaging_slips and I see this.




```php

{if $order_info.notes}

{$lang.notes}:

{$order_info.notes|wordwrap:90:"\n":true|nl2br}

{/if} ```

I see the [color=#282828][font=arial, verdana, tahoma, sans-serif]{$order_info.notes] variable you suggested in that but it does not appear. Is there something hiding it from the packaging slip?[/font][/color]

Looks like they only print it fi you have “Use shipments” == 'N' and there is a value to the $shipment variable.



I'm guessing that this should print the notes on any packing slip before a shipment but not on packing slips afterward.

What is the code to add staff notes to slip? order_staff.notes?

The goal of staff notes is that they are “internal”. But if you wanted to add them, you would use the template variable:

{$order_data.details}

[quote name='tbirnseth' timestamp='1355365111' post='151035']

The goal of staff notes is that they are “internal”. But if you wanted to add them, you would use the template variable:

{$order_data.details}

[/quote]



Thank you. Would I just add this code to the packaging slip, for instance? I tried and wrote “test” in the staff side notes of an order but when I went to view the packaging slip, nothing was there.



This is what I use to try and display both CUSTOMER notes and STAFF notes by editing print_packing_slip.tpl.


```php

{if $order_info.notes}

Notes from customer:

{$order_info.notes|wordwrap:90:"\n":true|nl2br}

Staff Notes:

{$order_data.details}

{/if}
```

If there are no 'notes' then your 'details' will not show since it's within the if statement.

You should use a separate if and container divs for the 'details' just like you used for 'notes'.

Not sure what I am doing wrong? This is what I have for the entire page. I think I call for staff notes twice and it still won't display. I have put test notes on the staff side in an order to test it; still nothing appears there.


```php

{* $Id: print_packing_slip.tpl 12792 2011-06-27 13:33:36Z bimib $ *}





{if $order_info}
{literal}

body,p,div {
color: #000000;
font: 12px Arial;
}
body {
padding: 0;
margin: 0;
}
a, a:link, a:visited, a:hover, a:active {
color: #000000;
text-decoration: underline;
}
a:hover {
text-decoration: none;
}


body {
background-color: #ffffff;
}
.scissors {
display: none;
}

{/literal}
{if !$company_placement_info}
{assign var="company_placement_info" value=$order_info.company_id|fn_get_company_placement_info}
{/if}






{assign var="profile_fields" value='I'|fn_get_profile_fields}
{if $profile_fields.S}


{/if}
{*



info *}








DC








{$company_placement_info.company_country_descr}

{if $company_placement_info.company_phone}




{/if}
{if $company_placement_info.company_phone_2}




{/if}
{if $company_placement_info.company_fax}




{/if}
{if $company_placement_info.company_website}




{/if}
{$lang.phone2_label}: {$company_placement_info.company_phone_2}
{$lang.fax}: {$company_placement_info.company_fax}


{$lang.packing_slip_for_order} #{$order_info.order_id}



{if $settings.General.use_shipments == "Y" && $shipment}








{else}




{/if}
{$lang.order_date}: {$order_info.timestamp|date_format:"`$settings.Appearance.date_format`, `$settings.Appearance.time_format`"}
{$lang.shipment_date}: {$shipment.shipment_timestamp|date_format:"`$settings.Appearance.date_format`, `$settings.Appearance.time_format`"}
{$lang.date}: {$order_info.timestamp|date_format:"`$settings.Appearance.date_format`, `$settings.Appearance.time_format`"}



{if $profile_fields}


{if $profile_fields.B}

{/if}
{if $profile_fields.S}

{/if}


{$lang.bill_to}:


{if $order_info.b_firstname || $order_info.b_lastname}


{$order_info.b_firstname} {$order_info.b_lastname}


{/if}
{if $order_info.b_address || $order_info.b_address_2}


{$order_info.b_address} {$order_info.b_address_2}


{/if}
{if $order_info.b_city || $order_info.b_state_descr || $order_info.b_zipcode}


{$order_info.b_city}{if $order_info.b_city && ($order_info.b_state_descr || $order_info.b_zipcode)},{/if} {$order_info.b_state_descr} {$order_info.b_zipcode}


{/if}
{if $order_info.b_country_descr}


{$order_info.b_country_descr}


{/if}
{if $order_info.phone}


Phone: {$order_info.phone}


{/if}
{if $order_info.email}


Email: {$order_info.email}


{/if}
{include file="profiles/profiles_extra_fields.tpl" fields=$profile_fields.B}

{$lang.ship_to}:


{if $order_info.s_firstname || $order_info.s_lastname}


{$order_info.s_firstname} {$order_info.s_lastname}


{/if}
{if $order_info.s_address || $order_info.s_address_2}


{$order_info.s_address} {$order_info.s_address_2}


{/if}
{if $order_info.s_city || $order_info.s_state_descr || $order_info.s_zipcode}


{$order_info.s_city}{if $order_info.s_city && ($order_info.s_state_descr || $order_info.s_zipcode)},{/if} {$order_info.s_state_descr} {$order_info.s_zipcode}


{/if}
{if $order_info.s_country_descr}


{$order_info.s_country_descr}


{/if}
{if $order_info.phone}


Phone: {$order_info.phone}


{/if}
{if $order_info.email}


Email: {$order_info.email}


{/if}
{include file="profiles/profiles_extra_fields.tpl" fields=$profile_fields.S}

{/if}
{* Customer info *}










{if $order_info.shipping || $shipment}




{if $tracking_number_exists}




{/if}
{/if}
{$lang.status}: {include file="common_templates/status.tpl" status=$order_info.status display="view"}
{$lang.payment_method}: {$order_info.payment_method.payment|default:" - "}
{$lang.shipping_method}:
{if !$shipment}
{foreach from=$order_info.shipping item="shipping" name="f_shipp"}
{$shipping.shipping}
{if !$smarty.foreach.f_shipp.last}, {/if}
{if $shipping.tracking_number}{assign var="tracking_number_exists" value="Y"}{/if}
{/foreach}
{else}
{$shipment.shipping}
{if $shipment.tracking_number}
 ({$lang.tracking_number}: {$shipment.tracking_number})
{/if}
{/if}
{$lang.tracking_number}:
{foreach from=$order_info.shipping item="shipping" name="f_shipp"}
{if $shipping.tracking_number}{$shipping.tracking_number}
{if !$smarty.foreach.f_shipp.last},{/if}
{/if}
{/foreach}


{* Ordered products *}








{foreach from=$order_info.items item="oi"}
{if $oi.amount > 0}





{/if}
{/foreach}
{$lang.product} {$lang.product_code} {$lang.quantity}

{$oi.product|unescape|default:$lang.deleted_product}
{if $oi.product_options}
{include file="common_templates/options_info.tpl" product_options=$oi.product_options skip_modifiers=true}{/if}
{$oi.amount}


{if $order_info.notes}
Notes from customer:

{$order_info.notes|wordwrap:90:"\n":true|nl2br}

{/if}
{if $order_data.details}
Staff Notes:

{$order_data.details}

{/if}
{* /Ordered products *}

{if $settings.General.use_shipments != "Y" && $shipment}
{if $order_info.notes}
{$lang.notes}:

{$order_info.notes}

{/if}
{else}
{if $shipment.comments}
{$lang.comments}:

{$shipment.comments|wordwrap:90:"\n":true|nl2br}

{/if}
{/if}


{hook name="orders:invoice"}
{/hook}


{/if}


```

Sorry, my error. Make it {$order_info.details} NOT {$order_data.details}

I really appreciate all of your help tbirnseth.



I just switched the code and did not work. The packaging slip shows customer notes from the left hand side but not staff notes from the right.



I am running CS-CART: version 2.2.1 PROFESSIONAL if that helps.



I put the words “test1” on the custom notes side and “test2” on the staff side. Only the words “test1” appear.



Thanks again.

Add an html comment such as

```php


```

Then view source of your page and see what's in the 'details' element or find your data.

Not sure what you mean by view page source to see my data?



This is what I have the packaging slip template as of now:


```php

{* $Id: print_packing_slip.tpl 12792 2011-06-27 13:33:36Z bimib $ *}





{if $order_info}
{literal}

body,p,div {
color: #000000;
font: 12px Arial;
}
body {
padding: 0;
margin: 0;
}
a, a:link, a:visited, a:hover, a:active {
color: #000000;
text-decoration: underline;
}
a:hover {
text-decoration: none;
}


body {
background-color: #ffffff;
}
.scissors {
display: none;
}

{/literal}
{if !$company_placement_info}
{assign var="company_placement_info" value=$order_info.company_id|fn_get_company_placement_info}
{/if}






{assign var="profile_fields" value='I'|fn_get_profile_fields}
{if $profile_fields.S}


{/if}
{*



info *}








DC








{$company_placement_info.company_country_descr}

{if $company_placement_info.company_phone}




{/if}
{if $company_placement_info.company_phone_2}




{/if}
{if $company_placement_info.company_fax}




{/if}
{if $company_placement_info.company_website}




{/if}
{$lang.phone2_label}: {$company_placement_info.company_phone_2}
{$lang.fax}: {$company_placement_info.company_fax}


{$lang.packing_slip_for_order} #{$order_info.order_id}



{if $settings.General.use_shipments == "Y" && $shipment}








{else}




{/if}
{$lang.order_date}: {$order_info.timestamp|date_format:"`$settings.Appearance.date_format`, `$settings.Appearance.time_format`"}
{$lang.shipment_date}: {$shipment.shipment_timestamp|date_format:"`$settings.Appearance.date_format`, `$settings.Appearance.time_format`"}
{$lang.date}: {$order_info.timestamp|date_format:"`$settings.Appearance.date_format`, `$settings.Appearance.time_format`"}



{if $profile_fields}


{if $profile_fields.B}

{/if}
{if $profile_fields.S}

{/if}


{$lang.bill_to}:


{if $order_info.b_firstname || $order_info.b_lastname}


{$order_info.b_firstname} {$order_info.b_lastname}


{/if}
{if $order_info.b_address || $order_info.b_address_2}


{$order_info.b_address} {$order_info.b_address_2}


{/if}
{if $order_info.b_city || $order_info.b_state_descr || $order_info.b_zipcode}


{$order_info.b_city}{if $order_info.b_city && ($order_info.b_state_descr || $order_info.b_zipcode)},{/if} {$order_info.b_state_descr} {$order_info.b_zipcode}


{/if}
{if $order_info.b_country_descr}


{$order_info.b_country_descr}


{/if}
{if $order_info.phone}


Phone: {$order_info.phone}


{/if}
{if $order_info.email}


Email: {$order_info.email}


{/if}
{include file="profiles/profiles_extra_fields.tpl" fields=$profile_fields.B}

{$lang.ship_to}:


{if $order_info.s_firstname || $order_info.s_lastname}


{$order_info.s_firstname} {$order_info.s_lastname}


{/if}
{if $order_info.s_address || $order_info.s_address_2}


{$order_info.s_address} {$order_info.s_address_2}


{/if}
{if $order_info.s_city || $order_info.s_state_descr || $order_info.s_zipcode}


{$order_info.s_city}{if $order_info.s_city && ($order_info.s_state_descr || $order_info.s_zipcode)},{/if} {$order_info.s_state_descr} {$order_info.s_zipcode}


{/if}
{if $order_info.s_country_descr}


{$order_info.s_country_descr}


{/if}
{if $order_info.phone}


Phone: {$order_info.phone}


{/if}
{if $order_info.email}


Email: {$order_info.email}


{/if}
{include file="profiles/profiles_extra_fields.tpl" fields=$profile_fields.S}

{/if}
{* Customer info *}










{if $order_info.shipping || $shipment}




{if $tracking_number_exists}




{/if}
{/if}
{$lang.status}: {include file="common_templates/status.tpl" status=$order_info.status display="view"}
{$lang.payment_method}: {$order_info.payment_method.payment|default:" - "}
{$lang.shipping_method}:
{if !$shipment}
{foreach from=$order_info.shipping item="shipping" name="f_shipp"}
{$shipping.shipping}
{if !$smarty.foreach.f_shipp.last}, {/if}
{if $shipping.tracking_number}{assign var="tracking_number_exists" value="Y"}{/if}
{/foreach}
{else}
{$shipment.shipping}
{if $shipment.tracking_number}
 ({$lang.tracking_number}: {$shipment.tracking_number})
{/if}
{/if}
{$lang.tracking_number}:
{foreach from=$order_info.shipping item="shipping" name="f_shipp"}
{if $shipping.tracking_number}{$shipping.tracking_number}
{if !$smarty.foreach.f_shipp.last},{/if}
{/if}
{/foreach}


{* Ordered products *}








{foreach from=$order_info.items item="oi"}
{if $oi.amount > 0}





{/if}
{/foreach}
{$lang.product} {$lang.product_code} {$lang.quantity}

{$oi.product|unescape|default:$lang.deleted_product}
{if $oi.product_options}
{include file="common_templates/options_info.tpl" product_options=$oi.product_options skip_modifiers=true}{/if}
{$oi.amount}


{if $order_info.notes}
Notes from customer:

{$order_info.notes|wordwrap:90:"\n":true|nl2br}

{/if}
{if $order_data.details}
Staff Notes:

{$order_info|print_r:true}

{/if}
{* /Ordered products *}

{if $settings.General.use_shipments != "Y" && $shipment}
{if $order_info.notes}
{$lang.notes}:

{$order_info.notes}

{/if}v
{else}
{if $shipment.comments}
{$lang.comments}:

{$shipment.comments|wordwrap:90:"\n":true|nl2br}

{/if}
{/if}


{hook name="orders:invoice"}
{/hook}


{/if}


```

How you integrated this on invoice ?

I'm not going to read your template source. When you display it, use your browser's 'view source' functionality to see what all your template variables resolved to.

[quote name='miracles' timestamp='1355810379' post='151364']

How you integrated this on invoice ?

[/quote]



It's not the invoice, it's the packaging slip. I'm trying to add a code to display the staff notes on the packaging slip. As far as what I use, I use the template editor selection in admin.

[quote name='tbirnseth' timestamp='1355862105' post='151409']

I'm not going to read your template source. When you display it, use your browser's 'view source' functionality to see what all your template variables resolved to.

[/quote]



I don't know if this is what you want or not? I went into admin and viewed a packing slip for a customer where I had placed staff notes. When I right clicked to view source, I see the customer notes but no staff notes. As far as variables, what am I looking for?

Could somebody recommend a person who could work on this? I would hire Cs-Cart directly but they usually take months to work on special requests. Plus, I don't see why this is really difficult?

[quote name='tbirnseth' timestamp='1355438545' post='151116']

Sorry, my error. Make it {$order_info.details} NOT {$order_data.details}

[/quote]



Looking at your code, you still have {$order_data.details}. It's supposed to be {$order_info.details} for staff notes.

There are several of us who could do this for you and probably quicker than all these messages.

Suggest you contact whomever you are comfortable with. Personally, I have a 1hr minimum so you might want to identify a couple of other things to go along with it. This is at most a 1/2 hr job including the setup time for accessing your site.

Hi ckad79, did you get this working in your store?