Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
integration:export_to_pdf [2016/04/29 17:35] – created foxylukeintegration:export_to_pdf [2017/04/26 07:02] (current) – external edit 127.0.0.1
Line 26: Line 26:
  
 Author: Luke Stokes Author: Luke Stokes
 +
 Use however you want and take personal responsibility when doing so. Use however you want and take personal responsibility when doing so.
  
Line 39: Line 40:
   - Configure your store's domain (Example: "yourstore.foxycart.com" or if you're using a custom subdomain, "secure.yourstore.com")   - Configure your store's domain (Example: "yourstore.foxycart.com" or if you're using a custom subdomain, "secure.yourstore.com")
   - Run the script locally as: php transaction_to_pdf.php   - Run the script locally as: php transaction_to_pdf.php
 +
 +To view how many receipt files were created per month, you can run this code in bash:
 +
 +<code>
 +for D in `find . -type d`
 +do
 +    echo "${D}":;
 +    ls "${D}" | wc -l;
 +done
 +</code>
  
 ===== Requirements ===== ===== Requirements =====
  
 wkhtmltopdf wkhtmltopdf
 +
 http://wkhtmltopdf.org/ http://wkhtmltopdf.org/
 +
 (have the binary installed in the same folder as this script) (have the binary installed in the same folder as this script)
  

Site Tools