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

  • kayakbabe
    replied
    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.

    Leave a comment:


  • kayakbabe
    replied
    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.

    Leave a comment:


  • Matt Zimmermann
    replied
    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.

    Leave a comment:


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

    Leave a comment:


  • Matt Zimmermann
    replied
    Is the reorder link wrapped in this statement?
    Code:
    <mvt:if expr="l.settings:item:reorder EQ 1">

    Leave a comment:


  • Bruce - PhosphorMedia
    replied
    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.)

    Leave a comment:


  • 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.
Working...
X