VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: dorkus on October 15, 2014, 11:58:13 AM

Title: virtuemart removes html from product and category description
Post by: dorkus on October 15, 2014, 11:58:13 AM
i there,

when we edit product description with html tables, all html information gets removed when we save the item.

it is working fine with joomla articles etc. we tried jce and other editors - still not saving.

"admin" is assigned properly in vm shop admin and there is no filtering for superadmin user.

it is a bug in virtuemart. version < 2.6.6 are working for me.

system is joomla 2.5.27 with vm 2.6.10 on php 4.3

we tried sourcer but the effect is the same.

please fix!

thank you.  ;D
Title: Re: virtuemart removes html from product and category description
Post by: Milbo on October 16, 2014, 15:45:50 PM
The user must be super admin.
Title: Re: virtuemart removes html from product and category description
Post by: dorkus on October 16, 2014, 15:47:49 PM
the user is super admin.

i tried with a clean fresh install as well. it simply removes all html tags and leaves the content. this hasnt been the case before.
Title: Re: virtuemart removes html from product and category description
Post by: dorkus on October 21, 2014, 20:33:51 PM
guys, please fix this!!! i am 100% sure everybody needs this option to add html to product description and category description! ;(
Title: Re: virtuemart removes html from product and category description
Post by: GJC Web Design on October 21, 2014, 22:29:04 PM
I assume no one is answering because we don't have this problem

just tried on J2.2.27/VM2.6.10 - jce editor in product admin

html stays

see -> http://www.gjcwebdesign.com/vm2t4/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=26&virtuemart_category_id=3&Itemid=115

desc is full of html added by the editor and by raw source
Title: Re: virtuemart removes html from product and category description
Post by: dorkus on October 21, 2014, 22:34:43 PM
please try add the table code here: http://forum.virtuemart.net/index.php?topic=125635.msg432396#msg432396
Title: Re: virtuemart removes html from product and category description
Post by: GJC Web Design on October 21, 2014, 23:17:45 PM
no problems

http://www.gjcwebdesign.com/vm2t4/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=26&virtuemart_category_id=3&Itemid=115
Title: Re: virtuemart removes html from product and category description
Post by: jenkinhill on October 21, 2014, 23:18:53 PM
Saves fine for me, too.

[attachment cleanup by admin]
Title: Re: virtuemart removes html from product and category description
Post by: alatak on October 22, 2014, 19:13:04 PM
Hello

i don't see any reason in the code why HTML description should not be saved. Even in the short description it is allowed.
Title: Re: virtuemart removes html from product and category description
Post by: dorkus on February 18, 2015, 15:20:50 PM
this is so weird.

we still have this problem.... i spend days trying to sort this out - nada.

we are now at vm 2.5.28 and vm 2.6.14 - an product description is not saving html

we were originally updating from 2.0.22d to 2.6.10.

any idea how to bugtrack this???

please help me!

thanks!
Title: Re: virtuemart removes html from product and category description
Post by: jenkinhill on February 18, 2015, 16:19:24 PM
In J2.5.28/VM2.6.14 I can add html into description, and short & long product descriptions and save. I am superadmin using TinyMCE as editor with VM default templates. See the pics for a cat description, editor window, editor code window and the appearance on the page.
Title: Re: virtuemart removes html from product and category description
Post by: dorkus on February 18, 2015, 16:21:59 PM
glad it works for you :)

we have used tinymce / jce - all same problemo.

strange thing i noticed: it only happens when editing existing products. when i add a new product it saved html just fine....

any idea?

i'm at my wits ends....
Title: Re: virtuemart removes html from product and category description
Post by: jenkinhill on February 18, 2015, 17:21:31 PM
The product I used was already created - one of the VM sample data products.
Title: Re: virtuemart removes html from product and category description
Post by: dorkus on February 18, 2015, 18:02:50 PM
any idea???
Title: Re: virtuemart removes html from product and category description
Post by: Milbo on February 19, 2015, 09:38:01 AM
You did not answer your permission settings. You must be SuperAdministrator!
Title: Re: virtuemart removes html from product and category description
Post by: dorkus on February 19, 2015, 09:47:03 AM
i am superadmin. it is all set properly.

new products save just fine. just existing products i cannot save with html in the table "product_desc".

any idea how to bugtrack this?