- Posts: 19
- Thank you received: 0
File upload for customers
- webandsite
-
Topic Author
- Offline
For a shop for my client there's the wish to let his customers upload files (printing of images). I work with the business edition because this has the option. I've added a custom field but I can't seem to find out how to add this option to an article. Please advise.
Thanks,
Dimitri
Please Log in or Create an account to join the conversation.
You have to create an "item custom field" with the type "file".
At this moment, in the product page, your clients would be able to upload a file because adding the product to the cart.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
- webandsite
-
Topic Author
- Offline
- Posts: 19
- Thank you received: 0
Custom field was already created. Could you send me some screenshots of how its done? Within a product it still isn't possible to upload an image/file.
Where within the product do you activate this option?
Kind regards,
Dimitri
Please Log in or Create an account to join the conversation.
Did you create an "item custom field" or a "product custom field" ?
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
- webandsite
-
Topic Author
- Offline
- Posts: 19
- Thank you received: 0
Both, but no result. It shows on the site as a select list but not an upload option. Isn't it an option to write a small manual for this operation with screen shots because more users have this question?
btw good quick service!
Please Log in or Create an account to join the conversation.
The "problem" is that, a "file item custom field" is working. We have several websites which use it every days.
First, create a item custom field, with the type "file", like in this screen shot:
And after that, you would have the upload section in your product page, like in this screen shot:
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
- webandsite
-
Topic Author
- Offline
- Posts: 19
- Thank you received: 0
that works, but needs some customizing...
Problem was the dutch translations. In the dropdown it shows two article fields (?)
can you tell me after the upload how the thumbimage is visible for the customer? It says image in the checkout, but shows nothing...
kind regards,
Dimitri
Please Log in or Create an account to join the conversation.
The file would be displayed as attachment in the checkout.
HikaShop would not check the attached file format and would not display it. But it is possible, thanks to view modifications to do it.
The default display would print a link which would point to the attached file.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
- webandsite
-
Topic Author
- Offline
- Posts: 19
- Thank you received: 0
Thanks!
Dimitri
Please Log in or Create an account to join the conversation.
After a little check, the custom field "image" should be more appropriated
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
- webandsite
-
Topic Author
- Offline
- Posts: 19
- Thank you received: 0
Please reply with view name and the code!
Thanks a lot,
Dimitri
Please Log in or Create an account to join the conversation.
- webandsite
-
Topic Author
- Offline
- Posts: 19
- Thank you received: 0
Maybe it's good to show you what I need with an example:
* Customers should be able to upload their own file
* After the upload the file and the options should be added to the cart
* The cart should show like this then (per item)
Attaching an image is not possible. Where can I send it?
kind regards,
Dimitri
Please Log in or Create an account to join the conversation.
You can simply force the size of the image with CSS on your website:
.hikashop_custom_image_link{ width: 100px !important; }
You can potentially add that CSS in the frontend CSS file of HikaShop via the Display tab of the configuration.
Please Log in or Create an account to join the conversation.
- webandsite
-
Topic Author
- Offline
- Posts: 19
- Thank you received: 0
That doesn't work. Image will be shown in full size instead of just a nice thumbnail.
Any other options?
Kind regards
Please Log in or Create an account to join the conversation.
Maybe we're not talking about the same thing ?
You can attach images in the forum. Please make sure that they are either jpg or png.
Please provide a link to the product page so that we can see that.
Please Log in or Create an account to join the conversation.
- webandsite
-
Topic Author
- Offline
- Posts: 19
- Thank you received: 0
Where can i edit the dimensions?
Please Log in or Create an account to join the conversation.
The dimensions can be changed with the CSS I already gave.
Please provide a link to the product page so that we can see that.
Please Log in or Create an account to join the conversation.
if(empty($class)){
$class='hikashop_custom_image_link';
}
before the line:
return '<img class="'.$class.'" src="'.hikashop_completeLink('order&task=download&field_table='.$field->field_table.'&field_namekey='.urlencode(base64_encode($field->field_namekey)).'&name='.urlencode(base64_encode($value))).'" alt="'.htmlspecialchars($value, ENT_COMPAT, 'UTF-8').'" />';
in the file administrator/components/com_hikashop/classes/field.php and that should help.
Please Log in or Create an account to join the conversation.
- webandsite
-
Topic Author
- Offline
- Posts: 19
- Thank you received: 0
Please Log in or Create an account to join the conversation.
- webandsite
-
Topic Author
- Offline
- Posts: 19
- Thank you received: 0
Please Log in or Create an account to join the conversation.