Announcement

Collapse
No announcement yet.

Dropshipping

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

    #16
    Re: Dropshipping

    I think I'm putting the "existing code" in the wrong place. If I use the code I mentioned above, when I am not logged in - no shipping rates display at all. Since the snippet has NE (not equal) shouldn't the existing methods be placed before the <mvt:else>?
    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


      #17
      Re: Dropshipping

      Take out the <mvt:else>
      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


        #18
        Re: Dropshipping

        Okay - I took out the <mvt:else> and the shipping methods show and so does the drop ship...think I'll revisit this in the morning...
        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


          #19
          Re: Dropshipping

          When I take out the <mvt:else> the Drop Shipping rate shows up as one of the shipping methods - it's not picking up the restrictions from

          Code:
          <mvt:if expr="(l.settings:method:code NE 'Wholesale Shipping') OR (l.settings:method:code NE 'Drop Shipping')">
          So I went to look and see what the shipping method actually "looks" like when generated

          Code:
          <input name="ShippingMethod" value="flatrate:Drop Shipping" type="radio"> Drop Shipping ($10.00)
          So my question is, do I change 'Drop Shipping' to 'flatrate:Drop Shipping'?
          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


            #20
            Re: Dropshipping

            FYI - here is the complete code that I am trying to use:

            Code:
            <mvt:comment> Price Group Conditional </mvt:comment>
            <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:elseif expr="l.settings:customer_pgroup:name EQ 'Dropship'">
            <mvt:item name="toolkit" param="sassign|drop|1" />
            </mvt:if>
            
            
            </mvt:foreach>
            </mvt:if>
            
            <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:else>
            
                                    <mvt:if expr="ISNULL l.settings:shippingmethods">
                            <mvt:if expr="ISNULL l.settings:fallbackshippingmethod">
                                                Unable to Calculate Shipping Costs
                                            <mvt:else>
                                                &mvt:fallbackshippingmethod:name; (&mvt:fallbackshippingmethod:formatted_price;)
                          </mvt:if>
                        <mvt:else>
                            <mvt:foreach array="shippingmethods" iterator="method">
            <mvt:if expr="(l.settings:shippingmethod:code NE 'flatrate:Wholesale Shipping') OR (l.settings:shippingmethod:code NE 'flatrate: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>
                        </mvt:if>
                                </div>
                                <mvt:if expr="ISNULL l.settings:shippingmethods">
                                    <span class="bold">No valid shipping methods are available for your order.  You will be contacted regarding shipping when your order is processed.</span>
                                </mvt:if>
            What am I doing wrong?

            Thanks,
            Leslie
            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


              #21
              Re: Dropshipping

              You list the two based on price group status before the foreach even begins.

              Then in the foreach loop you list only those methods which are not wholesale or drop.

              shippingmethod:code does not include the word "flatrate"
              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


                #22
                Re: Dropshipping

                So I have to manually create the list of all of the shipping methods? I can no longer use the dynamic coding?
                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


                  #23
                  Re: Dropshipping

                  No. Just the first two. Then the foreach loop evaluates all methods and displays eligible. The conditional is that if they are drop or wholesale, don't even both showing those because they were displayed before the foreach loop if the customer was eligible.
                  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


                    #24
                    Re: Dropshipping

                    Okay - I am beyond confused now. The code before I changed it seemed to be as you have described, but it is still displaying the Drop Shipping rate if someone is not logged in along with all the other shipping methods.
                    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


                      #25
                      Re: Dropshipping

                      Did you wrap the first two in a conditional that tests if the global variable drop or wholesale existed? That was the purpose of testing for price group. The testing for price group and display of the two methods is supposed to happen before the foreach loop even begins. Those are the flatrate methods those customers see so they never change for those two groups.
                      Last edited by wcw; 03-04-13, 07:07 AM.
                      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


                        #26
                        Re: Dropshipping

                        Well, I thought I did, but like I said, I'm so confused that's why I posted my code...
                        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


                          #27
                          Re: Dropshipping

                          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
                          <mvt:if expr="g.whole EQ 1"> 
                          <input name="ShippingMethod" value="flatrate:Wholesale Shipping" type="radio"> Wholesale Shipping ($18.00)<br>
                          </mvt:if>
                          <mvt:if expr="g.drop EQ 1">
                          <input name="ShippingMethod" value="flatrate:Drop Shipping" type="radio"> Drop Shipping ($10.00)<br>
                          </mvt:if>
                          
                          // test all the non-PG methods and display them
                          <mvt:foreach array="shippingmethods" iterator="method">
                          <mvt:if expr="(l.settings:shippingmethod:code NE 'flatrate:Wholesale Shipping') OR (l.settings:shippingmethod:code NE 'flatrate: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>
                                      
                          // PG customer sees all methods but their special methods are first
                          // non-PG customer only sees the non=PG methods
                          There is also a bit of logic that you could use to force their PG method to be checked on initial start. In either event, they would still show as first in the list of radio choices; selected or not.
                          Last edited by wcw; 03-04-13, 07:25 AM.
                          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


                            #28
                            Re: Dropshipping

                            That's what I've got except, I've also got the Unable to Calculate in mine.


                            Code:
                             <mvt:if expr="ISNULL l.settings:fallbackshippingmethod">
                                                                Unable to Calculate Shipping Costs
                                                            <mvt:else>
                                                                &mvt:fallbackshippingmethod:name; (&mvt:fallbackshippingmethod:formatted_price;)
                                          </mvt:if>
                                        <mvt:else>
                            I'll try yours without the "Unable" portion.
                            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


                              #29
                              Re: Dropshipping

                              You would add that in after you get the basics working.
                              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


                                #30
                                Re: Dropshipping

                                I changed the code to this:

                                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 -->
                                <mvt:if expr="g.whole EQ 1">
                                <input name="ShippingMethod" value="flatrate:Wholesale Shipping" type="radio"> Wholesale Shipping ($18.00)<br>
                                </mvt:if>
                                <mvt:if expr="g.drop EQ 1">
                                <input name="ShippingMethod" value="flatrate:Drop Shipping" type="radio"> Drop Shipping ($10.00)<br>
                                </mvt:if>
                                
                                <!-- // test all the non-PG methods and display them -->
                                <mvt:foreach array="shippingmethods" iterator="method">
                                <mvt:if expr="(l.settings:shippingmethod:code NE 'flatrate:Wholesale Shipping') OR (l.settings:shippingmethod:code NE 'flatrate: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>
                                It's still displaying the Drop Shipping to non-price group customers (I even checked in another browser just in case I had some weird caching going on).

                                Leslie
                                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

                                Working...
                                X