Announcement

Collapse
No announcement yet.

Dropshipping

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

    #46
    Re: Dropshipping

    but it does...
    Leslie Kirk
    Miva Certified Developer
    Miva Merchant Specialist since 1997
    Previously of Webs Your Way
    (aka Leslie Nord leslienord)

    Email me: [email protected]
    www.lesliekirk.com

    Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

    Comment


      #47
      Re: Dropshipping

      The iterator is method. Fix that in the conditional.
      Last edited by wcw; 03-04-13, 02:34 PM.
      Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
      Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
      Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
      Facebook http://www.facebook.com/EmporiumPlus
      Twitter http://twitter.com/emporiumplus

      Comment


        #48
        Re: Dropshipping

        Oh - this

        Code:
        <mvt:if expr="(l.settings:method:code NE 'Wholesale Shipping') AND (l.settings:method:code NE 'Drop Shipping')">
        when I change that - it displays correctly when not logged in. But when logged in - it shows all the methods available.
        Last edited by lesliekirk; 03-04-13, 02:44 PM.
        Leslie Kirk
        Miva Certified Developer
        Miva Merchant Specialist since 1997
        Previously of Webs Your Way
        (aka Leslie Nord leslienord)

        Email me: [email protected]
        www.lesliekirk.com

        Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

        Comment


          #49
          Re: Dropshipping

          The iterator is what goes in the variable. You have shippingmethod:code. It should be method:code.
          <mvt:if expr="(l.settings:shippingmethod:code NE 'flatrate:Wholesale Shipping') AND (l.settings:shippingmethod:code NE 'flatrate:Drop Shipping')">
          Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
          Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
          Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
          Facebook http://www.facebook.com/EmporiumPlus
          Twitter http://twitter.com/emporiumplus

          Comment


            #50
            Re: Dropshipping

            Yup, I caught that. Now to figure out how to only show the Drop Shipping method when logged in.
            Leslie Kirk
            Miva Certified Developer
            Miva Merchant Specialist since 1997
            Previously of Webs Your Way
            (aka Leslie Nord leslienord)

            Email me: [email protected]
            www.lesliekirk.com

            Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

            Comment


              #51
              Re: Dropshipping

              I "think" I got it.

              Code:
              <!-- // see if customer is in PG -->
              <mvt:item name="toolkit" param="pgroup|pcount" />
              <mvt:if expr="g.pcount GT 0">
              <mvt:foreach iterator="customer_pgroup" array="customer_pgroups">
              <mvt:if expr="l.settings:customer_pgroup:name EQ 'Wholesale'">
              <mvt:item name="toolkit" param="sassign|whole|1" />
              </mvt:if>
              <mvt:if expr="l.settings:customer_pgroup:name EQ 'Dropship'">
              <mvt:item name="toolkit" param="sassign|drop|1" />
              </mvt:if>
              </mvt:foreach>
              </mvt:if>
              
              <!-- // assign method if in PG -->
              <!-- // assign method if in PG -->
              <mvt:if expr="g.whole EQ 1">
              <input name="ShippingMethod" value="flatrate:Wholesale Shipping" type="radio"> Wholesale Shipping ($18.00)<br>
              <mvt:elseif expr="g.drop EQ 1">
              <input name="ShippingMethod" value="flatrate:Drop Shipping" type="radio"> Drop Shipping ($10.00)<br>
              
              <mvt:elseif expr="(l.settings:customer_pgroup:name NE 'Wholesale' OR l.settings:customer_pgroup:name EQ 'Dropship')">
              
              <!-- // test all the non-PG methods and display them -->
              <mvt:foreach array="shippingmethods" iterator="method">
              
              <mvt:if expr="(l.settings:method:code NE 'Wholesale Shipping') AND (l.settings:method:code NE 'Drop Shipping')">
              <mvt:if expr="ISNULL g.ShippingMethod AND pos1 EQ 1">
              <input type="radio" name="ShippingMethod" value="&mvte:method:module;:&mvte:method:code;" checked="checked" /> &mvt:method:name; (&mvt:method:formatted_price;)<br />
              <mvt:elseif expr="g.ShippingMethod EQ (l.settings:method:module $ : $ l.settings:method:code)">
              <input type="radio" name="ShippingMethod" value="&mvte:method:module;:&mvte:method:code;" checked="checked" /> &mvt:method:name; (&mvt:method:formatted_price;)<br />
              <mvt:else>
              <input type="radio" name="ShippingMethod" value="&mvte:method:module;:&mvte:method:code;" /> &mvt:method:name; (&mvt:method:formatted_price;)<br />
              </mvt:if>
              </mvt:if>
              
              </mvt:foreach>
               </mvt:if>
              I made the change Bill pointed out and added the mvt:elseif Bruce suggested. I'm testing now and so far it "seems" to be working. I'll do a couple more tests and follow up here.
              Leslie Kirk
              Miva Certified Developer
              Miva Merchant Specialist since 1997
              Previously of Webs Your Way
              (aka Leslie Nord leslienord)

              Email me: [email protected]
              www.lesliekirk.com

              Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

              Comment


                #52
                Re: Dropshipping

                If g.world or g.drop don't even show the foreach loop.
                Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
                Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
                Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
                Facebook http://www.facebook.com/EmporiumPlus
                Twitter http://twitter.com/emporiumplus

                Comment

                Working...
                X