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.
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.
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!
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
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!
Thanks Ajeh