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

#   New custom field containing an image (Not a paid download)

##

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

Less More

- Posts: 6
- Thank you received: 1
-
-

2 years 11 months ago [\#357456](#357456) by [coffee](/forum/user/4796-coffee "View coffee's Profile")  *[New custom field containing an image (Not a paid download)](/forum/32-content-creation/907434-new-custom-field-containing-an-image-not-a-paid-download#357456 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : 4  Hi I have a site that is a catalogue only (no prices or purchases)  I'm trying to create a custom image field containing an image that I want only certain groups to see and not be downloadable.  Basically I need to show a product and some people need to see an image of the internal archived catalog page. Also the image can only be download by admin.  I can restrict the access and stop downloads via htaccess file. So thats not a problem.  The ajax image custom field does what I want except I can't use the fancy box to show the big image it just downloads the image when you click on it.  Is there some way of having a second/third set of images like the main product image?  I have done a work around using a wyswyg field but its very clunky  Thanks  Denis")* was created by *[coffee](/forum/user/4796-coffee "View coffee's Profile")*

-- HikaShop version -- : 5.0.2
-- Joomla version -- : 4

Hi
I have a site that is a catalogue only (no prices or purchases)

I'm trying to create a custom image field containing an image that I want only certain groups to see and not be downloadable.

Basically I need to show a product and some people need to see an image of the internal archived catalog page. Also the image can only be download by admin.

I can restrict the access and stop downloads via htaccess file. So thats not a problem.

The ajax image custom field does what I want except I can't use the fancy box to show the big image it just downloads the image when you click on it.

Is there some way of having a second/third set of images like the main product image?

I have done a work around using a wyswyg field but its very clunky

Thanks

Denis

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vOTA3NDM0LW5ldy1jdXN0b20tZmllbGQtY29udGFpbmluZy1hbi1pbWFnZS1ub3QtYS1wYWlkLWRvd25sb2FkP3RtcGw9bWFya2Rvd24=) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

2 years 11 months ago -  2 years 11 months ago [\#357458](#357458) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[New custom field containing an image (Not a paid download)](/forum/32-content-creation/907434-new-custom-field-containing-an-image-not-a-paid-download#357458 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : 4  Hi I have a site that is a catalogue only (no prices or purchases)  I'm trying to create a custom image field containing an image that I want only certain groups to see and not be downloadable.  Basically I need to show a product and some people need to see an image of the internal archived catalog page. Also the image can only be download by admin.  I can restrict the access and stop downloads via htaccess file. So thats not a problem.  The ajax image custom field does what I want except I can't use the fancy box to show the big image it just downloads the image when you click on it.  Is there some way of having a second/third set of images like the main product image?  I have done a work around using a wyswyg field but its very clunky  Thanks  Denis")*

Hi,

A custom product field of the type AJAX image is already supposed to display the images direclty on the product page.
But yes, there is no mechanism to display it with a popup system and it just downloads it. That would require some development to have it support fancybox.
I think the modification shouldn't be too complex though.
In the file show_block_custom_main ( which you can edit via the Display&gt;Views menu), you could add the code: Code:

&lt;?php if($oneExtraField-&gt;field_type='ajaximage') { ?&gt; &lt;script&gt;Fancybox.bind('#hikashop_product_custom_value_&lt;?php echo $oneExtraField-&gt;field_id;?&gt; a', {});&lt;/script&gt; &lt;?php } ?&gt;

after the line: Code:

&lt;?php echo $this-&gt;fieldsClass-&gt;show($oneExtraField,$value); ?&gt;

and it should work (not tested though)

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

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

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

Less More

- Posts: 6
- Thank you received: 1
-
-

2 years 11 months ago [\#357471](#357471) by [coffee](/forum/user/4796-coffee "View coffee's Profile")  Replied by *[coffee](/forum/user/4796-coffee "View coffee's Profile")* on topic *[New custom field containing an image (Not a paid download)](/forum/32-content-creation/907434-new-custom-field-containing-an-image-not-a-paid-download#357471 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : 4  Hi I have a site that is a catalogue only (no prices or purchases)  I'm trying to create a custom image field containing an image that I want only certain groups to see and not be downloadable.  Basically I need to show a product and some people need to see an image of the internal archived catalog page. Also the image can only be download by admin.  I can restrict the access and stop downloads via htaccess file. So thats not a problem.  The ajax image custom field does what I want except I can't use the fancy box to show the big image it just downloads the image when you click on it.  Is there some way of having a second/third set of images like the main product image?  I have done a work around using a wyswyg field but its very clunky  Thanks  Denis")*

Thanks Nicolas but it didn't work. Still just downloads.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vOTA3NDM0LW5ldy1jdXN0b20tZmllbGQtY29udGFpbmluZy1hbi1pbWFnZS1ub3QtYS1wYWlkLWRvd25sb2FkP3RtcGw9bWFya2Rvd24=) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

2 years 11 months ago [\#357478](#357478) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[New custom field containing an image (Not a paid download)](/forum/32-content-creation/907434-new-custom-field-containing-an-image-not-a-paid-download#357478 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : 4  Hi I have a site that is a catalogue only (no prices or purchases)  I'm trying to create a custom image field containing an image that I want only certain groups to see and not be downloadable.  Basically I need to show a product and some people need to see an image of the internal archived catalog page. Also the image can only be download by admin.  I can restrict the access and stop downloads via htaccess file. So thats not a problem.  The ajax image custom field does what I want except I can't use the fancy box to show the big image it just downloads the image when you click on it.  Is there some way of having a second/third set of images like the main product image?  I have done a work around using a wyswyg field but its very clunky  Thanks  Denis")*

As I said, this was not tested.
Could you provide the URL of the page so that I could have a look at the situation ?

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

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

Less More

- Posts: 6
- Thank you received: 1
-
-

2 years 11 months ago [\#357481](#357481) by [coffee](/forum/user/4796-coffee "View coffee's Profile")  Replied by *[coffee](/forum/user/4796-coffee "View coffee's Profile")* on topic *[New custom field containing an image (Not a paid download)](/forum/32-content-creation/907434-new-custom-field-containing-an-image-not-a-paid-download#357481 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : 4  Hi I have a site that is a catalogue only (no prices or purchases)  I'm trying to create a custom image field containing an image that I want only certain groups to see and not be downloadable.  Basically I need to show a product and some people need to see an image of the internal archived catalog page. Also the image can only be download by admin.  I can restrict the access and stop downloads via htaccess file. So thats not a problem.  The ajax image custom field does what I want except I can't use the fancy box to show the big image it just downloads the image when you click on it.  Is there some way of having a second/third set of images like the main product image?  I have done a work around using a wyswyg field but its very clunky  Thanks  Denis")*

Hi nicolas I've created an admin logon for you. Is there a way of privately sending you the details?

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

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

Less More

- Posts: 4820
- Thank you received: 652
-
-

2 years 11 months ago -  2 years 11 months ago [\#357483](#357483) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[New custom field containing an image (Not a paid download)](/forum/32-content-creation/907434-new-custom-field-containing-an-image-not-a-paid-download#357483 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : 4  Hi I have a site that is a catalogue only (no prices or purchases)  I'm trying to create a custom image field containing an image that I want only certain groups to see and not be downloadable.  Basically I need to show a product and some people need to see an image of the internal archived catalog page. Also the image can only be download by admin.  I can restrict the access and stop downloads via htaccess file. So thats not a problem.  The ajax image custom field does what I want except I can't use the fancy box to show the big image it just downloads the image when you click on it.  Is there some way of having a second/third set of images like the main product image?  I have done a work around using a wyswyg field but its very clunky  Thanks  Denis")*

Hello,

You have to use our **[ Contact us](https://www.hikashop.com/support/contact-us.html)** form to provide these elements, and don't forget to add an **Url Link to this topic** in your message.
Regards

Last edit: 2 years 11 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vOTA3NDM0LW5ldy1jdXN0b20tZmllbGQtY29udGFpbmluZy1hbi1pbWFnZS1ub3QtYS1wYWlkLWRvd25sb2FkP3RtcGw9bWFya2Rvd24=) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

2 years 11 months ago [\#357520](#357520) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[New custom field containing an image (Not a paid download)](/forum/32-content-creation/907434-new-custom-field-containing-an-image-not-a-paid-download#357520 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : 4  Hi I have a site that is a catalogue only (no prices or purchases)  I'm trying to create a custom image field containing an image that I want only certain groups to see and not be downloadable.  Basically I need to show a product and some people need to see an image of the internal archived catalog page. Also the image can only be download by admin.  I can restrict the access and stop downloads via htaccess file. So thats not a problem.  The ajax image custom field does what I want except I can't use the fancy box to show the big image it just downloads the image when you click on it.  Is there some way of having a second/third set of images like the main product image?  I have done a work around using a wyswyg field but its very clunky  Thanks  Denis")*

Hi,

Thanks for the access. I found the issue. It was the extra \ in my code which were not needed and created a js error.
i've updated the code in my previous message with the correct code.

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

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

Less More

- Posts: 6
- Thank you received: 1
-
-

2 years 11 months ago [\#357548](#357548) by [coffee](/forum/user/4796-coffee "View coffee's Profile")  Replied by *[coffee](/forum/user/4796-coffee "View coffee's Profile")* on topic *[New custom field containing an image (Not a paid download)](/forum/32-content-creation/907434-new-custom-field-containing-an-image-not-a-paid-download#357548 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : 4  Hi I have a site that is a catalogue only (no prices or purchases)  I'm trying to create a custom image field containing an image that I want only certain groups to see and not be downloadable.  Basically I need to show a product and some people need to see an image of the internal archived catalog page. Also the image can only be download by admin.  I can restrict the access and stop downloads via htaccess file. So thats not a problem.  The ajax image custom field does what I want except I can't use the fancy box to show the big image it just downloads the image when you click on it.  Is there some way of having a second/third set of images like the main product image?  I have done a work around using a wyswyg field but its very clunky  Thanks  Denis")*

Hi Nicolas,

than you so much for that. Excellent support as always.

All the best

Denis

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vOTA3NDM0LW5ldy1jdXN0b20tZmllbGQtY29udGFpbmluZy1hbi1pbWFnZS1ub3QtYS1wYWlkLWRvd25sb2FkP3RtcGw9bWFya2Rvd24=) 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.086 seconds

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