Jump to content

Get id_cart (from database) printed on the PDF Invoice


Recommended Posts

** Help request **


The problem:

I can't seem to get "id_cart" (from ps_orders) to show up in the PDF invoice :/

I'm not very good with Prestashops way of interacting with the database, though i am a "okay" programmer.


I've created the plot in invoice.tpl where it should be, and even tested that i works with other database-calls, but i can't seem to get "id_cart" in any way.. Even tried making a DB statement with "Select" and "From" and all, but then i had a problem with the "where" part..



Attatched is the picture of where i've made place for the id_cart, and the part of the code where i have to make the database call (That i keep failing at)




Need help to make a database call, to get "id_cart" from "ps_orders", for a given PDF invoice/order


I dearly hope someone here might be able to help!



Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...