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

#   Front end edit deletes images in custom fields

##

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

Less More

- Posts: 24
- Thank you received: 0
-
-

12 years 3 weeks ago [\#173868](#173868) by [KleanZlate](/forum/user/31768-kleanzlate "View KleanZlate's Profile")  *[Front end edit deletes images in custom fields](/forum/22-market-bug-report/872005-front-end-edit-deletes-images-in-custom-fields#173868 "-- url of the page with the problem -- :   www.bros.is/vorulisti/product/1894-smekk...category&#95;pathway-185  -- HikaShop version -- : 2.3.3 -- HikaMarket version -- : 1.4.4 -- Joomla version -- : 3.3.4 -- PHP version -- : 5.5.17  I have a problem with front end editing. We have a custom field on our product pages with color swatches (imgs) When I edit a product and hit 'Apply' or 'Save' in the front end all the color images get deleted.  The custom field is a WYSIWYG field. This happens both with images that I drag &amp; drop and images I upload.  Any way to fix this?")* was created by *[KleanZlate](/forum/user/31768-kleanzlate "View KleanZlate's Profile")*

-- url of the page with the problem -- : [ www.bros.is/vorulisti/product/1894-smekk...category\_pathway-185](http://www.bros.is/vorulisti/product/1894-smekksvunta/category_pathway-185)
-- HikaShop version -- : 2.3.3
-- HikaMarket version -- : 1.4.4
-- Joomla version -- : 3.3.4
-- PHP version -- : 5.5.17

I have a problem with front end editing.
We have a custom field on our product pages with color swatches (imgs)
When I edit a product and hit 'Apply' or 'Save' in the front end all the color images get deleted.

The custom field is a WYSIWYG field.
This happens both with images that I drag &amp; drop and images I upload.

Any way to fix this?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0Lzg3MjAwNS1mcm9udC1lbmQtZWRpdC1kZWxldGVzLWltYWdlcy1pbi1jdXN0b20tZmllbGRzP3RtcGw9bWFya2Rvd24=) 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: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 3 weeks ago [\#173871](#173871) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Front end edit deletes images in custom fields](/forum/22-market-bug-report/872005-front-end-edit-deletes-images-in-custom-fields#173871 "-- url of the page with the problem -- :   www.bros.is/vorulisti/product/1894-smekk...category&#95;pathway-185  -- HikaShop version -- : 2.3.3 -- HikaMarket version -- : 1.4.4 -- Joomla version -- : 3.3.4 -- PHP version -- : 5.5.17  I have a problem with front end editing. We have a custom field on our product pages with color swatches (imgs) When I edit a product and hit 'Apply' or 'Save' in the front end all the color images get deleted.  The custom field is a WYSIWYG field. This happens both with images that I drag &amp; drop and images I upload.  Any way to fix this?")*

Hi,

Would it be possible to have more details about the custom field configuration and your problem ?
What is delete exactly ? All the content ? Only the images ?

Regards,

---

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

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

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

Less More

- Posts: 24
- Thank you received: 0
-
-

12 years 3 weeks ago -  12 years 3 weeks ago [\#173889](#173889) by [KleanZlate](/forum/user/31768-kleanzlate "View KleanZlate's Profile")  Replied by *[KleanZlate](/forum/user/31768-kleanzlate "View KleanZlate's Profile")* on topic *[Front end edit deletes images in custom fields](/forum/22-market-bug-report/872005-front-end-edit-deletes-images-in-custom-fields#173889 "-- url of the page with the problem -- :   www.bros.is/vorulisti/product/1894-smekk...category&#95;pathway-185  -- HikaShop version -- : 2.3.3 -- HikaMarket version -- : 1.4.4 -- Joomla version -- : 3.3.4 -- PHP version -- : 5.5.17  I have a problem with front end editing. We have a custom field on our product pages with color swatches (imgs) When I edit a product and hit 'Apply' or 'Save' in the front end all the color images get deleted.  The custom field is a WYSIWYG field. This happens both with images that I drag &amp; drop and images I upload.  Any way to fix this?")*

Here's a screenshot of the custom field:
[ ![&#91;img](http://s28.postimg.org/kosdxdpp5/Custom_field.jpg) ](http://postimg.org/image/kosdxdpp5/)

This is how the field looks in the front end edit window after uploading images in the back end.
[ ![&#91;img](http://s28.postimg.org/i66owp3yx/Front_end.jpg) ](http://postimg.org/image/i66owp3yx/)

And here's how it looks after hitting 'Apply':
[ ![&#91;img](http://s28.postimg.org/iufjfn2op/Front_end2.jpg) ](http://postimg.org/image/iufjfn2op/)

All the color swatches are gone ![:(](/media/kunena/emoticons/5.png ":(")

Last edit: 12 years 3 weeks ago by [KleanZlate](/forum/user/31768-kleanzlate "View KleanZlate's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0Lzg3MjAwNS1mcm9udC1lbmQtZWRpdC1kZWxldGVzLWltYWdlcy1pbi1jdXN0b20tZmllbGRzP3RtcGw9bWFya2Rvd24=) 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: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 3 weeks ago -  12 years 3 weeks ago [\#173893](#173893) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Front end edit deletes images in custom fields](/forum/22-market-bug-report/872005-front-end-edit-deletes-images-in-custom-fields#173893 "-- url of the page with the problem -- :   www.bros.is/vorulisti/product/1894-smekk...category&#95;pathway-185  -- HikaShop version -- : 2.3.3 -- HikaMarket version -- : 1.4.4 -- Joomla version -- : 3.3.4 -- PHP version -- : 5.5.17  I have a problem with front end editing. We have a custom field on our product pages with color swatches (imgs) When I edit a product and hit 'Apply' or 'Save' in the front end all the color images get deleted.  The custom field is a WYSIWYG field. This happens both with images that I drag &amp; drop and images I upload.  Any way to fix this?")*

Hi,

Please be sure that your custom field does not have "input filtering" activated, this option strip the HTML tags.

Otherwise, there is a fix for HikaMarket but regarding your configuration, I don't think it's linked.
You can edit the file "administrator/components/com_hikamarket/classes/product.php" and replace the line Code:

$product = $fieldsClass-&gt;getInput('product', $oldProduct);

By Code:

$product = $fieldsClass-&gt;getInput('product', $oldProduct, true, 'data', false, 'all');

It will fix the loading of the custom field when not visible in the front-end.

Regards,

---

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

Last edit: 12 years 3 weeks ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile").

The following user(s) said Thank You: [KleanZlate](/forum/user/31768-kleanzlate "View KleanZlate's Profile")

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

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

Less More

- Posts: 24
- Thank you received: 0
-
-

12 years 3 weeks ago [\#173912](#173912) by [KleanZlate](/forum/user/31768-kleanzlate "View KleanZlate's Profile")  Replied by *[KleanZlate](/forum/user/31768-kleanzlate "View KleanZlate's Profile")* on topic *[Front end edit deletes images in custom fields](/forum/22-market-bug-report/872005-front-end-edit-deletes-images-in-custom-fields#173912 "-- url of the page with the problem -- :   www.bros.is/vorulisti/product/1894-smekk...category&#95;pathway-185  -- HikaShop version -- : 2.3.3 -- HikaMarket version -- : 1.4.4 -- Joomla version -- : 3.3.4 -- PHP version -- : 5.5.17  I have a problem with front end editing. We have a custom field on our product pages with color swatches (imgs) When I edit a product and hit 'Apply' or 'Save' in the front end all the color images get deleted.  The custom field is a WYSIWYG field. This happens both with images that I drag &amp; drop and images I upload.  Any way to fix this?")*

Turning off input filtering worked like a charm. Thank you ![:)](/media/kunena/emoticons/8.png ":)")

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

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

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

Time to create page: 0.218 seconds

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

[](#top)
