Skip to main content

Custom Field - Product Image from link

More
12 years 8 months ago #141105 by grav
-- HikaShop version -- : 2.1.0
-- Joomla version -- : 2.5.11
-- PHP version -- : 5.3
-- Browser(s) name and version -- : Firefox 26.0

Hello,
I'm looking for a solution to add a custom field in product display.
Curently I'm using "File" field to give user oportunity to upload a photo from his PC.

I would like to add another option. Field where user can paste link image on any website.
For example: i.imgur.com/j8rCw0r.png and then that link will be uploaded like in "File" custom field as custom image.
Something like this is available when I'm adding File on a product page.
Looks like this:

Will be happy if anyone tell me what to do.
Reggards,
grawler

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

More
12 years 8 months ago #141131 by Jerome
Hi,

Since HikaShop 2.2.2, it is possible to implement new custom fields using plugins.
Thanks to it, you can create your own field, display what you want to display and store has you want the data in the database column.
So it is possible to you to create the new kind of custom field, using a plugin. This custom field will display a text field to let the customer paste his image url at the plugin will download and store it in the HikaShop secure folder.

It requires some PHP and development skills (and HikaShop 2.2.2 or newer) but it offers a real flexibility without having to "hack" the HikaShop core. So you can update HikaShop without loosing your new kind custom field.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

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

Time to create page: 0.151 seconds
Powered by Kunena Forum