jalokin80 Posted March 27, 2017 Share Posted March 27, 2017 Hello community. I have a problem in adding the cart_id to the order slip in our shop. I did this earlier in the order invoice and it worked like a charm. But I cannot find the cart:id in the database table for the order slip, so the mod that I have made on the order invoice pdf is not possible on the order slip. We use the order slip for credit notes at order returns. Does someone know if it is possible to pick up the cart_id from the order table and add it to the order slip summary-tab? Right now my code looks like this in /prestashop/themes/my_template/pdf/order-slip.summary-tab.tpl <table id="summary-tab" width="100%"> <tr> <th class="header small" valign="middle">{l s='Order Reference' pdf='true'}</th> <th class="header small" valign="middle">{l s='Betalings ID' pdf='true'}</th> <th class="header small" valign="middle">{l s='Order Date' pdf='true'}</th> {if $addresses.invoice->vat_number} <th class="header small" valign="middle">{l s='VAT Number' pdf='true'}</th> {/if} </tr> <tr> <td class="center small white">{$order->getUniqReference()}</td> <td class="center small white">{$cart_id}</td> <td class="center small white">{dateFormat date=$order->date_add full=0}</td> {if $addresses.invoice->vat_number} <td class="center small white"> {$addresses.invoice->vat_number} </td> {/if} </tr> </table> As you can see I have added the $cart_id but it picks up nothing probably because the cart_id is missing from the order_slip table in the db. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now