You might consider putting that together and adding it to the Free Software Add Ons ... I would think this would be most helpful to people ...![]()
You might consider putting that together and adding it to the Free Software Add Ons ... I would think this would be most helpful to people ...![]()
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.1]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
started putting it together. i am just a bit worried about potential problems that my hacks could cause for a zen cart install:
1. i had to include php as allowed file extension in /pub/.htaccess => would this be a security issue?
2. i use the standard 'download by redirect' procedure, but i slightly modified the way, the name of the temporary download folder (in /pub) is generated: zen cart generates the name of the temporary download-folder as a random number, however i modified it to a shorter random number extended by the information i want to pass (orders_id, price, etc.). my 'downloadable php' file can then read this information from its own directory name and pass it on to the pdf generator. this could lead to problems if there would be another zen cart function that relies on the default 'naming convention' of the temporary download folder...
also, am i allowed to include a download of dompdf (license GNU LGPL) in my contribution?
any opinion on these points?
thanks
georgfly
p.s. i am not a webdeveloper, rather a php newbie; i'm using zen cart 1.3.9h
BUMP!!
This sounds like a really good solution!
thanks. it works and i havent had any problems with it yet. however, i havent had time make it a nice, installable package for other users. anyway, the next interesting thing to do would be to print a unique barcode on the voucher, that identifies the voucher, and then create a simple page for the administrator to scan and verify that it hasnt been used before. should be easy...
i will write up a short tutorial and include the necessary software over the weekend.
i added a new contribution 'printable vouchers' to zen cart website. it will take some time (being reviewed) before it goes online. please READ readme FIRST! i didnt take time to make installation idiot proof, so you really want to check what changes my files make to your system. and of course BACKUP FIRST!!!
looks like it takes a while for being reviewed by the zencart folks. anyway, i put it up on my ftp server for download. and just to remind people: my solution DOES NOT us zencarts online gift certificate that you can email to your friends. all it does is to let customer purchase a printable pdf that contains order id and the voucher's value in dollars or euros. you should be able to easily modify my code in order to print any other dynamic info on your voucher.
here's the link:
https://www.zen-cart.com/index.php?m...oducts_id=1977
Last edited by swguy; 15 Aug 2011 at 01:09 AM.
Hi Georgfly
I like your idea of a downloadable voucher - i have installed this add on as per the read me file - but can't get it to work. If i have a regular zip file as the download it works fine if i use the gutsc431nForw.php as the download file i get the following error:-
What am i doing wrong - obviously it is permissions but i can't figure which folder403 Permission Denied
You do not have permission for this request /pub/.jwzymzqhnx_9_9_1_10/gutsc431nForw.php![]()
Hi
sorry that you're having problems getting it to work.
anyway, start out checking if
1. your dompdf installation works and can be called from a php script via a url (just write a small test-php)
gutsc431nForw.php should show you how to do this in principle
2. check out if you can call a test-php file inside
/pub
/download/gutsc431n/
from a browser
also, check basic read/write settings that zen cart requires for these two directories...
good luck
Bookmarks