Announcement

Collapse
No announcement yet.

Customer Order Status > Reorder Fatal Error

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

    Customer Order Status > Reorder Fatal Error

    If a product code gets changed, is inactive, or no longer exists, the reorder link on ORDS causes a Fatal Error.

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

    This can probably be fixed with some simple template code to not display the reorder button if the product code doesn't exist or is not found. Some people probably know that changing product codes is a bad idea and should be avoided. Most people probably don't know what issues it may cause.

    Anyway, this should be a simple fix and the theme should be updated.
    Ron Frigon
    Jedi Webmaster Obi-Ron Kenobi

    #2
    If it helps anyone else here's a simple solution:

    Code:
    <mvt:if expr="l.settings:group:product:active">
        <a class="u-font-small u-color-green" href="&mvte:group:restore:link;">Reorder</a>
    </mvt:if>
    Ron Frigon
    Jedi Webmaster Obi-Ron Kenobi

    Comment


      #3
      Ron Frigon That was actually updated in Shadows version 10.05.00

      Here is the link to the fix in within the current Shadows Framework:

      https://github.com/mivaecommerce/sha....mvt#L138-L140
      Last edited by Nick; 10-05-23, 01:13 PM.
      Nicholas Adkins
      Technical Training Specialist / Miva, Inc.
      [email protected]
      https://www.miva.com/mivalearn

      Comment


        #4
        Thanks for that Nick. Do you have a link for the 10.05.00, and later, template changes? The app store page only lists up to 10.04.00.
        Ron Frigon
        Jedi Webmaster Obi-Ron Kenobi

        Comment


          #5
          Yes you can find the templates starting at version 10 (when Shadows was added to the software) here: https://github.com/mivaecommerce/shadows
          Nicholas Adkins
          Technical Training Specialist / Miva, Inc.
          [email protected]
          https://www.miva.com/mivalearn

          Comment

          Working...
          X