Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    May 2008
    Location
    Lowestoft, Suffolk UK
    Posts
    21
    Plugin Contributions
    0

    Default uploadfile script image sent with an email

    Hello ALL
    I’m not expert at this but I have found a way for my customer to upload a image file to me after they have paid.
    I copied and pasted the script from index.htm to my catalog/includes/languages/english/html_includes/ define_checkout_success.php
    Saved the files sendpic and loader.gif to both the root dir and the catalog/includes/languages/english/html_includes

    I tryed to insert the code but i couldn't get the php to show. you can downlond the scripts at
    php-scripts-free.com/index.php?action=freescripts&script=AndyFileUploader

    Installation-Guide:

    It's very easy to install AndyFileUploader. Please keep to the steps as descriped:

    1. Please open the file sendpic.php with a text-editor and change '[email protected]'
    at top of the file to your e-mail-adress.

    The variable $folder is filled in with 'files'. If you wish to save the pics in another folder,
    you'll have to change 'files' with the name of this folder. Please use a subfolder of the folder
    where you run AndyFileUploader.

    Nothing more needs to be changed in this file.

    2. The index.htm file contains the basic html- and javascript-code. When a user submits the form,
    this code calls the file sendpic.php, so both files need to be in the same folder. But
    you can rename the file index.htm or just copy the code into another html-file without any problems.

    3. Please open your preferred ftp-programm and upload both files onto your server. Please
    use ASCII-mode for the files "index.htm" (or another html-file where you have copied the code of AndyFileUploader into) and
    the file sendpic.php. Please upload the file 'loader.gif' into the same folder, using Binary-Mode (you can, of course, later
    choose another gif-file of your choise, but please name it the same (loader.gif)..

    4. Please create a subfolder 'files'. Please change the permissions for this
    subfolder to 0777 (owner-others-world: read-write-execute)

    That was it. Your visitors should be able to send you files (jpg- and gif-files) now (size limited to about 200 KB):

    The files you visitors upload will be saved in the folder and sent to you via e-mail. Additionally, a thumb
    of the pics will be saved as well in the folder and shown to your visitor after uploading the file.

  2. #2
    Join Date
    May 2004
    Posts
    766
    Plugin Contributions
    0

    Default Re: uploadfile script image sent with an email

    thank you - I came looking for just this type of mod! I have a client with an embroidery site that needs to have clients upload images of their logos, etc.

    So thank you for spreading the information.

    betty

  3. #3
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: uploadfile script image sent with an email

    The post above refers SPECIFICALLY to having customers upload things AFTER purchase.

    If you want your customers to upload images AS PART OF their purchase, just set up a FILE attribute to your product, and they can do it while they add the product to their cart. The functionality is already built in.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    May 2004
    Posts
    766
    Plugin Contributions
    0

    Default Re: uploadfile script image sent with an email

    Quote Originally Posted by DrByte View Post
    The post above refers SPECIFICALLY to having customers upload things AFTER purchase.

    If you want your customers to upload images AS PART OF their purchase, just set up a FILE attribute to your product, and they can do it while they add the product to their cart. The functionality is already built in.
    I can set it up so that customers can upload a file as part of their purchase? That would be the ideal solution, especially if the files weren't limited to just images in case they needed to upload a .zip file with more than one image in it.
    Could you please explain a bit further please?

    thank you,

    Betty

  5. #5
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: uploadfile script image sent with an email

    FAQ on setting up attributes: https://www.zen-cart.com/tutorials/index.php?article=57

    A FILE attribute is an upload, and will appear with a "Browse ..." button on the same page where the customer does their add-to-cart.

    After the customer has placed their order, the files themselves will be numbered according to the order number, and stored in the /images/uploads folder. The store owner will see the list of uploaded files in the admin order details.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    May 2008
    Location
    Lowestoft, Suffolk UK
    Posts
    21
    Plugin Contributions
    0

    Default Re: uploadfile script image sent with an email

    you but with my one the image is sent you your inbox (Microsoft outlook in my case) with there email address and after they have paid so no spam images. I like the idea of being able to send zip file as mine only allows 1 image to be sent.

 

 

Similar Threads

  1. pdf.invoice file sent with the order confirmation email
    By Advisers Australia in forum Customization from the Admin
    Replies: 0
    Last Post: 3 Feb 2014, 06:53 AM
  2. Problem with Download email sent to cllient
    By TomAmatangelo in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 10 Oct 2009, 05:59 AM
  3. Replies: 3
    Last Post: 13 Nov 2007, 08:07 AM
  4. [Tutorial] Display image with LightBox script
    By FalseKnight in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 14 Sep 2007, 03:24 PM
  5. EMail Admin the same Email message that is sent to customer
    By dubya01 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 21 Aug 2007, 03:47 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