Announcement

Collapse
No announcement yet.

ADPR Add Product gets confused and errors out if a product is inactive.

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

    ADPR Add Product gets confused and errors out if a product is inactive.

    OK how about this one. Levels Readytheme, Order status page, have this form next to each product in the list

    <form method="post" action="merchant.mvc?Screen=BASK">
    <input type="hidden" name="Action" value="ADPR">
    <input type="hidden" name="Product_Code" value="&mvta:item:code;">
    <input type="hidden" name="Quantity" value="&mvte:item:quantity;">
    <input type="submit" value="Reorder" >
    </form>
    , reorder from old order, and the item is not active, you get
    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:

    Does the ADPR not check inventory or if product active/inactive? the NTFD does check. I should think the ADPR would throw similar errors if a product were not available.

    #2
    Order Items loops don't have any tests for inventory or product status. You could use <mvt:do name="l.return" file="g.Module_Library_DB" value="Runtime_Product_Load_Code( 'product_code', l.product )" /> to test for active and standard level inventory. (If using variants, you'd have to dig out the variant-level functions.)
    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
      Is the reorder link wrapped in this statement?
      Code:
      <mvt:if expr="l.settings:item:reorder EQ 1">
      Matt Zimmermann

      Miva Web Developer
      Alchemy Web Development
      https://www.alchemywebdev.com
      Site Development - Maintenance - Consultation

      Miva Certified Developer
      Miva Professional Developer

      https://www.dev4web.net | Twitter

      Comment


        #4
        matt, no it isn't. Does l.setting.item:reorder eq 1 contain the info Bruce is talking about doing with code?

        Comment


          #5
          Honestly, I'm not sure. I know that is the default code on the page when working in Point-n-Click mode so I thought I would throw it out there.
          Matt Zimmermann

          Miva Web Developer
          Alchemy Web Development
          https://www.alchemywebdev.com
          Site Development - Maintenance - Consultation

          Miva Certified Developer
          Miva Professional Developer

          https://www.dev4web.net | Twitter

          Comment


            #6
            Matt, thank you, I tested <mvt:if expr="l.settings:item:reorder EQ 1"> and it checks if it is active or not. Though it doesn't check for out of stock. But that's okay. It leads me to a new question though, I'll post it as a new topic.

            Comment


              #7
              Just a note to help people find this... this solves ORDS Order Status page reordering product that is inactive error and how to fix it.

              Comment

              Working...
              X