Announcement

Collapse
No announcement yet.

Basket Not Empty Conditional

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

  • Basket Not Empty Conditional



    I am trying to create a mini mini basket - just an indicator that the shopper has something in their basket. There is no room in the design to use a product like Weiland's mini basket. This is the display:

    -------------------------
    Your current shopping basket total: &mvt:basket:formatted_total;
    ------------------------

    but I only want it to display in the space provided, when something is in the basket otherwise I just want a blank space.

    I need to use something like:

    ---------------------------------------
    <mvt:if expr="NOT l.settings:basket:empty">
    Your current shopping basket total:&mvt:basket:formatted_total;
    <mvt:else>*
    </mvt:if>
    --------------------------------------

    but the "NOT" part doesn't work. Any suggestions?

    Also, is there a variable which shows the total number of items in a basket? I couldn't find one.

    Thanks



    Pete



    ______________________________________________

    Pete McNamara
    Internet Marketing Engine
    http://internetmarketingengine.com





  • Basket Not Empty Conditional



    On 5/7/05, Peter McNamara <[email protected]> wrote:
    > I am trying to create a mini mini basket - just an indicator that the sho=
    pper has something in their basket. There is no room in the design to use =
    a product like Weiland's mini basket. This is the display:
    >=20
    > -------------------------
    > Your current shopping basket total: &mvt:basket:formatted_total;
    > ------------------------
    >=20
    > but I only want it to display in the space provided, when something is in=
    the basket otherwise I just want a blank space.
    >=20
    > I need to use something like:
    >=20
    > ---------------------------------------
    > <mvt:if expr=3D"NOT l.settings:basket:empty">
    > Your current shopping basket total:&mvt:basket:formatted_total;
    > <mvt:else>*
    > </mvt:if>
    > --------------------------------------
    >=20
    > but the "NOT" part doesn't work. Any suggestions?

    Then reverse the question.
    ---------------------------------------
    <mvt:if expr=3D"l.settings:basket:empty">
    *
    <mvt:else>
    Your current shopping basket total:&mvt:basket:formatted_total;
    </mvt:if>
    > --------------------------------------

    =20
    > Also, is there a variable which shows the total number of items in a bask=
    et? I couldn't find one.
    >=20
    > Thanks
    >=20
    > Pete
    >=20
    > ______________________________________________
    >=20
    > Pete McNamara
    > Internet Marketing Engine
    > http://internetmarketingengine.com
    >=20

    Comment


    • Basket Not Empty Conditional



      I tried that first - and it didn't work. However, I just tried it again and found out why - I had forgotten to check the basket item on the storefront page so every time I went to that page I saw the text "Your current shopping basket total:" and assumed it didn't work. Asleep at the switch, I guess.

      Thanks for your assistance.

      Also, can I assume there is no variable which shows the total number of items in a basket?



      Pete


      At 09:49 AM 8/05/2005, you wrote:
      >On 5/7/05, Peter McNamara <[email protected]> wrote:
      >> I am trying to create a mini mini basket - just an indicator that the shopper has something in their basket. There is no room in the design to use a product like Weiland's mini basket. This is the display:
      >>
      >> -------------------------
      >> Your current shopping basket total: &mvt:basket:formatted_total;
      >> ------------------------
      >>
      >> but I only want it to display in the space provided, when something is in the basket otherwise I just want a blank space.
      >>
      >> I need to use something like:
      >>
      >> ---------------------------------------
      >> <mvt:if expr="NOT l.settings:basket:empty">
      >> Your current shopping basket total:&mvt:basket:formatted_total;
      >> <mvt:else>*
      >> </mvt:if>
      >> --------------------------------------
      >>
      >> but the "NOT" part doesn't work. Any suggestions?
      >
      >Then reverse the question.
      >---------------------------------------
      ><mvt:if expr="l.settings:basket:empty">
      >*
      ><mvt:else>
      >Your current shopping basket total:&mvt:basket:formatted_total;
      ></mvt:if>
      >> --------------------------------------
      >
      >
      >> Also, is there a variable which shows the total number of items in a basket? I couldn't find one.



      ______________________________________________

      Pete McNamara
      Internet Marketing Engine
      http://internetmarketingengine.com




      Comment


      • Basket Not Empty Conditional



        On 5/7/05, Pete McNamara <[email protected]> wrote:
        > I tried that first - and it didn't work. However, I just tried it again=
        and found out why - I had forgotten to check the basket item on the storef=
        ront page so every time I went to that page I saw the text "Your current sh=
        opping basket total:" and assumed it didn't work. Asleep at the switch, I =
        guess.
        >=20
        > Thanks for your assistance.

        Happy to help. Sounds like you can use the NOT form now tho' :)
        =20
        > Also, can I assume there is no variable which shows the total number of i=
        tems in a basket?

        I leave that one to others. My only access (so far) is via the admin demo =
        ;)
        =20
        > Pete
        >=20
        >=20
        > At 09:49 AM 8/05/2005, you wrote:
        > >On 5/7/05, Peter McNamara <[email protected]> wrote:
        > >> I am trying to create a mini mini basket - just an indicator that the =
        shopper has something in their basket. There is no room in the design to u=
        se a product like Weiland's mini basket. This is the display:
        > >>
        > >> -------------------------
        > >> Your current shopping basket total: &mvt:basket:formatted_total;
        > >> ------------------------
        > >>
        > >> but I only want it to display in the space provided, when something is=
        in the basket otherwise I just want a blank space.
        > >>
        > >> I need to use something like:
        > >>
        > >> ---------------------------------------
        > >> <mvt:if expr=3D"NOT l.settings:basket:empty">
        > >> Your current shopping basket total:&mvt:basket:formatted_total;
        > >> <mvt:else>*
        > >> </mvt:if>
        > >> --------------------------------------
        > >>
        > >> but the "NOT" part doesn't work. Any suggestions?
        > >
        > >Then reverse the question.
        > >---------------------------------------
        > ><mvt:if expr=3D"l.settings:basket:empty">
        > >*
        > ><mvt:else>
        > >Your current shopping basket total:&mvt:basket:formatted_total;
        > ></mvt:if>
        > >> --------------------------------------
        > >
        > >
        > >> Also, is there a variable which shows the total number of items in a b=
        asket? I couldn't find one.
        >=20
        > ______________________________________________
        >=20
        > Pete McNamara
        > Internet Marketing Engine
        > http://internetmarketingengine.com
        >=20
        >=20


        --=20
        Bill Guindon (aka aGorilla)


        Comment

        Working...
        X

        This website uses cookies to identify visitors, track visitors to our website, store login session information and to remember your user preferences. By continuing to use this site you agree to our use of cookies. Learn More.

        This website uses cookies. By continuing to use this site you agree to our use of cookies. Learn More.

        Accept