Announcement

Collapse
No announcement yet.

Dynamic Category Tree

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Dynamic Category Tree



    ------=_NextPart_000_01B1_01C4A73A.551ECC40
    Content-Type: text/plain;
    charset="us-ascii"
    Content-Transfer-Encoding: 7bit

    Evening Everybody
    I have a static Category Tree at the moment that I have inserted in my
    OpenUI 4.9/MM 4.23 left column. I have unchecked the default category tree
    and inserted my own HTML. What I need now is for when a "wholesaler"
    (Availability Group) logs in. I need the additional categories links to show
    up in the category tree.

    Understanding that my current setup is inadequate, how can I dynamically add
    these "hidden" categories? Or is there another option to allow this
    Availability Group see them?

    The site is at
    <A HREF ="http://www.everygoodgift.com/Merchant2/merchant.mvc?Screen=CTGY">http://www.everygoodgift.com/Merchant2/merchant.mvc?Screen=CTGY</A>
    <<A HREF ="http://www.everygoodgift.com/Merchant2/merchant.mvc?Screen=CTGY&Category_Co">http://www.everygoodgift.com/Merchant2/merchant.mvc?Screen=CTGY&Category_Co</A>
    de=14OZ> &Category_Code=14OZ

    (Please disregard the misplacement of the logo. It's a CSS floater and IE
    isn't rendering properly)

    Thank you.
    Christina Hawkins
    <<A HREF ="http://www.globalspex.com/> http://www.globalspex.com ">http://www.globalspex.com/> http://www.globalspex.com </A>


    ------=_NextPart_000_01B1_01C4A73A.551ECC40--

    #2
    Dynamic Category Tree



    Christina,

    Here is the OpenToken code you can put below your HTML menu. This code
    checks first to get the ID of your wholesale Availability Group then checks
    to see if the current customer is assigned to the group.

    If you put this code under your HTML category tree don't forget to put the
    %OUI% at the top of the text area in the admin and remove it from it's
    location below.

    The sample below is based on your wholesale Availability Group being named
    "wholesale". If yours is actually named something else then change the value
    in the %SET(MY_AVGROUP_NAME|...)% token.

    If the customer is assigned to the Availability Group then the variable
    g.IS_WHOLESALE_CUST is set to 1, and if not is if set to 0.

    Simply add your Wholesale Specific HTML menu between the last IF statement.

    %OUI%
    %SET(g.MY_AVGROUP_ID|0)%
    %SET(g.MY_AVGROUP_NAME|wholesale)%

    %FUNC(AvailabilityGroup_Find_Name(g.MY_AVGROUP_NAM E))%

    %SET(g.MY_AVGROUP_ID|%VAR(g.OUIX_FuncReturn)%)%

    %IF(g.MY_AVGROUP_ID)%

    %FUNC(AvailabilityGroupXCustomer_Find(g.MY_AVGROUP _ID,BasketList.d.cust_id))
    %
    %IF(g.OUIX_FuncReturn)%
    %SET(g.IS_WHOLESALE_CUST|1)%
    %ELSE%
    %SET(g.IS_WHOLESALE_CUST|0)%
    %IFEND%
    %IFEND%

    %IF(g.IS_WHOLESALE_CUST)%
    Output Some Data
    %IFEND%


    Hope this makes sense. It works great in my test store.


    Jaye E. Miller
    OpenUI Developer Consortium
    <A HREF ="http://www.openui.org/">http://www.openui.org/</A>

    Get over $300 worth of modules for only $89.95! Configure and change almost
    ANY HTML that your shopper's see!
    <A HREF ="http://www.mvcool.com/openui/?product=OPENUI-DESIGN ">http://www.mvcool.com/openui/?product=OPENUI-DESIGN </A>



    -----Original Message-----
    From: [email protected] [mailto:[email protected]]
    On Behalf Of Christina
    Sent: Thursday, September 30, 2004 10:11 PM
    To: [email protected]
    Subject: [mru] Dynamic Category Tree

    Evening Everybody
    I have a static Category Tree at the moment that I have inserted in my
    OpenUI 4.9/MM 4.23 left column. I have unchecked the default category tree
    and inserted my own HTML. What I need now is for when a "wholesaler"
    (Availability Group) logs in. I need the additional categories links to show
    up in the category tree.

    Understanding that my current setup is inadequate, how can I dynamically add
    these "hidden" categories? Or is there another option to allow this
    Availability Group see them?

    The site is at
    <A HREF ="http://www.everygoodgift.com/Merchant2/merchant.mvc?Screen=CTGY">http://www.everygoodgift.com/Merchant2/merchant.mvc?Screen=CTGY</A>
    <<A HREF ="http://www.everygoodgift.com/Merchant2/merchant.mvc?Screen=CTGY&Category_Co">http://www.everygoodgift.com/Merchant2/merchant.mvc?Screen=CTGY&Category_Co</A>
    de=14OZ> &Category_Code=14OZ

    (Please disregard the misplacement of the logo. It's a CSS floater and IE
    isn't rendering properly)

    Thank you.
    Christina Hawkins
    <<A HREF ="http://www.globalspex.com/> http://www.globalspex.com ">http://www.globalspex.com/> http://www.globalspex.com </A>



    Comment

    Working...
    X