LeeH Posted December 19, 2003 Share Posted December 19, 2003 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.