Announcement

Collapse
No announcement yet.

session id's on navbar buttons

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

    session id's on navbar buttons



    ------=_NextPart_000_0157_01C557DC.C2729D00
    Content-Type: text/plain;
    charset="iso-8859-1"
    Content-Transfer-Encoding: 7bit

    Hello,

    Got another quick question. I don't know a whole lot about how session id's
    work, but I know when I hover over the account and checkout buttons, that a
    session id is included in the url. I turned off the stock navbar, created
    my own, and put it in the global header. I just deleted the session id part
    of the url when putting the urls in the href tag, because if I left it in
    there, it would be the same session id every time right? How does the stock
    navbar generate the different session id's every time you hover over it, and
    is it necessary to include them in the new navbar buttons? And if so, how?

    Thanks!

    KC

    ------=_NextPart_000_0157_01C557DC.C2729D00--

    #2
    session id's on navbar buttons



    I do have openUI. Thanks for your detailed response.

    KC

    -----Original Message-----
    From: [email protected]
    [mailto:[email protected]]On Behalf Of Chuck Lasker
    - DoublePlus
    Sent: Friday, May 13, 2005 5:34 PM
    To: 'miva list'
    Subject: RE: [mru] session id's on navbar buttons


    If you have OpenUI, you would make your links with OpenTokens that include
    the session ID. For example, the basket link would be <a
    href="%VAR(g.sessionurl)%Screen=BASK">. If you don't have OpenUI, I
    recommend it if you're wanting anything other than a very basic store. You
    can get the OpenUI on sale at designextend.com.

    <A HREF ="http://www.designextend.com/page/miva/CTGY/SALE">http://www.designextend.com/page/miva/CTGY/SALE</A>

    You also can make your basket and button only show up if there's something
    in the basket, with this conditional code that works with OpenUI:

    %IF(NOTEMPTY)%
    Basket
    %IFEND%

    Same for the checkout button. You can also make your checkout button go to
    the customer information page if they're logged in, and the login page if
    they're not, using this code:

    <A
    HREF="%VAR(g.secure_sessionurl)%Screen=%IF(login)% OINF%IFEND%%IF(notlogin)%L
    OGN&Order=1%IFEND%">Checkout</a>

    As a last thing to mention, you can even put a mini cart into your header or
    category tree using the following OpenUI code:

    %IF(NOTEMPTY)%
    %basket_totalquantity% Item(s) in Basket

    Basket Total: %basket_subtotal%

    Go to Basket / <A
    HREF="%VAR(g.secure_sessionurl)%Screen=%IF(login)% OINF%IFEND%%IF(notlogin)%L
    OGN&Order=1%IFEND%">Checkout</a>
    %IFEND%

    Chuck Lasker
    MerchantHowTo.com
    Miva Merchant Tutorials
    [email protected]

    > -----Original Message-----
    > From: [email protected]
    > [mailto:[email protected]] On Behalf Of
    > Patio & Grill
    > Sent: Friday, May 13, 2005 4:57 PM
    > To: miva list
    > Subject: [mru] session id's on navbar buttons
    >
    > Hello,
    >
    > Got another quick question. I don't know a whole lot about
    > how session id's
    > work, but I know when I hover over the account and checkout
    > buttons, that a
    > session id is included in the url. I turned off the stock
    > navbar, created
    > my own, and put it in the global header. I just deleted the
    > session id part
    > of the url when putting the urls in the href tag, because if
    > I left it in
    > there, it would be the same session id every time right? How
    > does the stock
    > navbar generate the different session id's every time you
    > hover over it, and
    > is it necessary to include them in the new navbar buttons?
    > And if so, how?
    >
    > Thanks!
    >
    > KC
    >


    Comment

    Working...
    X