An 'if' statement to bring up header depending on product group.

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

I am trying to insert a title below the header, and above the summary of results depending on the product group being displayed. eg 'Fishing Goods' above results from the fishing group, 'Camping Goods' above list of camping products etc. I am not sure I have identified the right variable - I am trying to say if $group = 'camping' print...etc

But I am obviously missing the mark here.

Can anyone help me with this?

Claire

-- Claire (claire@websight.com.au), September 30, 1999

Answers

OK I figured it out. I put

if ($FORM{'group'} eq 'groupname') { print ""; } else { print ""; } below &print_header in the gen_page subroutine. (based on only two product groups) and it works!

-- Claire (claire@websight.com.au), September 30, 1999.


Moderation questions? read the FAQ