Announcement

Collapse
No announcement yet.

re-order link on order status page

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

    #16
    Re: re-order link on order status page

    I don't see anything that jumps out. Perhaps it is a cookie issue. Do you have the Show Baskets (or similar) module so you can view the active baskets in your store via admin?
    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


      #17
      Re: re-order link on order status page

      I just tried with a different browser and got same results, I do have Mini-Basket Display and Lost and Found Orders, but I didn't see anything in those matching my attempted basket or session ID
      Last edited by josiahjg; 01-30-13, 05:24 AM.

      Comment


        #18
        Re: re-order link on order status page

        Any other ideas on this? I know it is an old function, but would still be nice if we could utilize it in the store.

        Comment


          #19
          Re: re-order link on order status page

          Unless someone else is unable to get the function to work, it would probably be some sort of conflict or cookie issue with your store only. I have 3 stores that it works fine in.
          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


            #20
            Re: re-order link on order status page

            I restored my dev server to the original settings on the Basket Page and still no go, even in a different browser. Not sure how else to trouble shoot it as I only have a limited understanding of the way modules/toolkit works.

            I guess I'll have to find someone to write a module for me!

            Comment


              #21
              Re: re-order link on order status page

              Josiah,

              Per my response via the Sebenza support desk, I think your best bet if you can't get Bill's mod to work is to see if the necessary variables/entities are available on the ORDS screen to pass the attributes to the basket within the link url. (as some have mentioned previously in this thread)

              Dan

              Comment


                #22
                Re: re-order link on order status page

                It looks like (using KSE variables module) That the attribute/option codes ARE in fact available on that page. Below is some of what is spit out. How would we use this in the link? I don't even know where to begin with building that, but I'm sure it is fairly simple.

                Code:
                1450 l.settings:ORDER:ITEMS[1]:CODE &mvt:order:items[1]:code; CCAP
                1451 l.settings:ORDER:ITEMS[1]:FORMATTED_PRICE &mvt:order:items[1]:formatted_price; $7.99
                1452 l.settings:ORDER:ITEMS[1]:FORMATTED_STATUS &mvt:order:items[1]:formatted_status; Shipped
                1453 l.settings:ORDER:ITEMS[1]:FORMATTED_SUBTOTAL &mvt:order:items[1]:formatted_subtotal; $7.99
                1454 l.settings:ORDER:ITEMS[1]:LINE_ID &mvt:order:items[1]:line_id; 31
                1455 l.settings:ORDER:ITEMS[1]:NAME &mvt:order:items[1]:name; Bison® Apple Carabiner
                1456 l.settings:ORDER:ITEMS[1]:OPTIONS[1]:ATTMPAT_ID &mvt:order:items[1]:options[1]:attmpat_id; 0
                1457 l.settings:ORDER:ITEMS[1]:OPTIONS[1]:ATTR_CODE &mvt:order:items[1]:options[1]:attr_code; Color
                1458 l.settings:ORDER:ITEMS[1]:OPTIONS[1]:ATTR_ID &mvt:order:items[1]:options[1]:attr_id; 1229
                1459 l.settings:ORDER:ITEMS[1]:OPTIONS[1]:FORMATTED_PRICE &mvt:order:items[1]:options[1]:formatted_price; $0.00
                1460 l.settings:ORDER:ITEMS[1]:OPTIONS[1]:FORMATTED_SUBTOTAL &mvt:order:items[1]:options[1]:formatted_subtotal; $0.00
                1461 l.settings:ORDER:ITEMS[1]:OPTIONS[1]:LINE_ID &mvt:order:items[1]:options[1]:line_id; 31
                1462 l.settings:ORDER:ITEMS[1]:OPTIONS[1]:OPTION_ID &mvt:order:items[1]:options[1]:option_id; 1240
                1463 l.settings:ORDER:ITEMS[1]:OPTIONS[1]:OPT_CODE &mvt:order:items[1]:options[1]:opt_code; Red
                1464 l.settings:ORDER:ITEMS[1]:OPTIONS[1]:ORDER_ID &mvt:order:items[1]:options[1]:order_id; 33006
                1465 l.settings:ORDER:ITEMS[1]:OPTIONS[1]:PRICE &mvt:order:items[1]:options[1]:price; 0
                1466 l.settings:ORDER:ITEMS[1]:OPTIONS[1]:SUBTOTAL &mvt:order:items[1]:options[1]:subtotal; 0
                1467 l.settings:ORDER:ITEMS[1]:OPTIONS[1]:WEIGHT &mvt:order:items[1]:options[1]:weight; 0
                1468 l.settings:ORDER:ITEMS[1]:OPTIONS[2]:ATTMPAT_ID &mvt:order:items[1]:options[2]:attmpat_id; 0
                1469 l.settings:ORDER:ITEMS[1]:OPTIONS[2]:ATTR_CODE &mvt:order:items[1]:options[2]:attr_code; WebFob
                1470 l.settings:ORDER:ITEMS[1]:OPTIONS[2]:ATTR_ID &mvt:order:items[1]:options[2]:attr_id; 1235
                1471 l.settings:ORDER:ITEMS[1]:OPTIONS[2]:FORMATTED_PRICE &mvt:order:items[1]:options[2]:formatted_price; $0.00
                1472 l.settings:ORDER:ITEMS[1]:OPTIONS[2]:FORMATTED_SUBTOTAL &mvt:order:items[1]:options[2]:formatted_subtotal; $0.00
                1473 l.settings:ORDER:ITEMS[1]:OPTIONS[2]:LINE_ID &mvt:order:items[1]:options[2]:line_id; 31
                1474 l.settings:ORDER:ITEMS[1]:OPTIONS[2]:OPTION_ID &mvt:order:items[1]:options[2]:option_id; 1241
                1475 l.settings:ORDER:ITEMS[1]:OPTIONS[2]:OPT_CODE &mvt:order:items[1]:options[2]:opt_code; Plain
                1476 l.settings:ORDER:ITEMS[1]:OPTIONS[2]:ORDER_ID &mvt:order:items[1]:options[2]:order_id; 33006
                1477 l.settings:ORDER:ITEMS[1]:OPTIONS[2]:PRICE &mvt:order:items[1]:options[2]:price; 0
                1478 l.settings:ORDER:ITEMS[1]:OPTIONS[2]:SUBTOTAL &mvt:order:items[1]:options[2]:subtotal; 0
                1479 l.settings:ORDER:ITEMS[1]:OPTIONS[2]:WEIGHT &mvt:order:items[1]:options[2]:weight; 0
                1480 l.settings:ORDER:ITEMS[1]:OPTIONS[3]:ATTMPAT_ID &mvt:order:items[1]:options[3]:attmpat_id; 3
                1481 l.settings:ORDER:ITEMS[1]:OPTIONS[3]:ATTR_CODE &mvt:order:items[1]:options[3]:attr_code; engrave
                1482 l.settings:ORDER:ITEMS[1]:OPTIONS[3]:ATTR_ID &mvt:order:items[1]:options[3]:attr_id; 1232

                Comment


                  #23
                  Re: re-order link on order status page

                  Yeah, that KSE Variables Module is great huh ;)

                  I am thinking something like this, cooked that up real quick, so please test and alter as need be as it may not be 100%:

                  Code:
                  <mvt:item name="toolkit" param="sassign|count|1" />
                  <mvt:item name="toolkit" param="sassign|countadd|1" />
                  <a target='_blank' href='&mvt:global:sessionurl;&amp;Store_Code=&mvta:store:code;&amp;Screen=BASK&amp;Action=ADPR&amp;Product_Code=&mvta:item:code;&amp;Quantity=1<mvt:foreach iterator="option" array="item:options">&amp;Product_Attributes[&mvt:global:count;]:code=&mvt:option:attr_code;&amp;Product_Attributes[&mvt:global:count;]:value=<mvt:if expr="l.settings:option:option_id">&mvt:option:opt_code;<mvt:elseif expr="NOT ISNULL l.settings:option:data">&mvt:option:data;</mvt:if><mvt:item name="toolkit" param="math_add|count|count|countadd" /></mvt:foreach>'>reorder</a>

                  Comment


                    #24
                    Re: re-order link on order status page

                    Close, got this error
                    Miva Merchant has encountered a fatal error and is unable to continue. The following information may assist you in determining the cause of the error:

                    Error Code: EOF
                    Description: Record not found: MER-DBE-RNT-00018
                    Other Information:

                    Comment


                      #25
                      Re: re-order link on order status page

                      Is the item you are trying to reorder inactive?

                      Comment


                        #26
                        Re: re-order link on order status page

                        It looks like the item code is not even in the link, but the token appears to me to be the same as elsewhere on the page where it does translate. Link looks like this, with a few .... added to session id:

                        Code:
                        /Merchant2/merchant.mvc?Session_ID=1753ce....5d33a0dc2f0e7f587&&Store_Code=01&Screen=BASK&Action=ADPR&Product_Code=&Quantity=1

                        Comment


                          #27
                          Re: re-order link on order status page

                          I'm curious if my stores are the only ones that work. I have CSSUI and MMUI and MySQL and MivaSQL so all systems are covered. Here is the code for the header row on the ORDS, view order layout tab. Make sure Tool Kit is assigned to the ORDS page template. I think that function was added in version 5.225. Could someone else test the code below.

                          Code:
                          <td class="order-reorder">
                          <a href="&mvte:global:secure_sessionurl;Action=NEW&SubScreen=TKORDR&order_id=&mvta:order:id;&Store_Code=&mvta:store:code;">Reorder All</a>
                          </td>
                          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: re-order link on order status page

                            Works on my end.

                            Comment

                            Working...
                            X