Magento HTML tags are are copied to product description and description_sale

Bug #1258414 reported by Stefaan Ferket
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenERP Connector - Magento
Confirmed
Low
Unassigned

Bug Description

Magento allows to have HTML tags in product description and short_description (OpenERP description_sale).
These tags are copied to OpenERP when product is created.
Can we filter out all HTML tags when creating the product in OpenERP?

We use additional module magentoerpconnect.

Related branches

Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :

Hello,

Thanks for the bug report.

Either we strip the HTML tags, either we use new fields for the HTML descriptions (but they won't necessarily be integrated with the rest, such as the reports...).

Hints:
 - Strip HTML: http://stackoverflow.com/questions/753052/strip-html-from-strings-in-python
 - Modifiers: https://code.launchpad.net/~camptocamp/openerp-connector/7.0-connector-closure-functions/+merge/193389

Changed in openerp-connector:
status: New → Confirmed
importance: Undecided → Low
affects: openerp-connector → openerp-connector-magento
Revision history for this message
Stefaan Ferket (s-ferket) wrote :

We prefer to strip the HTML tags, that would allow us to keep using the functionality (e.g. reports) that we already have.

Revision history for this message
Jan-Philipp Fischer (jan-philipp-fischer) wrote :

Hi, i have fixed that issue and done a merge proposal.
Can be seen above.

----
Jan

Revision history for this message
Karsten Kinateder (karsten-m) wrote :

Hi,

Please do not see this as issue, when you activate the widgets html or pad for the description in openerp it really works fine. We will use it.

I would prefer to set an option to Storeview, if it should import html or not. In reference to that option parameter you could overwrite the product view field description + widget="html"
Possible you will find a method, which replaces the media variable of magento in that description string with the complete path information so that images in openerp from description would be integrated correctly too.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.