List all item of one group with no form fileds?

greenspun.com : LUSENET : S-Mart Shopping Cart : One Thread

Hi all,

problem with listing all items from one group:

Why does this following line do not work ? I saw it on http://www.bennewitz.com/ and changed it to my domain, path and group name.

"http://www.avp-net.de/cgi-bin/S-Mart.cgi?command=listitems&type=group &pos=0&group=DH"

The variable for groups look like this: %groups = ('ETW', 'Eigentumswohnungen', 'EFH', 'Einfamilienhäuser', 'MFH', 'Mehrfamilienhäuser', 'DH', 'Doppelhäuser', 'RH', 'Reihenhäuser');

I also tried it like the ReadMe says, but with the form-version I can not use any rollover-functions or status messages but I need them.

Thank you for

-- Michael Franke (mesle@gmx.de), June 24, 1999

Answers

Hi,

You have one of the command out of order.

"http://www.avp-net.de/cgi-bin/S-Mart.cgi?command=listitems&type=group &pos=0&group=DH"

Try this.

"?command=listitems&pos=0&type=group&group=DH"

That should do it.

Jim

-- James L. Farmer (jim@team-blankets.com), June 24, 1999.


Hi James,

thank you for help. I tried it, but it doesn't work at all.

Even when I enter the full URL into the browser

http://www.avp-net.de/cgi-bin/S-Mart.cgi?command=listitems&pos=0&type= group&group=DH

I just get the header ("Auswahl") and footer ("Liste einsehen, Liste absenden, and so on") pages.

I have read the other contribution. I chmoded the .db file to 777, I have set the .cfg file to use smartadmin (1) and names of the group are the same like the group names.

I really know, that there are files within the .db with group "DH" or "ETW" or "MFH" and so on.

Thank you before for

-- Michael Franke (mesle@gmx.de), June 27, 1999.


Hi Michael,

I tried all your groups and nothing came up very strange. I did get list all items avalable so it is reading your "demo.db" file.

Check in your "demo.db" file for the pipe "|" separater.

These item should be pipe delimtited. i.e.

$itemid|$name|$price|$descrip|$image|$weight|$itemurl|$group,$group2|

You might be missing one or have one too many.

Jim

-- James L. Farmer (jim@team-blankets.com), June 27, 1999.


From Jim via eMail:

If you do not use the weight you would have two pipes together "||". >From the list you sent me it looks like you do not have the pipe at the end of the line. |RH| or |ETW| You need the pipe "|" at the end of the line right after your group "RH|".

That will fix it.

Thank you Jim, you're right. That fixed the problem

-- Michael Franke (mesle@gmx.de), June 28, 1999.


Moderation questions? read the FAQ