Using PDF Order Center with Zen Cart 1.3.9
Wanted to clarify this post..
Zen Cart v1.3.9 has some additional security measures which includes a number of .htaccess files to help lock down your store a little better. IF you are running Zen Cart 1.3.9, you MUST modify the .htaccess file or you will get errors when you attempt to view your PDF files using this mod.
The location of the .htaccess file to be modified is located here: admin/includes. Because these directives are case sensitive, here is the updated correction needed:
Replace the entire contents of the admin/includes/.htaccess file with this:
Code:
#
# @copyright Copyright 2003-2010 Zen Cart Development Team
# @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
# @version $Id: .htaccess 16111 2010-04-29 22:39:02Z drbyte $
#
# This is used with Apache WebServers
#
# The following blocks direct HTTP requests to all filetypes in this directory recursively, except certain approved exceptions
# It also prevents the ability of any scripts to run. No type of script, be it PHP, PERL or whatever, can normally be executed if ExecCGI is disabled.
# Will also prevent people from seeing what is in the dir. and any sub-directories
#
# For this to work, you must include either 'All' or at least: 'Limit' and 'Indexes' parameters to the AllowOverride configuration in your apache/conf/httpd.conf file.
# Additionally, if you want the added protection offered by the OPTIONS directive below, you'll need to add 'Options' to the AllowOverride list, if 'All' is not specified.
# Example:
#<Directory "/usr/local/apache/htdocs">
# AllowOverride Limit Options Indexes
#</Directory>
###############################
# deny *everything*
<FilesMatch ".*">
Order Allow,Deny
Deny from all
</FilesMatch>
# but now allow just *certain* necessary files:
<FilesMatch ".*\.(js|css|jpg|JPG|gif|GIF|png|PNG|pdf|PDF)$">
Order Allow,Deny
Allow from all
</FilesMatch>
IndexIgnore */*
Quote:
Originally Posted by
supersnow
So got it to work so I didn't get the 404 permission denied. The .htaccess file was updated to this (just in case someone else has this issue):
Code:
# deny *everything*
<FilesMatch ".*\..*">
Order Allow,Deny
Deny from all
</FilesMatch>
# but now allow just *certain* necessary files:
<FilesMatch "(^$|^favicon.ico$|.*\.(php|js|css|jpg|gif|png|pdf)$)">
Order Allow,Deny
Allow from all
</FilesMatch>
And it was working fine for about two days. Now I have new problem it has decided to stop printing the sold to address and the ship to address on my packing slips and invoices.
The labels still pull through the address but so some reason the packing slip and invoice don't.
This is driving me crazy I love the pdf order center I just want it to work. Please help!:cry: