Custom Field - File Upload

  • Posts: 22
  • Thank you received: 1
7 years 11 months ago #258145

-- HikaShop version -- : 3.0.0
-- Joomla version -- : 3.6.5

Some of our products require a file upload.
Example is Tee Shirt which needs an image to be printed
This works well but ALL images from ALL customers go to the SAME folder on our server.
So 'myface.jpg' from one customer can be overwritten by another customer the next day !!
Can I add something like '%customer%' OR '%order%' to the upload secure folder path ???

ALSO I am using Custom Field Table=Order as this works well and I can see the uploaded file in Additional information from the Back End
BUT if I use the Table=Item to attach the UPLOAD option to the individual Product then , although this works and the file is uploaded I cannot see this uploaded file ANYWHERE in the backend view of the order.

Last edit: 7 years 11 months ago by richarddhill.

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
7 years 11 months ago #258171

Hi,

Indeed, all the files go to the same folder. HOWEVER, the myface.jpg from one customer won't be overwritten by a file with the same name uploaded by someone else. HikaShop will automatically modify the file name of the new file. Also, only the person who created the order linked to that file or an admin will be able to display it. So the system is already safe and there is no need to have different folders for different customers/orders.

If you can't see the uploaded file of an item custom field in the backend, it's probably that you turned off the backend display settings of the field. Edit it, make sure that the display settings are turned on and save the settings.
If you still don't see anything for an order with such custom field please provide:
- a screenshot of the settings of the custom field
- a screenshot of the details of that order.

Please Log in or Create an account to join the conversation.

  • Posts: 22
  • Thank you received: 1
7 years 11 months ago #258192

Nicolas
Thank you
Yes you are right, of course. A duplicate filename gets renamed (only if the file content is different though ??) so that's good
Also, we reinstalled Hikashop 2.6.4 for other reasons and the Item Custom Field now works - we see the uploaded file in the backend order view AND in the customer frontend order history view.
I'm sure this was not working in 3.0.0.

Thanks again

Please Log in or Create an account to join the conversation.

  • Posts: 22
  • Thank you received: 1
7 years 11 months ago #258214

Hi

Another question on the same topic.

Where artwork upload is concerned, the best time to process it is after the order has been completed and ordering accepted (so after the "end" process).

I can see that it is possible in the "back end" to do this, but is there anyway to configure the cart process to complete the payment transaction and then go to the "upload page" i.e. after the order has been processed. (see first image)

In the same way, is it possible to add the upload custom field to the customer's order details (see second image)

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
7 years 11 months ago #258200

Hi,

1. Yes, if it's the exact same file, there is no need to rename it. HikaShop will directly use the file since it also checks who can access it and that once a customer uploaded it, he can't modify the file.

2. Ah, I hadn't understood that the problem was with the 3.0. Indeed I was able to reproduce the problem with it and it's now fixed. You can download the install package of the 3.0 again on our website and install it on yours to get the patch.

3. There is no option to have custom fields after the checkout or on the order details page.

Last edit: 7 years 11 months ago by nicolas.

Please Log in or Create an account to join the conversation.

Time to create page: 0.061 seconds
Powered by Kunena Forum