Quote:
Originally Posted by milkyway
I'd highly recommend the greek restaurant Nestos Estiatorio in New City
The Viet Nam Restaurant, 304 North Main Street, Spring Valley, NY 10977
Turkois Grill, on Saddle River Road in Airmont
Greek Village, Rt 303/ Livingston St. in Northvale NJ
Originally Posted by milkyway
Hi langer and all,
I have some problem here, I have an excel file containing datas of few hundred products. I tried to re-arrange them in EZ-populate format.
I face difficulties when it comes to product's description, because ZenCart use HTML format, while the description I have in hand is in plain text format. So when I upload them it will not displayed corcetly, because of no HTML tags such as <p>, <br /> to arrange them.
So it would be a huge task to edit the description one by one, do you have any idea how I can import the excel into ZenCart without having to edit the description into HTML?
Thanks
milkyway
I had a similar issue - with nearly 3000 products. I (partially) resolved it as follows...
As I wanted double line breaks after each sentence in the product description, I decided to use the "friendliness" that exists between MS WORD and MS EXCEL.
I highlighted the entire "Product Description" column in Excel, then Copied to clipboard.
I then Pasted the column into MS Word. I now had a single column "table" of all the product descriptions.
Then I converted TABLE to TEXT, with breaks selected as paragraphs (not tabs).
Doing "Search & Replace" I replaced all instances of ^p (paragraph) with $$$ . (This is just a unique string that I can easily find later to "reconvert" $$$ to ^p .)
Now I have a massive paragraph of sentences, broken at various intervals by $$$.
Then I did a "Search & Replace" for "fullstop + spacebar" (. ) - ie: the end of each sentence - and replaced it with .<br /><br /> (fullstop + tag + tag).
Now I had all my sentences properly tagged with the double <br /> html.
Then i did a search & replace for $$$, turning them back into ^p.
Finally, I highlighted all text and did a TEXT TO TABLE, with PARAGRAPH as the line break.
Before copying and pasting back into Excel, I created another column in Excel NEXT TO the original Product Description column.
I PASTE the altered column into this new column, and alongside is the original text. I can quickly do a random sampling to see if the text in both columns matches up. Check the first, last and several middle records. If they match up, you're pretty safe that your new column is identical to your old column, but now you have the <br /><br /> tags in place.
Delete the old column, remembering to shift its EP header over to the new column first.