Hi I have products that users need to upload a file or small image to on the the product page and then order.
The only problem is when you upload an image and click ok you're back on the product page which doesn't show what you have uploaded or a filename etc so it can be confusing.
Is there a way that I can display the successfully uploaded image filenames next to the upload boxes on my product template page in the options section?
Thanks for any help, I think someone was trying this or similar here: http://forum.opencart.com/viewtopic.php?f=20&t=56460 - but they haven't replied to the thread in a while and I'm not sure they wanted the same end result.
Thanks again
The only problem is when you upload an image and click ok you're back on the product page which doesn't show what you have uploaded or a filename etc so it can be confusing.
Is there a way that I can display the successfully uploaded image filenames next to the upload boxes on my product template page in the options section?
Thanks for any help, I think someone was trying this or similar here: http://forum.opencart.com/viewtopic.php?f=20&t=56460 - but they haven't replied to the thread in a while and I'm not sure they wanted the same end result.
Thanks again
Website Design, hosting, seo and online marketing visit: http://www.yorkcreative.co.uk
by uksitebuilder » Tue Mar 20, 2012 3:40 pm
Well your first problem is getting the customer to upload when viewing the cart or during checkout as there is no default functionality to do this.
It will most likely require custom coding by a developer ( your best bet is to post on the commercial support forum or contact a partner from the partners page)
Hi thanks.
I'm already using the functionality of a file option for the upload and it uploads ok on the product page. I don't need to do this at checkout, just with the product options which seems to be working fine. I just need to show the filename next to the upload to confirm it...
thanks again if anyone can help with this.
I'm already using the functionality of a file option for the upload and it uploads ok on the product page. I don't need to do this at checkout, just with the product options which seems to be working fine. I just need to show the filename next to the upload to confirm it...
thanks again if anyone can help with this.
Website Design, hosting, seo and online marketing visit: http://www.yorkcreative.co.uk
Would be nice for some support here. He isnt the only one wanting a fix or a workaround for this.
Its such a shame as the product is brilliant, but have noticed there is a lot of support that goes unanswered...... this is CRUCIAL for users and developers alike to help each other out and make the product even better.
It even puts people off when they soon realise, support seems to be lacking.
However..... I will say, you're all doing a great job for a great product.... please if you have time, users need a bit of help now and then.
Thanks
Its such a shame as the product is brilliant, but have noticed there is a lot of support that goes unanswered...... this is CRUCIAL for users and developers alike to help each other out and make the product even better.
It even puts people off when they soon realise, support seems to be lacking.
However..... I will say, you're all doing a great job for a great product.... please if you have time, users need a bit of help now and then.
Thanks
Does it not already give you an alert (success message) telling you that it was succesful?
Code: Select all
if (json.success) {
alert(json.success);
Yes sorry, my fault.
But would be nice to see a thumbnail of the image file thats been uploaded just for a "good feel factor" and confirmation the customer is happy that they selected the correct file to upload.
Is this possible to do?
But would be nice to see a thumbnail of the image file thats been uploaded just for a "good feel factor" and confirmation the customer is happy that they selected the correct file to upload.
Is this possible to do?
Certainly. For 1.5.4.1, Open product.tpl and find this code:
Right beneath it add this:
Now find this line:
Below it add this:
And lastly find this:
Below it add this:
If you want something fancier then you have the code to go to town with it.
Code: Select all
<input type="hidden" name="option[<?php echo $option['product_option_id']; ?>]" value="" />
Code: Select all
<div id = "upload-message"></div>
Now find this line:
Code: Select all
alert(json['success']);
Code: Select all
$('#upload-message').html(file + ': was uploaded');
Code: Select all
onComplete: function(file, json) {
Code: Select all
$('#upload-message').html("");
works really well ... but if there are more than one file to upload it writes only the last loaded ... can you solve it?
I've already solved ....iomedesimo wrote:works really well ... but if there are more than one file to upload it writes only the last loaded ... can you solve it?
instead of
Code: Select all
<div id = "upload-message"></div>
Code: Select all
<div id = "<?php echo $option['product_option_id']; ?>"></div>
Code: Select all
$('#upload-message').html(file + ': was uploaded');
Code: Select all
$('#"<?php echo $option['product_option_id']; ?>').html(file + ': was uploaded');
Who is online
Users browsing this forum: No registered users and 164 guests