Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Customization from the Admin / Sending pdf to customers, and also storing the pdf on the "My Account" page

Sending pdf to customers, and also storing the pdf on the "My Account" page

8 Sep 2015, 8:46 PM
#1
frodemikal avatar

frodemikal

New Zenner

Join Date:
Jul 2009
Location:
Nesodden, Norway
Posts:
6
Plugin Contributions:
0

Post #1 by frodemikal

Hi there!

I've searched for some kind of plugin that will allow me to attach a pdf-file with "return-form-and-information" as required by law - at least here in Norway - and send to the customer by email from the zencart admin. I also want this PDF to be available to the customer on their "Account / Order History" page...

What I am thinking is that when we update the status of an order to, for example "Delivered", we want to send this status by email to the customer and at the same time be able to click "attach file" and attach the pdf and send to the customer.

And since the law says that if no such form is provided - or made available - the right to return the product is extended to up to a year, we would like to make this pdf available with the order on the customers order history page, so that they can download it there if they for some bizarre reason "didn't get the email with the form"...

So is there a "one-click-solution" to this? The closest I've found so far is the old "rl_invoice3" https://www.zen-cart.com/downloads.php?do=file&id=1061 but since it is made for zc 138, I am a little reluctant to install it...

Also - I am a designer of sorts, not a programmer ;) But I do understand directions like "put this piece of code in that file"

Anyways - I hope I made myself understood (pardon my norwenglish ;)) and all help and hints are most appreciated!

Have a nice evening! :D

8 Sep 2015, 11:35 PM
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Post #2 by mc12345678

You definitely don't want to actually store the pdf itself in most cases when the file can be created/recreated with exsting data from the database. Though regardless the process behind it is basically the issue.

It's doable, mostly need to know what data is to be captured and basically "when" so that either the appropriate log is made, or perhaps the correct filter is applied on the customer's side. Seems almost as if one must be able to reproduce all online actions associated with a customer...

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

9 Sep 2015, 12:32 PM
#3
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,156
Plugin Contributions:
56

Post #3 by lat9

You didn't indicate what contents the PDF file carries (i.e. *fixed *content for all customers or *customized *on a per-order basis), but your mention of the rl_invoice3 plugin makes me guess that it's the customized version.

I'd looked at rl_invoice3 earlier this year, thought it was overly-complex and then looked at the PDF processing that's built into Super Orders (based on the current GitHub version: https://github.com/DivaVocals/zen_SuperOrders). With some modifications, that did the trick to fulfill one of my clients' requests.

The order-specific PDF-generation in that plugin is present in the module /YOUR_ADMIN/includes/functions/extra_functions/lcsd_merged_packing_slips.php.

9 Sep 2015, 9:15 PM
#4
frodemikal avatar

frodemikal

New Zenner

Join Date:
Jul 2009
Location:
Nesodden, Norway
Posts:
6
Plugin Contributions:
0

Post #4 by frodemikal

Hmmm.. thank you so much for your replies :) I've done some thinking - wow - and I think I will skip the "auto-generate pdf" part of this... The customer must fill in some information manually anyways, so I might just as well make a "default" pdf, and make that one available to all customers... I don't want to spend too much on this as I don't think the gain would be big enough for the customers to justify the work needed to get it working.. But I am absolutely not sure either... So I guess I will think a little - more - about this.. and I will most likely come back on this...

Anyways, thanks for you replies - and it has been of great help.. sometimes it helps just to write things out loud ;)