Zen Cart Logo
Forums / General Questions / Product Descriptions Not Displaying Properly

Product Descriptions Not Displaying Properly

Locked

Views: 843

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
8 Jun 2009, 2:00 AM
#1
kenichi avatar

kenichi

Zen Follower

Join Date:
Oct 2008
Posts:
252
Plugin Contributions:
0

Product Descriptions Not Displaying Properly

Running 1.3.8

So I'm trying to import a few thousand products onto my site. To do so I'm using the Easy Populate Mod. So far everything has worked okay, except for the product descriptions, which don't show up correctly. They show up like: This

However, when I go to edit the product description from the admin panel, they suddenly show up correctly: Correctly

So my question is, what am I doing wrong, and how can I get the descriptions to show up without me having to view each one manually?

8 Jun 2009, 2:37 AM
#2
kenichi avatar

kenichi

Zen Follower

Join Date:
Oct 2008
Posts:
252
Plugin Contributions:
0

Re: Product Descriptions Not Displaying Properly

Updated the link that is meant to be correct, every time I upload my new .csv all correctly displayed descriptions go back to what the others look like.

8 Jun 2009, 8:57 AM
#3
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Product Descriptions Not Displaying Properly

Your product descriptions have inappropriate HTML. There should only be one each of HTML, HEAD and BODY tags, but your descriptions add a second.

EasyPopulate isn't expecting this and simply loads up what you tell it to load. The Zen Cart admin is smarter and removes the inappropriate tags if you try to enter them there.

There may already be a solution for this in the Easy Populate support thread. If not you will need to dig into the Easy Populate code and insert a PHP strip_tags function call with appropriate parameters before the data is written to the database. Or alternatively, clean up the data that you are feeding into your database to remove the tags that really shouldn't be there anyway.