Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Product HTML shows in preview then erased on update

Product HTML shows in preview then erased on update

Views: 968

Results 1 to 5 of 5
25 Oct 2014, 4:18 PM
#1
jim_untershine avatar

jim_untershine

New Zenner

Join Date:
Oct 2014
Posts:
4
Plugin Contributions:
0

Product HTML shows in preview then erased on update

I paste html from Sharepoint to the Zen-Cart product description. I hit preview and everything looks fine. I hit update and the html is erased in the product description.

25 Oct 2014, 4:30 PM
#2
jim_untershine avatar

jim_untershine

New Zenner

Join Date:
Oct 2014
Posts:
4
Plugin Contributions:
0

Re: Product HTML shows in preview then erased on update

This is version 1.3.9h btw.

25 Oct 2014, 5:08 PM
#3
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Product HTML shows in preview then erased on update

Zencart strips HTML from the product description by default. Search the forums for zen_clean_html for a workaround.

Also, pasting copy into Zencart from a WYSIWYG editor can cause other display problems.

25 Oct 2014, 5:18 PM
#4
jim_untershine avatar

jim_untershine

New Zenner

Join Date:
Oct 2014
Posts:
4
Plugin Contributions:
0

Re: Product HTML shows in preview then erased on update

Steve.
The preview shows the page perfectly, but when I hit update the entire description box is totally deleted and another preview will render a blank page. I was hoping that there were html codes that might cause this problem that I could avoid.

25 Oct 2014, 7:57 PM
#5
jim_untershine avatar

jim_untershine

New Zenner

Join Date:
Oct 2014
Posts:
4
Plugin Contributions:
0

Re: Product HTML shows in preview then erased on update

After trial and error - I found extended ascii characters (over 127) in the html text file.
Zen-cart allows extended ascii characters in the preview but refuses to save the file if it finds the offending characters in the text.

In this case an 'en dash' was used instead of a 'hyphen', and a 'right single quote' was used instead of a 'single quote'.

The moral of the story is not to allow extended ascii (over 127) in product descriptions.