Results 1 to 10 of 53

Hybrid View

  1. #1
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default 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 View Post
    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!
    Last edited by DivaVocals; 15 Jan 2011 at 10:22 PM.
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  2. #2
    Join Date
    Apr 2009
    Posts
    54
    Plugin Contributions
    0

    Default Re: PDF Order Center

    Hi

    I've been using this for ages and use it back end to run off all invoices and picknotes every morning.

    However since changing my zen cart to utf-8 it really struggles with the £ sign.

    Eg

    1 x Product Name DSRED 20.00 £19.99 £23.99 £19.99 £23.99

    Ive stared at the code for hours to try and see if i can see where to change it but cant.

    Can anyone give me any pointers?

    Regards

    Gareth

  3. #3
    Join Date
    Dec 2006
    Posts
    199
    Plugin Contributions
    0

    Default Re: PDF Order Center

    I enjoy PDFOC for quick and easy packing slips. Mine works fine with Super Orders installed, by the way. However, I've always had a problem with apostrophes in product names coming up as symbol code. Can't remember right now but it's something like "&39a;"
    Has anyone had this problem? Is there a quick fix?

  4. #4
    Join Date
    Jun 2006
    Location
    Sea Lake, Australia
    Posts
    81
    Plugin Contributions
    0

    Default Re: PDF Order Center

    Just a note to say the to get rid of the 403 error, I had to change the admin/.htaccess and the admin/includes/.htaccess files.

  5. #5
    Join Date
    Aug 2011
    Posts
    11
    Plugin Contributions
    0

    Default Re: PDF Order Center

    Quote Originally Posted by brushwoodnursery View Post
    I enjoy PDFOC for quick and easy packing slips. Mine works fine with Super Orders installed, by the way. However, I've always had a problem with apostrophes in product names coming up as symbol code. Can't remember right now but it's something like "&39a;"
    Has anyone had this problem? Is there a quick fix?
    Same problem here. Also with all special german characters. A fix or solution will be very appreciated. Update for Zen1.5 also

    thanks

  6. #6
    Join Date
    Dec 2006
    Posts
    199
    Plugin Contributions
    0

    Default Re: PDF Order Center

    Quote Originally Posted by 2marco View Post
    Same problem here. Also with all special german characters. A fix or solution will be very appreciated. Update for Zen1.5 also

    thanks
    2marco, we had this fixed. I looked around in the files as best I could and found the following.
    in admin/includes/modules/pdfoc/templates/Packing-Slip.php

    I compared an old backup to the more recent file and found the following change. Not sure if this is it but I hope it helps. It's the only change I found in the module.

    old:
    Code:
     $prod_str = $order->products[$i]['qty'] . " x " . $order->products[$i]['name'];
    new:
    Code:
     $prod_str = $order->products[$i]['qty'] . " x " . html_entity_decode($order->products[$i]['name'], ENT_QUOTES);

  7. #7
    Join Date
    Aug 2011
    Posts
    11
    Plugin Contributions
    0

    Default Re: PDF Order Center

    thank you very much, I did made the changes to both the Packing-Slip.php as also for the invoice.php. But that is only for the product names offcourse. Maybe I had to clarify a little bit more, but the problem is also in the shipping and invoice adresses. I assume the html_entity_decode , ENT_QUOTES); should be implemented in this section also, but if someone could give me a hint, or the exact codes would be very nice.

  8. #8
    Join Date
    Aug 2011
    Posts
    11
    Plugin Contributions
    0

    Default Re: PDF Order Center

    Then also another question did came up: I have implemented the VAT-Mod BETA UNOFFICIAL for Zen Cart v. 1.3.9h, (works fine) But i need to show the VAT number of the customer on the invoice. I have tried a little bit, (as far as I could) and added the following line:

    Code:
     $pos = $pdf->ezText("<b>" . ENTRY_TVA_INTRACOM . "</b> " . $order->info['billing_tva_intracom'],PDFOC_GENERAL_FONT_SIZE);
    The ENTRY_TVA_INTRACOM is shown correctly in bold text, but the "billing_tva_intracom" which is available and filled in the database isn't. I assume it is a small mistake, and hopefully someone is willing to guid me in the right direction.

 

 

Similar Threads

  1. PDF Order Center help.
    By drgr33n in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 6 Oct 2010, 11:07 AM
  2. PDF Order Center
    By cshellca in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 22 Aug 2010, 06:45 PM
  3. pdf order center
    By tavikki in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 23 Nov 2008, 07:36 PM
  4. PDF Order Center
    By londoner1988 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 6 Mar 2008, 09:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg