troubleshooting Question

Show if region not working

Avatar of imjusthere
imjusthere asked on
ASPAdobe Dreamweaver
40 Comments1 Solution476 ViewsLast Modified:
Can someone tell me why this doesn't work?  I'm trying to make it so that if either case is not true the customer won't see the add to cart options.  Instead what happens is if the second condition is not true no records show in the looper. The first condition seems to work fine.

 <%
' Show IF Conditional region1
  If (Recordset1.Fields.Item("proof_shoppingcart").Value) = "Yes" And (Recordset1.Fields.Item("cart_activate").Value) = 1 Then
%>
                      <form name="eCart1_1_ATC_<%=Recordset1.Fields("proof_ID").value%>" method="POST" action="<%=cStr(Request.ServerVariables("SCRIPT_NAME"))%><%=WA_eCart_IIf((Request.ServerVariables("QUERY_STRING") <> ""), "?" & Request.ServerVariables("QUERY_STRING"), "")%>">
                        <input type="hidden" name="eCart1_1_ID_Add" value="<%=Recordset1.Fields("proof_ID").value%>" >
                        <select name="eCart1_1_Quantity_Add">
                          <option value=<%=(Recordset1.Fields.Item("proof_quantity1").Value)%> selected><%=(Recordset1.Fields.Item("proof_quantity1").Value)%></option>
                          <option value=<%=(Recordset1.Fields.Item("proof_quantity2").Value)%>><%=(Recordset1.Fields.Item("proof_quantity2").Value)%></option>
                          <option value=<%=(Recordset1.Fields.Item("proof_quantity3").Value)%>><%=(Recordset1.Fields.Item("proof_quantity3").Value)%></option>
                          <option value=<%=(Recordset1.Fields.Item("proof_quantity4").Value)%>><%=(Recordset1.Fields.Item("proof_quantity4").Value)%></option>
                          <option value=<%=(Recordset1.Fields.Item("proof_quantity5").Value)%>><%=(Recordset1.Fields.Item("proof_quantity5").Value)%></option>
                        </select>
                        <input name="eCart1_1_ATC" type="image" value="Add to Cart" src="../WA_eCart/Images/Pacifica/Btn4_EN_addtocart.gif" align="middle" border="0">
                      </form>
                      <%
  End If
' End Conditional region1
%>
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 40 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 40 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros