Miva Merchant Community Forums

Page 3 of 3 FirstFirst 1 2 3
  1. #21
    Join Date
    Sep 2006
    Posts
    1,967

    Default 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
    Dan
    Over 16 years in the Miva Merchant community.

    Glendale Designs
    Miva Merchant Store Design, Development, SEO/SEM & Consulting
    http://www.glendaledesigns.com

    Kemper Strategic
    http://www.kemperstrategic.com

  2. #22
    Join Date
    Apr 2007
    Posts
    153

    Default 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

  3. #23
    Join Date
    Sep 2006
    Posts
    1,967

    Default 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>
    Dan
    Over 16 years in the Miva Merchant community.

    Glendale Designs
    Miva Merchant Store Design, Development, SEO/SEM & Consulting
    http://www.glendaledesigns.com

    Kemper Strategic
    http://www.kemperstrategic.com

  4. #24
    Join Date
    Apr 2007
    Posts
    153

    Default 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:

  5. #25
    Join Date
    Sep 2006
    Posts
    1,967

    Default Re: re-order link on order status page

    Is the item you are trying to reorder inactive?
    Dan
    Over 16 years in the Miva Merchant community.

    Glendale Designs
    Miva Merchant Store Design, Development, SEO/SEM & Consulting
    http://www.glendaledesigns.com

    Kemper Strategic
    http://www.kemperstrategic.com

  6. #26
    Join Date
    Apr 2007
    Posts
    153

    Default 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

  7. #27
    Join Date
    Mar 2006
    Posts
    10,875

    Default 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>

  8. #28
    Join Date
    Sep 2006
    Posts
    1,967

    Default Re: re-order link on order status page

    Works on my end.
    Dan
    Over 16 years in the Miva Merchant community.

    Glendale Designs
    Miva Merchant Store Design, Development, SEO/SEM & Consulting
    http://www.glendaledesigns.com

    Kemper Strategic
    http://www.kemperstrategic.com

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •