Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2010
    Posts
    20
    Plugin Contributions
    0

    customer issue Image upload by customers

    I would like to restrict upload image files to the site to bonafide customers.
    Is there a way that this can be achieved e.g. cannot upload image/file until registered as customer.
    Would appreciate some assistance.

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Image upload by customers

    Well ... the problem is that if you just block the upload, it did not block the Add to Cart ... so you would have Guests with Products in the shopping cart without their uploads ...

    You could try to build in a special test on the products that if they include upload attributes ... then the Product cannot be added until the Guest logs in ...

    This would be a lot safer and ensure that a Product added to the cart has all the peices and parts to it ...

    The Add to Cart/Buy Now are controlled via the function zen_get_buy_now_button in the functions_general.php ...

    You can look at how the Customer Authorizations are done and do something similar by adding a test to see if the Product contains upload attributes ... and then send back a Login link instead of the button ...
    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!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Aug 2010
    Posts
    20
    Plugin Contributions
    0

    Default Re: Image upload by customers

    Hi
    Thanks for your info but I am a little confused.

    To explain further. I want to allow customers to upload either pdf files or image files that we can use to design their logos for t shirts, workwear etc.

    Obviously for security I do not want anyone to upload images/files that might have viruses attached etc so that is the reason why I wish to restrict to registered customers only.

    Many thanks

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Image upload by customers

    Correct ... but in addition to preventing the upload of files by guests, you need to prevent the add to cart on these products with uploads as well because if they cannot do the upload until logged in, they should not be able to add to cart these products until logged in ... otherwise they are now missing a vital component on the Product, that being the upload ...

    If you want your whole shop set for customers must be logged in to add to cart, then that feature is built in ...

    However, if you only want customers to not be able to use the upload/add to cart on specific products, then you need to customize the code for this ...
    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!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Aug 2010
    Posts
    20
    Plugin Contributions
    0

    Default Re: Image upload by customers

    Thanks Ajeh

 

 

Similar Threads

  1. allow customers to upload an image?
    By davi2359 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 7 Mar 2011, 10:30 AM
  2. Need the ability to have customers upload an image
    By mihaley in forum General Questions
    Replies: 2
    Last Post: 4 Mar 2011, 10:31 PM
  3. Replies: 2
    Last Post: 30 May 2010, 06:54 PM
  4. Upload Image or Upload File form
    By matthelm in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 30 Dec 2006, 01:13 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