Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Froogle export mod for <LI> tags


LeeH

Recommended Posts

Problem: I have lots of <LI> tags in my product descriptions. When I did an .txt export for Froogle, in both the standalone Froogle exporter mod and the original EasyPopulate contribution upon which it is based, I got lots of good keywords crammed together (and therefore, unsearchable) because the stock code didn't know what to do with the list elements (bullets) except throw them out. All my 165 or so products have detailed bulleted content lists in the product description fields, so this was no simple manual undertaking.

 

Solution: Tim Wasson graciously helped me replace all <LI> tags with spaces, saving me HOURS of hand-editing in Excel.

 

Here's the fix:

 

In froogle.php (or easypopulate.php), find the line that describes how to handle product descriptions. In froogle.php, its around line 475. Change to this:

 

$row['v_froogle_products_description_' . $lid] = '"' . strip_tags( str_replace( '<', ' <', str_replace( '"', '""', $row2['products_description']))) . '"';

 

And there you have it! Many thanks to Tim who exemplified the best part about open source code - the help & education one finds from the user community.

 

Happy holidays to all,

 

Lee

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...