Page 58 of 65 FirstFirst ... 8485657585960 ... LastLast
Results 571 to 580 of 649
  1. #571
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Return Authorization Module (RMA)

    Quote Originally Posted by xspresso View Post
    Hi everyone,

    rbarbour thank you very much. I will add that once I figure out why my page goes blank.

    I hate to say it but it happened again, my "index.php?main_page=returns" page comes back blank.

    Now I know I made a lot of changes but as before I rolled back my changes... nothing.
    I deleted the entire script, removed all mysql entries.

    Re-installed DivaVocals update (3.1) the database installed, double checked the database, all there...but still nothing just a blank page

    The strange part is when I delete "returns.php" my "index.php?main_page=returns" page returns (no longer blank, just like 2.33 did).
    But it is not reading the english file, the php is what is showing ie; ENTRY_REASON_TEXT etc

    the only mod is fast and easy checkout 1.10.0

    Thanks
    Blank page = error log.. can't GUESS why you are getting a blank page.. post the results of the error log..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  2. #572
    Join Date
    Sep 2008
    Posts
    22
    Plugin Contributions
    0

    Default Re: Return Authorization Module (RMA)

    Hello and thank you for your efforts.

    There are a few items that I would like to change, the page returns to the view history in my account,
    can we add an if else or something to the code below to send it to "success" after submission.

    if (!isset($_GET['order_id']) || (isset($_GET['order_id']) && !is_numeric($_GET['order_id']))) {
    zen_redirect(zen_href_link(FILENAME_ACCOUNT_HISTORY_INFO, '', 'SSL'));
    }
    if (isset($_GET['action']) && ($_GET['action'] == 'success')) {

    Also:
    Since the code you wrote is not used during success, the order_number will not show in success (i guess) without calling it from the database from within success?



    P.S. my page was blank because I guess I have fat fingers and added an extra ' to the returns.php

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

    Default Re: Return Authorization Module (RMA)

    Quote Originally Posted by xspresso View Post
    Hello and thank you for your efforts.

    There are a few items that I would like to change, the page returns to the view history in my account,
    can we add an if else or something to the code below to send it to "success" after submission.

    if (!isset($_GET['order_id']) || (isset($_GET['order_id']) && !is_numeric($_GET['order_id']))) {
    zen_redirect(zen_href_link(FILENAME_ACCOUNT_HISTORY_INFO, '', 'SSL'));
    }
    if (isset($_GET['action']) && ($_GET['action'] == 'success')) {
    If you remove that code all together, it will produce the success page after the form is submitted.

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

    Default Re: Return Authorization Module (RMA)

    1.) Disregard my previous posts for I did not test thoroughly with @DivaVocals updated version.

    2.) I actually installed the new version but did not test it (jumped the gun), but when I did (without any alterations), I am getting the send button on the success page (I am getting the success page) and no email being sent.

  5. #575
    Join Date
    Sep 2008
    Posts
    22
    Plugin Contributions
    0

    Default Re: Return Authorization Module (RMA)

    Thank you that works great.

    I hate to be a pain... but I'm sure it's too late!
    Can you see any way to get the order_number to the success page?

  6. #576
    Join Date
    Sep 2008
    Posts
    22
    Plugin Contributions
    0

    Default Re: Return Authorization Module (RMA)

    I removed that code and it send me back to success.

    The success page I thought always had the send button, I was going to look at that next.

    I get the email just fine.

  7. #577
    Join Date
    Sep 2008
    Posts
    22
    Plugin Contributions
    0

    Default Re: Return Authorization Module (RMA)

    The button was to low I moved it up a few lines.

    <fieldset>
    <legend class="write"><?php echo ENTRY_REASON; ?></legend>
    <label class="inputLabel" for="reason"><?php echo (($error == true && $entry_reason_error == true) ? ENTRY_REASON_TEXT . zen_image($template->get_template_dir(RETURN_WARNING_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . RETURN_WARNING_IMAGE, RETURN_WARNING_IMAGE_ALT, RETURN_WARNING_IMAGE_WIDTH, RETURN_WARNING_IMAGE_HEIGHT) : ENTRY_REASON_TEXT . zen_image($template->get_template_dir(RETURN_REQUIRED_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . RETURN_REQUIRED_IMAGE, RETURN_REQUIRED_IMAGE_ALT, RETURN_REQUIRED_IMAGE_WIDTH, RETURN_REQUIRED_IMAGE_HEIGHT)); ?></label>
    <?php echo (($error == true && $entry_reason_error == true) ? zen_draw_textarea_field('reason', '30', '7', $reason, 'id="reason"') . ENTRY_REASON_TEXT_ERROR : zen_draw_textarea_field('reason', '30', '7', $reason, 'id="reason"')); ?>
    </fieldset>
    </div>
    <div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_SEND, BUTTON_SEND_ALT); ?></div>
    <?php
    }
    ?>
    </form>
    <br class="clearBoth" />
    </div>
    <div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?></div>

  8. #578
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Return Authorization Module (RMA)

    Quote Originally Posted by xspresso View Post
    I removed that code and it send me back to success.

    The success page I thought always had the send button, I was going to look at that next.

    I get the email just fine.
    Never paid attention to that, but YES the send button has always been on the success form.. It SHOULD NOT be there.. Somehow in scrubbing the code and fixing the form I missed that.. Will update my version and submit it to the downloads section..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

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

    Default Re: Return Authorization Module (RMA)

    UPDATED

    So this was pretty easy and it's a great function.

    1.) lets create a button
    1.A) /includes/languages/english/YOUR_TEMPLATE_NAME/button_names.php

    add:
    PHP Code:
    define('BUTTON_RMA_REQUEST''button_rma_request.png'); <-- Name of your button
    define
    ('BUTTON_RMA_REQUEST_ALT''Request an RMA'); <-- You buttons ALT (alternative text
    1.b) upload your button
    /includes/templates/YOUR_TEMPLATE_NAME/buttons/english

    2. lets add the button to the My Account > History > Order Info page
    2.A) /includes/templates/YOUR_TEMPLATE_NAME/templates/tpl_account_history_info_default.php

    I added my button at the end of the file right after the <br class="clearBoth" /> and closing </div>

    PHP Code:
    <div class="rmaRequestButton"><?php echo '<a href="' zen_href_link(FILENAME_RETURNS, (isset($_GET['page']) ? 'page=' $_GET['page'] . '&' '') . 'order_id=' $_GET['order_id'], 'SSL') . '">' zen_image_button(BUTTON_RMA_REQUEST) . '</a>'?></div>
    3.) /includes/modules/pages/returns/header_php.php

    in the middle of the file find:
    PHP Code:
     zen_redirect(zen_href_link(FILENAME_RETURNS'action=success')); 
    change to:
    PHP Code:
    zen_redirect(zen_href_link(FILENAME_RETURNS'action=success' '&order_id=' $order_number)); 

    towards the bottom find:
    PHP Code:
      $postcode $check_customer->fields['entry_postcode'];

    right below that add:
    PHP Code:
    $customer_info_query "SELECT customers_id
                            FROM   " 
    TABLE_ORDERS "
                            WHERE  orders_id = :ordersID"
    ;

    $customer_info_query $db->bindVars($customer_info_query':ordersID'$_GET['order_id'], 'integer');
    $customer_info $db->Execute($customer_info_query);

    $order_number $_GET['order_id']; 
    Now in /includes/templates/YOUR_TEMPLATE_NAME/templates/tpl_returns_default.php

    find:
    PHP Code:
    <div class="mainContent success"><?php echo TEXT_SUCCESS?></div>
    change to:
    PHP Code:
    <div class="mainContent success"><?php echo TEXT_SUCCESS?><?php echo 'Your RMA# is: '$order_number $_GET['order_id']; echo $order_number;?></div>
    Thats it, now your customers "Order Number" text field on the returns page will be pre-populated by the order_id from within the My Account > History > Order Info page & sent to the success page

    Enjoy!

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

    Default Re: Return Authorization Module (RMA)

    Quote Originally Posted by DivaVocals View Post
    Never paid attention to that, but YES the send button has always been on the success form.. It SHOULD NOT be there.. Somehow in scrubbing the code and fixing the form I missed that.. Will update my version and submit it to the downloads section..
    How could you miss that? JUST KIDDING

    Awesome job on the update, I am positive the zen community is grateful for all your hard work in updating Clyde's mods.

 

 
Page 58 of 65 FirstFirst ... 8485657585960 ... LastLast

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

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR