Announcement

Collapse
No announcement yet.

toolkit minibask

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

    toolkit minibask

    <mvt:item name="minibask" param="shipping" />

    I would like to use code like this, but would like to limit the output to be for one shipping method only. I currently have two shipping methods installed. Is this possible?

    The help page is here: http://www.emporiumplus.com/v5/minibask.htm

    Thank you
    DiVino Theme

    #2
    Re: toolkit minibask

    Are you using the ToolKit MiniBasket or the Built In One?
    Thanks,

    Rick Wilson
    CEO
    Miva, Inc.
    [email protected]
    https://www.miva.com

    Comment


      #3
      Re: toolkit minibask

      I am using the Toolkit one. You can see how we use it on every page here.

      Thank you
      DiVino Theme

      Comment


        #4
        Re: toolkit minibask

        Yes you should be able to do that. Look for the array that is looping though the shipping methods (in the code)

        You can limit the output like this:

        Code:
        <mvt:if expr="g.pos1 EQ 1">
        
          //display shipping method
        
        </mvt:if>
        Brennan Heyde
        VP Product
        Miva, Inc.
        [email protected]
        https://www.miva.com

        Comment


          #5
          Re: toolkit minibask

          This is a bit beyond me. Can you make a recommendation to how to change the code:

          Code:
          <mvt:if expr="ShowShip GT 0">
          <mvt:if expr="l.settings:minibask:shipping_methods GT 0">
          <mvt:item name="fonts" param="ctgy_font">
          <mvt:if expr="g.basket:cust_id GT 0">
          &mvt:global:basket:ship_state; &mvt:global:basket:ship_zip; &mvt:global:basket:ship_cntry;
          <mvt:else>
          </mvt:if>
          <mvt:foreach iterator="method" array="minibask:shipping">
          &mvt:method:name; (&mvt:method:amount;)
          </mvt:foreach>
          </mvt:item>
          <mvt:else>
          <mvt:if expr="ShowShip EQ 2">
          &mvt:minibask:shipping_prompts;
          <mvt:else>
          <mvt:if expr="ISNULL g.basket:ship_state OR ISNULL g.basket:ship_zip OR ISNULL g.basket:ship_cntry">
          &mvt:minibask:shipping_prompts;
          <mvt:else>
          Shipping:  $0.00
          </mvt:if>
          </mvt:if>
          </mvt:if>
          <mvt:else>
          <a href="&mvt:global:sessionurl;Screen=&mvt:global:Screen;&Category_Code=&mvta:global:Category_Code;&Product_Code=&mvta:global:Product_Code;&Offset=&mvta:global:offset;&Store_Code=&mvta:global:Store_Code;&ShowShip=1">
          Calculate Shipping</a>
          </mvt:if>
          The shipping method I'd like to display is called "Standard Shipping"
          Last edited by gomblue; 08-17-15, 01:40 PM.
          DiVino Theme

          Comment


            #6
            Re: toolkit minibask

            The code above would go inside your foreach loop in the code above:


            Code:
            <mvt:foreach iterator="method" array="minibask:shipping">
            	<mvt:if expr="g.pos1 EQ 1">
            		&mvt:method:name; (&mvt:method:amount;)
            	</mvt:if>
            </mvt:foreach>
            Brennan Heyde
            VP Product
            Miva, Inc.
            [email protected]
            https://www.miva.com

            Comment


              #7
              Re: toolkit minibask

              What does:

              g.pos1 EQ 1

              represent in this case? How do I get it to choose "Standard Shipping"?
              DiVino Theme

              Comment


                #8
                Re: toolkit minibask

                that code makes it so it will only display the first shipping method available. Is that what you were looking for?
                Brennan Heyde
                VP Product
                Miva, Inc.
                [email protected]
                https://www.miva.com

                Comment


                  #9
                  Re: toolkit minibask

                  When I use that code, no rates are displayed.

                  I'd like the first shipping method available to be displayed. I have two shipping methods, but on almost all orders, only one shipping method is allowed (restricted by products in basket).
                  DiVino Theme

                  Comment

                  Working...
                  X