Oh, yeah, I thought about that too, but if the order is not completed, you could have a script run via cron or similar that cleans out all files that are not attached to an order. This script/function could sit there and just wait for any trigger, eg. if order is set to cancelled - trigger the function.I'm not sure I've ever seen a cart or store that lets you upload *anything* to their server before you become a customer.
http://www.alreadymade.com
Follow me on twitter.com/alreadymade
Still working on it.
- I've got half the admin code done so you can add the upload options per product from the options tab.
- Upload options track to the cart just like the text options all the way to the invoice.
- Admin todo - configurations, allowed filetypes etc.
- Still need to add the ajax uploading part now.
- It should also work without javascript hopefully (but it's not a deal breaker).
- I've got half the admin code done so you can add the upload options per product from the options tab.
- Upload options track to the cart just like the text options all the way to the invoice.
- Admin todo - configurations, allowed filetypes etc.
- Still need to add the ajax uploading part now.
- It should also work without javascript hopefully (but it's not a deal breaker).
http://www.alreadymade.com
Follow me on twitter.com/alreadymade
Uploading and posting to the cart done.
Language file done.
Todo
- Admin configuration page to control filetypes, require login to upload, and any other settings.
- Link to the file for download on the order page.
- Non javascript upload using cart page instead of ajax upload (1/2 done at the moment).
Maybe will be released today in time for halloween
Language file done.
Todo
- Admin configuration page to control filetypes, require login to upload, and any other settings.
- Link to the file for download on the order page.
- Non javascript upload using cart page instead of ajax upload (1/2 done at the moment).
Maybe will be released today in time for halloween
http://www.alreadymade.com
Follow me on twitter.com/alreadymade
You are the man....readyman wrote:Uploading and posting to the cart done.
Language file done.
Todo
- Admin configuration page to control filetypes, require login to upload, and any other settings.
- Link to the file for download on the order page.
- Non javascript upload using cart page instead of ajax upload (1/2 done at the moment).
Maybe will be released today in time for halloween
File Upload options added...
You can get the updated Text and file upload options add-on here.
http://bit.ly/4ufLxj
You can get the updated Text and file upload options add-on here.
http://bit.ly/4ufLxj
http://www.alreadymade.com
Follow me on twitter.com/alreadymade
Good job.
I have a few questions. Everything seems to be working, I just need to customize some files again.
1> How do you get to view the uploaded image? can a link to it be added to the order summary in the admin order page?
2> Can you add other file types? Such as PNG?
3> Anyway to check that an image is uploaded before allowing them to add to cart? In my business if they do not upload an image we can not sell the product.
4> In the product view template, can the "Please enter the following details:" text and box be removed unless the option is in use? I know the code says isset? but doesnt seem to work. I tried with your tpl and my modified one and its the same.
Bug?
1> I noticed after all is said and done (adding the mod that is...) that none of my items that once had standard options no longer had those? does this mod override that? do we have to re-add options?
I have a few questions. Everything seems to be working, I just need to customize some files again.
1> How do you get to view the uploaded image? can a link to it be added to the order summary in the admin order page?
2> Can you add other file types? Such as PNG?
Code: Select all
add under line #138 "png" => "image/png",
4> In the product view template, can the "Please enter the following details:" text and box be removed unless the option is in use? I know the code says isset? but doesnt seem to work. I tried with your tpl and my modified one and its the same.
Bug?
1> I noticed after all is said and done (adding the mod that is...) that none of my items that once had standard options no longer had those? does this mod override that? do we have to re-add options?
Couldn't edit my last post for some reason? But i solved this one as well. You added a mode function to sql and as such standard options no longer show up unless you go into my sql and add select as the mode for that items option.zone97 wrote:Good job.
Bug?
1> I noticed after all is said and done (adding the mod that is...) that none of my items that once had standard options no longer had those? does this mod override that? do we have to re-add options?
"<b>Please enter the following details:</b><br />" section, can just be deleted from the template altogether. It's only showing if the text options array exists (& it always does, even if it's blank).
Ummm... Try this instead above the existing <?php if (isset($txtoptions)) { ?>
This will only display if there are either textoptions or uploadoptions set.
Ummm... Try this instead above the existing <?php if (isset($txtoptions)) { ?>
Code: Select all
<?php if (!empty($txtoptions) || !empty($uploadoptions)) { ?>
<b>Please enter the following details:</b><br />
<?php } ?>
<?php if (isset($txtoptions)) { ?>
http://www.alreadymade.com
Follow me on twitter.com/alreadymade
IMPORTANT for NEW INSTALLATIONS - Yes, if your previous options are not showing, it's because this mod is looking for the mode in the database tables. I've made the 'normal' options as 'select' in the mode column.
So add 'select' (without the quotes) to your mode column for all your existing options. It would be wise to add these before adding any text or upload options.
## Upgrading from textoptions
If you have the previous text options module installed (without upload) you don't have to do anything to your database. Just upload the new files.
So add 'select' (without the quotes) to your mode column for all your existing options. It would be wise to add these before adding any text or upload options.
## Upgrading from textoptions
If you have the previous text options module installed (without upload) you don't have to do anything to your database. Just upload the new files.
http://www.alreadymade.com
Follow me on twitter.com/alreadymade
I tested it on IE7... I got one support query that it was crashing the browser that was IE6, but it's the same uploader that was used in opencart, soooo..... I'll look into it.
http://www.alreadymade.com
Follow me on twitter.com/alreadymade
There's issues in the product.tpl file at the moment. If you wait a day or two, I'll upload a new zip file.
http://www.alreadymade.com
Follow me on twitter.com/alreadymade
Do you mean, logged in or not logged in can upload? It's validating the filetype, so I don't think you can upload any type of file. What's your server/browser setup there?marked or unmarked user can upload any type of file.
http://www.alreadymade.com
Follow me on twitter.com/alreadymade
sorry for bad English.
I'm trying to say : if user is logged or not he can upload. I know the file would not be uploaded if he is not logged but message saying "your file was send" "name of file Uploaded" come always.
I think the right would be:
if user not logged = message comes saying please log-in for upload.
if user send a file that not supported = message comes saying this type of file is not supported.
Thanks a lot
I'm trying to say : if user is logged or not he can upload. I know the file would not be uploaded if he is not logged but message saying "your file was send" "name of file Uploaded" come always.
I think the right would be:
if user not logged = message comes saying please log-in for upload.
if user send a file that not supported = message comes saying this type of file is not supported.
Thanks a lot
Who is online
Users browsing this forum: No registered users and 201 guests