Results 1 to 8 of 8
  1. #1
    Join Date
    Dec 2014
    Location
    uruguay
    Posts
    65
    Plugin Contributions
    0

    Default upload file excel

    I want to upload an Excel file and when i ll click in Catalog I download the file

    I do not know how to do it

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: upload file excel

    zip it and upload via FTP to your /downloads folder
    add it as a download to a product or create a standard html link to it in the product description
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Dec 2014
    Location
    uruguay
    Posts
    65
    Plugin Contributions
    0

    Default Re: upload file excel

    Quote Originally Posted by kobra View Post
    zip it and upload via FTP to your /downloads folder
    add it as a download to a product or create a standard html link to it in the product description
    thanks :
    upload via ftp understand, but as I do the rest for example Catalog by clicking the user automatically download it

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: upload file excel

    as I do the rest for example Catalog by clicking the user automatically download it
    A link to this rest
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: upload file excel

    Do you know how to construct basic HTML? This is what is being inferred. If you don't know how to construct a basic hyperlink then it would be a good idea to learn, as a knowledge of basic HTML can help solve many issues. W3Schools has some good tutorials.
    20 years a Zencart User

  6. #6
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,502
    Plugin Contributions
    88

    Default Re: upload file excel

    Quote Originally Posted by pixel1987 View Post
    thanks :
    upload via ftp understand, but as I do the rest for example Catalog by clicking the user automatically download it
    Where on your website will the customer/user click to download the Excel file? Is the file a product (that is, the customer must pay before they download) or does the file contain additional information that the customer might want?

  7. #7
    Join Date
    Dec 2014
    Location
    uruguay
    Posts
    65
    Plugin Contributions
    0

    Default Re: upload file excel

    the user should not pay anything is just an excel my website to download

  8. #8
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,502
    Plugin Contributions
    88

    Default Re: upload file excel

    You'll start out by storing (via FTP upload) your Excel files in your store's /media folder.

    To be able to successfully download those files, you'll need to edit the file /media/.htaccess to allow those file types to be accessed (see the changes in red):
    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 16954 2010-07-21 22:55:30Z 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 ".*\.(mp3|mp4|swf|avi|mpg|wma|rm|ra|ram|wmv|epub|xls|xlsx)$" >
      Order Allow,Deny
      Allow from all
      
      # tell all downloads to automatically be treated as "save as" instead of launching in an application directly
      # (just uncomment the next 2 lines by removing the '#'):
    #  ForceType application/octet-stream
    #  Header set Content-Disposition attachment
    </FilesMatch>
    
    IndexIgnore */*
    
    
    ## NOTE: If you want even greater security to prevent hackers from running scripts in this folder, uncomment the following line (if your hosting company will allow you to use OPTIONS):
    # OPTIONS -Indexes -ExecCGI
    Once that change has been made and the file is present in the /media folder, you'll add the following HTML code wherever you want the customer to download a file:
    Code:
    <a href="media/yourexcelfile.xls" target="_blank">Some Text Describing the File</a>

 

 

Similar Threads

  1. Excel File
    By bogle773 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 9 Dec 2009, 09:33 PM
  2. Are there any addons to upload product file in excel format
    By sunzhoujian in forum General Questions
    Replies: 4
    Last Post: 12 Apr 2009, 05:00 AM
  3. Have excel file with orders. Can I upload them into Zen?
    By thebeveragegourmet in forum Managing Customers and Orders
    Replies: 6
    Last Post: 15 Jan 2008, 02:28 AM
  4. Upload an Excel file to mySQL?
    By jenpen in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 13 Jan 2008, 03:43 AM
  5. Easy Populate won't work with Excel text file, only Text Edit file.
    By anduril3019 in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 21 Jan 2007, 04:42 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR