You are here:  » General Magic Parser Question


General Magic Parser Question

Submitted by matt on Sat, 2006-05-06 19:17 in

Let's say I want to create a page that contains about a dozen specific products. Could I use Magic Parser (perhaps with Price Tapestry) to sort through five datafeeds and display the lowest price for each of those products on the page? And perhaps also have an individual item page for each of those products? Thanks.

Submitted by support on Sat, 2006-05-06 19:32

Hello Matt,

Thank you for your interest in Magic Parser.

The script will certainly help you to do that; but please note that its functionality is limited to parsing only; there is no concept of output (either loading a database or generated HTML) in terms of what Magic Parser does - that's up to your own PHP code. On the other hand, Price Tapestry probably does a lot more than you require!

However....

Some people use Price Tapestry only for its "backend" - the admin section that lets you manage your feeds and import the products into a MySQL database. You can then write your own front-end to create the specific user interface that you require.

In your case; I think it would be straight forward to copy the PHP from Price Tapestry's "product" page; and simply replicate that for each of the 5 products that you want to display (as it already has the code to display lowest price) all onto one page. Ditto for creating the individual product pages.

You will need PHP coding experience to do this; but you should find the Price Tapestry code easy to understand and modify to suit your requirements.

Cheers,
David.