Rhapsody Posted July 6, 2011 Share Posted July 6, 2011 I would like to modify via an override the version 1.4.3 PDF.php code in the classes directory to customize the output with a 2nd page on the PDF output if a certain product is ordered. The customization would be as follows:1. If a product is ordered with product_id = 2 or product_id = 4 display the custom 2nd page on the PDF invoice2. The 2nd page on the PDF invoice will contain data included in the ps_customer table (including some custom fields I've added). These fields are firstname, lastname, spouse, and member plus a 4 digit formatted year that is part of the date the invoice is printed.3. The variables for shop_name and shop_logo would be used and displayed4. The output would be formatted so someone can use scissors to cut out a membership card to put in their pocket. Formatting is per the html below.Can anyone help me do this? > <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Message from {shop_name}</title> </head> <body> </pre> <table style="font-family:Verdana, sans-serif;font-size:11px;color:#374953;width:450px;"> {shop_name} Membership Card </table> <p> </p> <span style="font-size:10pt;"></span><center>PO Box 3236 Broadway Station Newport, Rhode Island 02840</center> <br><br><strong style="color:#0000FF;">{firstname} {lastname}</strong> - <strong> [removed] <!-- var year=new Date(); year=year.getYear(); if (year<1900) year+=1900; [removed](year); //--> [removed] Member # {member}</strong><br><br><strong style="color:#0000FF;">{spouse}</strong> <br><br><br><hr> <br><font face="Times New Roman" size="3"> </font><br><strong> Print, then cut out membership card between the horizontal lines.</strong><br><br> <br><br><br><a href="%7Bshop_url%7D" style="color:#0000FF;font-weight:bold;text-decoration:none;" rel="">{shop_name}</a> powered by <a href="http://www.prestashop.com/" style="text-decoration:none;color:#374953;" rel="external nofollow">PrestaShopâ„¢</a><br><br><br></body><br></html> Link to comment Share on other sites More sharing options...
bellini13 Posted July 7, 2011 Share Posted July 7, 2011 I have sent you a pm. Link to comment Share on other sites More sharing options...
Rhapsody Posted July 11, 2011 Author Share Posted July 11, 2011 Thanks to Bellini13 this has been solved. He provided the custom programming as requested quickly and at a reasonable price. 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