[Skip to main content](#vessel-content)

#   How to get path for image/file from custom field?

##

- **[veeco](/forum/user/18501-veeco "View veeco's Profile")**
- [![veeco's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/18501-veeco "View veeco's Profile") Topic Author
- [ Offline](/forum/user/18501-veeco)

Less More

- Posts: 175
- Thank you received: 0
-
-

11 years 5 months ago -  11 years 5 months ago [\#204332](#204332) by [veeco](/forum/user/18501-veeco "View veeco's Profile")  *[How to get path for image/file from custom field?](/forum/26-product-category-display/877432-how-to-get-path-for-image-file-from-custom-field#204332 "-- url of the page with the problem -- : - -- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.36  Hi  i tried to add a custom field containing image/file for my category &amp; products  however when i want to know the path of image stored, it seems it's generated  i also tried it through template override  but it only containing the filename of the image  link in the front end  how to generate the link image / where the image is stored ?")* was created by *[veeco](/forum/user/18501-veeco "View veeco's Profile")*

-- url of the page with the problem -- : -
-- HikaShop version -- : 2.3.3
-- Joomla version -- : 3.36

Hi

i tried to add a custom field containing image/file for my category &amp; products
[ ![&#91;img](http://i.imgur.com/GOvjEcC.jpg) ](http://i.imgur.com/GOvjEcC.jpg "&#91;img")

however when i want to know the path of image stored, it seems it's generated
[ ![&#91;img](http://i.imgur.com/TeHX7Dr.jpg) ](http://i.imgur.com/TeHX7Dr.jpg "&#91;img")

i also tried it through template override
[ ![&#91;img](http://i.imgur.com/Xbd4Laf.jpg) ](http://i.imgur.com/Xbd4Laf.jpg "&#91;img")

but it only containing the filename of the image
[ ![&#91;img](http://i.imgur.com/Yu6vYyU.jpg) ](http://i.imgur.com/Yu6vYyU.jpg "&#91;img")

[ ![&#91;img](http://i.imgur.com/P9jFjXq.jpg) ](http://i.imgur.com/P9jFjXq.jpg "&#91;img")

link in the front end

how to generate the link image / where the image is stored ?

Last edit: 11 years 5 months ago by [veeco](/forum/user/18501-veeco "View veeco's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Nzc0MzItaG93LXRvLWdldC1wYXRoLWZvci1pbWFnZS1maWxlLWZyb20tY3VzdG9tLWZpZWxkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

11 years 5 months ago [\#204401](#204401) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[How to get path for image/file from custom field?](/forum/26-product-category-display/877432-how-to-get-path-for-image-file-from-custom-field#204401 "-- url of the page with the problem -- : - -- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.36  Hi  i tried to add a custom field containing image/file for my category &amp; products  however when i want to know the path of image stored, it seems it's generated  i also tried it through template override  but it only containing the filename of the image  link in the front end  how to generate the link image / where the image is stored ?")*

Hi,

Images from custom fields are generally not accessible directly ; they are stored in the "safe" folder and we use a PHP script to let them available (if you have the right access to).
So even if you can generate the right url ; the file won't be accessible (because the "safe" folder is not restricted). You need to display the field using the custom field system (with the field class and the "show" function).

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Nzc0MzItaG93LXRvLWdldC1wYXRoLWZvci1pbWFnZS1maWxlLWZyb20tY3VzdG9tLWZpZWxkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[veeco](/forum/user/18501-veeco "View veeco's Profile")**
- [![veeco's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/18501-veeco "View veeco's Profile") Topic Author
- [ Offline](/forum/user/18501-veeco)

Less More

- Posts: 175
- Thank you received: 0
-
-

11 years 5 months ago -  11 years 5 months ago [\#204435](#204435) by [veeco](/forum/user/18501-veeco "View veeco's Profile")  Replied by *[veeco](/forum/user/18501-veeco "View veeco's Profile")* on topic *[How to get path for image/file from custom field?](/forum/26-product-category-display/877432-how-to-get-path-for-image-file-from-custom-field#204435 "-- url of the page with the problem -- : - -- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.36  Hi  i tried to add a custom field containing image/file for my category &amp; products  however when i want to know the path of image stored, it seems it's generated  i also tried it through template override  but it only containing the filename of the image  link in the front end  how to generate the link image / where the image is stored ?")*

Hi

i need to use them in front end using the template override [as shown], is there anyway i can get the file then?

i need a field to upload file in back end and then use the picture in front end

any suggestion how to do it?

Last edit: 11 years 5 months ago by [veeco](/forum/user/18501-veeco "View veeco's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Nzc0MzItaG93LXRvLWdldC1wYXRoLWZvci1pbWFnZS1maWxlLWZyb20tY3VzdG9tLWZpZWxkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

11 years 5 months ago -  11 years 5 months ago [\#204480](#204480) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to get path for image/file from custom field?](/forum/26-product-category-display/877432-how-to-get-path-for-image-file-from-custom-field#204480 "-- url of the page with the problem -- : - -- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.36  Hi  i tried to add a custom field containing image/file for my category &amp; products  however when i want to know the path of image stored, it seems it's generated  i also tried it through template override  but it only containing the filename of the image  link in the front end  how to generate the link image / where the image is stored ?")*

Hi,

As jerome said, you need to display the field using the custom field system (with the field class and the "show" function): Code:

&lt;?php $fieldsClass = hikashop_get('class.field'); $fields = $fieldsClass-&gt;getFields('frontcomp', $this-&gt;row, 'category', 'checkout&amp;task=state'); foreach($fields as $key =&gt; $val){ echo $fieldsClass-&gt;show($val,$this-&gt;row-&gt;$key); } ?&gt;

But normally, custom category fields are already displayed on the listings as long as you turn on the "frontend" setting of the field, so it should not even be necessary.

Last edit: 11 years 5 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Nzc0MzItaG93LXRvLWdldC1wYXRoLWZvci1pbWFnZS1maWxlLWZyb20tY3VzdG9tLWZpZWxkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[razlie](/forum/user/57026-razlie "View razlie's Profile")**
- [![razlie's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/57026-razlie "View razlie's Profile")
- [ Offline](/forum/user/57026-razlie)

Less More

- Posts: 14
- Thank you received: 1
-
-

8 years 5 months ago [\#293580](#293580) by [razlie](/forum/user/57026-razlie "View razlie's Profile")  Replied by *[razlie](/forum/user/57026-razlie "View razlie's Profile")* on topic *[How to get path for image/file from custom field?](/forum/26-product-category-display/877432-how-to-get-path-for-image-file-from-custom-field#293580 "-- url of the page with the problem -- : - -- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.36  Hi  i tried to add a custom field containing image/file for my category &amp; products  however when i want to know the path of image stored, it seems it's generated  i also tried it through template override  but it only containing the filename of the image  link in the front end  how to generate the link image / where the image is stored ?")*

Hi,
So if I create an external form (like say using RSFORM) then how get i retrieve the path of the this uploaded file? Appreciate your help

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Nzc0MzItaG93LXRvLWdldC1wYXRoLWZvci1pbWFnZS1maWxlLWZyb20tY3VzdG9tLWZpZWxkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

8 years 5 months ago [\#293600](#293600) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to get path for image/file from custom field?](/forum/26-product-category-display/877432-how-to-get-path-for-image-file-from-custom-field#293600 "-- url of the page with the problem -- : - -- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.36  Hi  i tried to add a custom field containing image/file for my category &amp; products  however when i want to know the path of image stored, it seems it's generated  i also tried it through template override  but it only containing the filename of the image  link in the front end  how to generate the link image / where the image is stored ?")*

Hi,
You would have to ask RSFORM's support for that. We don't know how that extension forms work.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Nzc0MzItaG93LXRvLWdldC1wYXRoLWZvci1pbWFnZS1maWxlLWZyb20tY3VzdG9tLWZpZWxkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[razlie](/forum/user/57026-razlie "View razlie's Profile")**
- [![razlie's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/57026-razlie "View razlie's Profile")
- [ Offline](/forum/user/57026-razlie)

Less More

- Posts: 14
- Thank you received: 1
-
-

8 years 5 months ago [\#293722](#293722) by [razlie](/forum/user/57026-razlie "View razlie's Profile")  Replied by *[razlie](/forum/user/57026-razlie "View razlie's Profile")* on topic *[How to get path for image/file from custom field?](/forum/26-product-category-display/877432-how-to-get-path-for-image-file-from-custom-field#293722 "-- url of the page with the problem -- : - -- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.36  Hi  i tried to add a custom field containing image/file for my category &amp; products  however when i want to know the path of image stored, it seems it's generated  i also tried it through template override  but it only containing the filename of the image  link in the front end  how to generate the link image / where the image is stored ?")*

Hi,
I mean if I want to create a plain file and make a direct connection using php code to select the data of a particular order items . How can I call for the product images since is there any php code that i can used to display the images?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Nzc0MzItaG93LXRvLWdldC1wYXRoLWZvci1pbWFnZS1maWxlLWZyb20tY3VzdG9tLWZpZWxkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

8 years 5 months ago [\#293726](#293726) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to get path for image/file from custom field?](/forum/26-product-category-display/877432-how-to-get-path-for-image-file-from-custom-field#293726 "-- url of the page with the problem -- : - -- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.36  Hi  i tried to add a custom field containing image/file for my category &amp; products  however when i want to know the path of image stored, it seems it's generated  i also tried it through template override  but it only containing the filename of the image  link in the front end  how to generate the link image / where the image is stored ?")*

Hi,

The exact code will depend on how you configured the custom field. We would need a screenshot of its settings to be able to say.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Nzc0MzItaG93LXRvLWdldC1wYXRoLWZvci1pbWFnZS1maWxlLWZyb20tY3VzdG9tLWZpZWxkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[lirimimeri](/forum/user/60924-lirimimeri "View lirimimeri's Profile")**
- [![lirimimeri's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/60924-lirimimeri "View lirimimeri's Profile")
- [ Offline](/forum/user/60924-lirimimeri)

Less More

- Posts: 12
- Thank you received: 0
-
-

5 years 8 months ago [\#329944](#329944) by [lirimimeri](/forum/user/60924-lirimimeri "View lirimimeri's Profile")  Replied by *[lirimimeri](/forum/user/60924-lirimimeri "View lirimimeri's Profile")* on topic *[How to get path for image/file from custom field?](/forum/26-product-category-display/877432-how-to-get-path-for-image-file-from-custom-field#329944 "-- url of the page with the problem -- : - -- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.36  Hi  i tried to add a custom field containing image/file for my category &amp; products  however when i want to know the path of image stored, it seems it's generated  i also tried it through template override  but it only containing the filename of the image  link in the front end  how to generate the link image / where the image is stored ?")*

Hi,

here is my screenshot, my question is: How can I access these fields caTest, certTest, keyTest in function onAfterOrderConfirm.

[ ![1.png](/forum/attachment/52033) ](/forum/attachment/52033 "1.png")

- [ ![1.png](/forum/attachment/52033) ](/forum/attachment/52033 "1.png") [ ](/forum/attachment/52033?download=1 "1.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Nzc0MzItaG93LXRvLWdldC1wYXRoLWZvci1pbWFnZS1maWxlLWZyb20tY3VzdG9tLWZpZWxkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

5 years 8 months ago [\#329949](#329949) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to get path for image/file from custom field?](/forum/26-product-category-display/877432-how-to-get-path-for-image-file-from-custom-field#329949 "-- url of the page with the problem -- : - -- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.36  Hi  i tried to add a custom field containing image/file for my category &amp; products  however when i want to know the path of image stored, it seems it's generated  i also tried it through template override  but it only containing the filename of the image  link in the front end  how to generate the link image / where the image is stored ?")*

Hi,

This thread is about custom fields, not plugin settings.
And I already replied to you about this here:
[ www.hikashop.com/forum/integrations/9019...t-plugin.html#329893](https://www.hikashop.com/forum/integrations/901999-acess-the-backend-fields-value-in-payment-plugin.html#329893)
As I already told you:

> you can use such code:
> $plugin = JPluginHelper::getPlugin('hikashoppayment', 'xxx');
> $this-&gt;params = new JRegistry(@$plugin-&gt;params);
> echo $this-&gt;params-&gt;get('yyy');
> where xxx is the folder name of your plugin and yyy the name of the setting (field).

Is there something you don't understand in this text ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Nzc0MzItaG93LXRvLWdldC1wYXRoLWZvci1pbWFnZS1maWxlLWZyb20tY3VzdG9tLWZpZWxkP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.080 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
