Skip to main content

Front end edit deletes images in custom fields

More
12 years 1 day ago #173868 by KleanZlate
-- 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.

More
12 years 1 day ago #173871 by Jerome
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.

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

More
12 years 1 day ago - 12 years 1 day ago #173889 by KleanZlate
Here's a screenshot of the custom field:
[img


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


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


All the color swatches are gone :(
Last edit: 12 years 1 day ago by KleanZlate.

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

More
12 years 1 day ago - 12 years 1 day ago #173893 by Jerome
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->getInput('product', $oldProduct);
By
Code:
$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.
Last edit: 12 years 1 day ago by Jerome.
The following user(s) said Thank You: KleanZlate

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

More
12 years 1 day ago #173912 by KleanZlate
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.206 seconds
Powered by Kunena Forum