Front end edit deletes images in custom fields

  • Posts: 24
  • Thank you received: 0
10 years 1 month ago #173868

-- url of the page with the problem -- : www.bros.is/vorulisti/product/1894-smekk...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 & drop and images I upload.

Any way to fix this?

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 1 month ago #173871

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 & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 24
  • Thank you received: 0
10 years 1 month ago #173889

Here's a screenshot of the custom field:



This is how the field looks in the front end edit window after uploading images in the back end.


And here's how it looks after hitting 'Apply':


All the color swatches are gone :(

Last edit: 10 years 1 month ago by KleanZlate.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 1 month ago #173893

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

$product = $fieldsClass->getInput('product', $oldProduct);
By
$product = $fieldsClass->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 & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Last edit: 10 years 1 month ago by Jerome.
The following user(s) said Thank You: KleanZlate

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

  • Posts: 24
  • Thank you received: 0
10 years 1 month ago #173912

Turning off input filtering worked like a charm. Thank you :)

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

Moderators: Obsidev
Time to create page: 0.056 seconds
Powered by Kunena Forum