ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart Build To Order > Customizing BTO
  New Posts New Posts RSS Feed - Show / Hide BTO Category
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Show / Hide BTO Category

 Post Reply Post Reply
Author
Message
Fseminario View Drop Down
Newbie
Newbie


Joined: 27-November-2010
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fseminario Quote  Post ReplyReply Direct Link To This Post Topic: Show / Hide BTO Category
    Posted: 27-November-2010 at 5:16pm
Hello, this is my first time modifying ProductCart. I am a ASP newb with a deep design background. My question is, how do i hide and show certain bto categories from displaying in the cart through ASP and not the control panel. I'm trying to modify an existing altered productcart and i think i have found where the trigger is to hide or show certain items. Am I correct? btw, RDL is a programmer who altered the product cart.

Filename: configurePRDcode.asp

"<table class="pcBTOmainTable">
    <%
    dim jCnt
    CB_CatCnt = 0
    jCnt=0
   
    '*******************************************
    '******* START BTO Categories
       IF NOT rsSSobj.eof then 
        Dim strCol
        strCol = "class=pcBTOsecondRow"
        checkVar=0
        checkVarCat=0

        pcv_tmpArr=rsSSobj.GetRows()
        pcv_ArrCount=ubound(pcv_tmpArr,2)
       
        set rsSSobj=nothing
       
        'RDL Update Array with new defaults passed here
        'RDL Create array with list of prods for each category
        Dim ArrayRow
        Dim catproducts()
        redim catproducts(200)                           
        Dim catnumb
        Dim maxleadtime
        maxleadtime = 0
        Dim temprow
        Dim writecatlead
        Dim NewCat
       
        NewCat = False
        For ArrayRow = 0 to pcv_ArrCount-1
            if pcv_tmpArr(0,ArrayRow) <> catnumb then
                NewCat = True
            Else
                NewCat = False
            End if
            catnumb = pcv_tmpArr(0,ArrayRow)
            catproducts(catnumb) = catproducts(catnumb) & pcv_tmpArr(5,ArrayRow) & ","
            writecatlead = false
            for temprow = lbound(ArrProduct) to (UBound(ArrProduct)-1)
                if Clng(ArrCategory(i))=Clng(catnumb) then
                    maxleadtime = cint(pcv_tmpArr(24,ArrayRow))
                    writecatlead = true
                end if
            next
            if writecatlead and NewCat then%>
                <input type="hidden" ID="CAG<%=catnumb%>LT" value="<%=pcv_tmpArr(24,ArrayRow)%>">                                   
            <%end if
        Next
       
       
       
        LeadDays = maxleadtime
        response.redirect("msgb.asp?message="&LeadDays)
        ShipDate = GetShipDate() %>
       
        <%'RDL Capture ShipDate%>
        <input name="LeadDays" type="hidden" value="<%=leaddays%>">
        <input id="shipdatebuffer" name="shipdatebuffer" type="hidden" value="<%=Shipdate%>">   
        <%session("shipdate") = shipdate           

        '*********** LOOP CATs"




Edited by Fseminario - 27-November-2010 at 6:10pm
Back to Top
Fseminario View Drop Down
Newbie
Newbie


Joined: 27-November-2010
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fseminario Quote  Post ReplyReply Direct Link To This Post Posted: 27-November-2010 at 9:17pm
Figured it out....Thanks anyways.
Back to Top
Brett View Drop Down
Groupie
Groupie
Avatar

Joined: 22-April-2008
Location: Phoenix, AZ
Status: Offline
Points: 89
Post Options Post Options   Thanks (0) Thanks(0)   Quote Brett Quote  Post ReplyReply Direct Link To This Post Posted: 29-November-2010 at 8:34pm
Mind posting the solution if it's simple? I can think of a couple different ways to do this. Thanks
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.078 seconds.