Announcement

Collapse
No announcement yet.

EmporiumPlus Toolkit pastorders function

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

    EmporiumPlus Toolkit pastorders function

    For some reason pastorders function has gone a bit haywire on a MMUI to CSSUI store. All of the past orders are being pulled up and displayed perfectly but the Reorder link that can be added to the INVC page is the malfunctioning item. When it's clicked it will add multiplies of the first item of that invoice and ignores everything else.

    Is there a way to convert the built in Order Status to have a single re-order button instead of needing to go through and reorder line by line? If that option were available then I wouldn't need to worry about figuring out what is wrong with the Toolkit pastorders function.

    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

    #2
    It should be easy to get into that template and convert the ADPR to ADPM, no?
    Bruce Golub
    Phosphor Media - "Your Success is our Business"

    Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
    phosphormedia.com

    Comment


      #3
      I discovered something about the Order Status page - it doesn't offer a true reorder from that page. It takes you to the product page - that sucks even more....
      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


        #4
        Hey Leslie,

        This doesn't do the Add Multiple that you're looking for... But it does add to cart from Order History, (ORDS), with attributes, per line item.

        Code:
        <mvt:if expr="l.settings:item:reorder EQ 1">
          <form method="POST" action="&mvte:global:secure_sessionurl;">
            <input type="hidden" name="Screen" value="BASK" />
            <input type="hidden" name="Action" value="ADPR" />
            <input type="hidden" name="Product_Code" value="&mvte:item:code;" />
            <input type="hidden" name="Quantity" value="&mvte:item:quantity;" />
            <input type="hidden" name="Store_Code" value="&mvte:global:store_code;" />
            <mvt:item name="toolkit" param="sassign|nbr_attr|0" />
            <mvt:foreach iterator="option" array="item:options">
              <mvt:item name="toolkit" param="counter|nbr_attr" />
              <input type="hidden" name="Product_Attributes[&mvte:global:nbr_attr;]:code" value="&mvte:option:attr_code;" />
              <mvt:if expr="l.settings:option:opt_code"> 
              <input type="hidden" name="Product_Attributes[&mvte:global:nbr_attr;]:value" value="&mvte:option:opt_code;" />
              <mvt:elseif expr="l.settings:option:data">
                <mvt:comment>Strip out new lines and carriage returns</mvt:comment>
                <mvt:assign name="l.settings:option:data" value="glosub(l.settings:option:data, asciichar( 10 ), '')" />
                <mvt:assign name="l.settings:option:data" value="glosub(l.settings:option:data, asciichar( 13 ), '')" />
              <input type="hidden" name="Product_Attributes[&mvte:global:nbr_attr;]:value" value="&mvte:option:data;" />
              <mvt:elseif expr="l.settings:option:opt_data_long">
              <input type="hidden" name="Product_Attributes[&mvte:global:nbr_attr;]:value" value="&mvte:option:opt_data_long;" />
              <mvt:else>
                <input type="hidden" name="Product_Attributes[&mvte:global:nbr_attr;]:value" value="1" />        
              </mvt:if>
            </mvt:foreach>    
              <input type="submit" value="Add To Cart" class="btn btn-default" />
          </form>
        <mvt:else>
        &nbsp; 
        </mvt:if>
        It's a bit of a hack, but it works and may get you in the right direction.

        Ron
        Ron Frigon
        Jedi Webmaster Obi-Ron Kenobi

        Comment


          #5
          Thanks Ron. I think I'm also going to open a support ticket to see what might be wrong with the Toolkit (not that it can be fixed).
          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


            #6
            64. Use pastorders (deprecated)

            NOTE: The past orders and reorder function are obsolete beginning with the Core 18 update. Miva Merchant includes an excellent order history and reorder function built-in beginning with the Core 18 version. Additionally, this reorder function will no longer determine in-stock status if your inventory is set at the attribute level. If you have been using the Tool Kit for this, you need to implement the built-in order history and reorder system.
            Ron Frigon
            Jedi Webmaster Obi-Ron Kenobi

            Comment


              #7
              Well, the built-in reorder system sucks. It's nothing like what the Toolkit could do. It was a simple link that gets added to the INVC page and is a one-click reorder. It was working perfectly on an up to date MMUI site but when the site was converted to CSSUI things started getting wonky.

              FWIW - it looks like Miva hasn't updated the Description http://apps.miva.com/emporium-plus-tool-kit.html
              ​​​​​​55. Use pastorders to display a list of a customer's past orders when they are logged in.

              Bill used to always tell us to go to the module's product page description for the most up to date tokens and usage. I quit looking in the module's admin screen years ago.
              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


                #8
                ps...Ron, thanks for the snippet - it's truly appreciated.
                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


                  #9
                  You're welcome Leslie. Hopefully it's somewhat helpful...
                  Ron Frigon
                  Jedi Webmaster Obi-Ron Kenobi

                  Comment

                  Working...
                  X