CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Need a Custom or Prewritten Perl Program?: I need a program that...:
I need an ecommerce / retail data base and processes to drive HTML pages

 



kbrews
New User

Feb 25, 2002, 11:13 PM

Post #1 of 3 (929 views)
I need an ecommerce / retail data base and processes to drive HTML pages Can't Post

I need an ecommerce / retail data base and processes to drive HTML pages. A flat file process is fine. My web site has grown to many products...more than what can be handled manually in each HTML page. So, I now need a central database that carries all the product data (catagory, product number (key), title, description, shipping weight, price, link to the picture, etc., etc.). A search will find the right record, then use that data to populate all HTML pages by way of plugged variables in a template.

This is a common need for ecommerce and retailers. I am hoping to find someone that has already solved this problem with a script or set of scripts that they would be willing to share. I would rather find a free CGI script system that I could modify, but would consider paying for the right process if need be.

Please contact me if you know of a solution out there already written. You can contact me a perlguru@rkbventures.com You can see the site that needs this processing at http://rkbventures.com/!products/!products . Click on the first product to see the detail page. I want all the data you see on these pages to come from the database.....not be hard coded in the HTML pages.

thanks. kb


Jasmine
Administrator

Feb 26, 2002, 12:34 AM

Post #2 of 3 (927 views)
Re: [kbrews] I need an ecommerce / retail data base and processes to drive HTML pages [In reply to] Can't Post

Have you looked at [url=http://perlarchive.com/guide/Shopping_Carts]http://perlarchive.com/guide/Shopping_Carts? If so, what features are any of those programs missing that you want/need?

On a completely side note... the url you noted has several javascript errors.


Paul
Enthusiast

Feb 26, 2002, 4:51 AM

Post #3 of 3 (924 views)
Re: [kbrews] I need an ecommerce / retail data base and processes to drive HTML pages [In reply to] Can't Post

I recently wrote a template parser - is this what you need?

You'd do something like:

print $obj->parse('template_name', $hashref);

Then it would load the template and substitute tags with the data from $hashref. So if for example you did a fetchrow_hashref from your database and it looked like:

$hashref = { Col => 'Val', Col2 => 'Val2' };

....in the template you could add:

<%if Col%>
<%Col%>
<%endif%>

....and it would print Val. You can also use lots of other cool stuff like:

<%if Col%>
<%Col%>
<%else%>
Couldn't find column one value
<%endif%>

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives