Results 1 to 10 of 649

Hybrid View

  1. #1
    Join Date
    Sep 2008
    Posts
    22
    Plugin Contributions
    0

    Default Re: Return Authorization Module (RMA)

    THANK YOU THANK YOU
    rbarbour

    The code below (mostly html) I placed in my tpl_returns_default.php
    it brings back an rma# like below after the submission of the form.
    Your RMA# is: 105309-31-5232013
    (invoice no)-(random)-(date)


    PHP Code:
    <!-- HERE-->
    <?php
      
    if (isset($_GET['action']) && ($_GET['action'] == 'success')) {
    ?>
    <br class="clearBoth" />

    <div class="mainContent success"><!--HERE--><?php echo 'Your Invoice Order No.# is: '$order_number $_GET['order_id']; echo $order_number;?><h1> 
    <BR><font size="4"><BR>Your RMA number is listed below.
    <BR><BR>Please include the RMA No. on the outside of the box&nbsp; to prevent delays in your RMA request. 
    <BR><BR>Please read the 
    <a target="_blank" href="/index.php?main_page=shippinginfo#returns">RMA Return Policy</a>.
    </font>
    <div align="center"></H1><BR><BR><BR><BR>
    <table border="0" width="60%" bgcolor="#FFFFCC">
    <tr>
    <td>
    <i>
    <h3 align="center"><font color="#008000">Return the package to this address:</font><br>
    &nbsp;Healthy Symptoms, inc.
    <br>
    789 Any Street Unit 129 <br>
    Port, Florida 34688
    <br>
    800-220-3130</h3>
    <p align="center"><a target="_blank" href="/index.php?main_page=shippinginfo#returns">RMA RETURN POLICY</font></a> listed here.<br>
    &nbsp;</H3>
    </font>
    </i>
    </p>
    </td>
    </tr>
    </table>
    </div>
    </i>
    <BR><BR><BR>
    <table width="100%" border="0" cellpadding="0" cellspacing="0" id="prevOrders">
    <caption><h2><?php echo 'Your RMA# is: '$order_number $_GET['order_id']; echo $order_number;?>-<?php
    srand
    (5);
    echo(
    rand(110));
    echo(
    rand(110));
    ?>-<script language="javascript">
    <!--  
    today = new Date().add({days: 31});  
    document.write("", today.getMonth()+1,"",today.getDate(),"",today.getFullYear());  
    //document.write("", today.getMonth()+1,"/",today.getDate(),"/",today.getFullYear());  //-->
    </script> 

    </h2></caption>
        <tr class="tableHeading">
        <th scope="col">Please read the RMA return policy before mailing package.</th>
      </tr>
    </table> 
    <!--HERE--></div>

    <?php
      
    } else {
    ?>

    <?php if (DEFINE_RETURNS_STATUS >= '1' and DEFINE_RETURNS_STATUS <= '2') { ?>
    <div id="pageThreeMainContent">
    <?php  
    /**
     * require html_define for the Returns page
     */
    require($define_page);
    ?>
    </div>
    <br class="clearBoth" />
    <?php ?>

    <?php if ($messageStack->size('returns') > 0) echo $messageStack->output('returns'); ?>
    <div class="content">
    <h1> 
    <BR>
    <BR><BR>Please complete ALL information below to prevent delays in your RMA request. 
    <BR><BR>Please read the RMA Return Policy.
    <div align="center"></H1><BR><BR><BR><BR>
    <table border="0" width="60%" bgcolor="#FFFFCC">
    <tr>
    <td>
    <i>
    <h3 align="center">To obtain an RMA No.<br>complete this form.</h3>
    <p align="center"><a target="_blank" href="/index.php?main_page=shippinginfo#returns">RMA RETURN POLICY</font></a> listed here.</H3>
    </font>
    </i>
    </p>
    <p>&nbsp;</td>
    </tr>
    </table>
    </div>
    </i>
    <table width="100%" border="0" cellpadding="0" cellspacing="0" id="prevOrders">
    <caption><h2>&nbsp;</h2></caption>
        <tr class="tableHeading">
        <th scope="col">Submit this form to receive your RMA number.</th>
      </tr>
    </table>
    <!--HERE-->


    <fieldset id="personal">
    <legend><?php echo CONTACT_INFORMATION?></legend>

    I kept getting errors when I included the address code in the success section so I removed it:
    Code:
    <?php if (RETURN_STORE_NAME_ADDRESS == 'true') { ?>
    <address><?php echo nl2br(STORE_NAME_ADDRESS); ?></address>
    <?php } ?>

  2. #2
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Return Authorization Module (RMA)

    Your very welcome,

    As far as the address code, you shouldn't have to display it within the success statement, it should automatically be there as long as your admin value = true

  3. #3
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Return Authorization Module (RMA)

    I see why you want the address there

    get rid of the javascript, replace with:

    PHP Code:
    <?php echo date('mdY'); ?>

 

 

Similar Threads

  1. v151 Flexible Return Authorization (RMA) for ZC v1.5.x [Support Thread]
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 167
    Last Post: 11 Apr 2021, 08:56 PM
  2. Return Authorization Module
    By itspec in forum All Other Contributions/Addons
    Replies: 13
    Last Post: 10 Feb 2009, 11:29 PM
  3. Return Merchandise Authorization (RMA) Module Follow-up
    By killertofu in forum Managing Customers and Orders
    Replies: 1
    Last Post: 11 Aug 2008, 11:13 PM
  4. Return Authorization Module (RMA)
    By dscott1966 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 11 Nov 2006, 08:04 PM

Posting Permissions

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