Page 1 of 2 12 LastLast
Results 1 to 10 of 649

Hybrid View

  1. #1
    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 rbarbour View Post
    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.
    hahahahaha!!!

    Thanks.. To be honest I felt weird updating it.. Clyde was such a big contributor to the community.. So I was hesitant step my little feet into his BIG shoes..
    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. #2
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Return Authorization Module (RMA)

    Quote Originally Posted by DivaVocals View Post
    hahahahaha!!!

    Thanks.. To be honest I felt weird updating it.. Clyde was such a big contributor to the community.. So I was hesitant step my little feet into his BIG shoes..
    Big shoes indeed, as the original author, his contributions will continue to serve and evolve with the community!

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

    Default Re: Return Authorization Module (RMA)

    Reading his posts I could tell he is a really cool guy.
    These days it seems rare to have caring, sharing people.
    I never had the pleasure of meeting Clyde, but personally
    I think Clyde would love the thought of his work making people happy.

  4. #4
    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 rbarbour View Post
    Big shoes indeed, as the original author, his contributions will continue to serve and evolve with the community!
    Quote Originally Posted by xspresso View Post
    Reading his posts I could tell he is a really cool guy.
    These days it seems rare to have caring, sharing people.
    I never had the pleasure of meeting Clyde, but personally
    I think Clyde would love the thought of his work making people happy.
    **nods in agreement**
    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.

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

    Default Re: Return Authorization Module (RMA)

    OK, so I put together code to display the success page.

    WHAT THE FOLLOWING DOES

    using the code from post#579

    1.) I add a RMA Request button on the MY ACCOUNT > HISTORY > ORDER INFO page
    2.) When clicked it sends that $orders_id to the returns page and populates the Order Number Field
    3.) Send the same $orders_id to the returns success page

    Now this code recreates and does away with the HTML from @xspresso post#581

    Screenshot:
    Attachment 12384

    First lets add the code to /includes/templates/YOUR_TEMPLATE_NAME/templates/tpl_returns_default.php

    find:
    PHP Code:
    <?php if (RETURN_STORE_NAME_ADDRESS == 'true') { ?>
    <address><?php echo nl2br(STORE_NAME_ADDRESS); ?></address>
    <?php ?>

    <?php
      
    if (isset($_GET['action']) && ($_GET['action'] == 'success')) {
    ?>

    <br class="clearBoth" />
    <div class="mainContent success"><?php echo TEXT_SUCCESS?></div>

    <?php
      
    } else {
    ?>
    Replace with:
    PHP Code:
    <?php if (RETURN_STORE_NAME_ADDRESS == 'true' && ($_GET['action'] == 'success')) { ?>
    <?php
    /**
    show nothing
     */
    } else if (RETURN_STORE_NAME_ADDRESS == 'true') { ?>
    <address><?php echo nl2br(STORE_NAME_ADDRESS); ?></address>
    <?php ?>

    <?php
      
    if (isset($_GET['action']) && ($_GET['action'] == 'success')) {
    ?>
    <br class="clearBoth" />

    <div class="mainContent success">
    <?php echo '<div id="returnSuccess">' TEXT_SUCCESS '</div>' '<div id="returnRequired">'TEXT_SUCCESS_RMA_REQUIRED '</div>' '<div id="returnPolicy">'TEXT_SUCCESS_RMA_POLICY_BOF '<a href="' zen_href_link(FILENAME_SHIPPING'''SSL') . '">' TEXT_SUCCESS_RMA_POLICY_LINK '</a>' TEXT_SUCCESS_RMA_POLICY_EOF '</div>' '<div id="returnAddressWrapper">' '<div id="returnRMA">' TEXT_SUCCESS_RMA_ID$order_number $_GET['order_id']; echo $order_number TEXT_SUCCESS_DASHsrand(5); echo(rand(110)); echo(rand(110)) . TEXT_SUCCESS_DASH date('mdY') . '</div>' '<div id="returnAddress">' TEXT_SUCCESS_RMA_RETURN_ADDRESS '</div>'; if (RETURN_STORE_NAME_ADDRESS == 'true') { echo '<address>' nl2br(STORE_NAME_ADDRESS) . '</address>'; } echo '<div id="returnPhone">' TEXT_SUCCESS_RMA_RETURN_PHONE '</div>' '</div>'?>

    <?php
      
    } else {
    ?>
    then open /includes/languages/english/YOUR_TEMPLATE_NAME/returns.php

    and add:
    PHP Code:
    define('TEXT_SUCCESS_RMA_REQUIRED''The below RMA# is required for all Returns');
    define('TEXT_SUCCESS_RMA_POLICY_BOF''You can view our ');
    define('TEXT_SUCCESS_RMA_POLICY_LINK''Returns Policy');
    define('TEXT_SUCCESS_RMA_POLICY_EOF'' here.');
    define('TEXT_SUCCESS_RMA_ID''Your RMA# is: ');
    define('TEXT_SUCCESS_DASH''-');
    define('TEXT_SUCCESS_RMA_RETURN_ADDRESS''Please ship all returns to this address:');
    define('TEXT_SUCCESS_RMA_RETURN_PHONE''Phone: 1.111.111.1111'); 
    and the CSS rules can be added to /includes/templates/YOUR_TEMPLATE_NAME/css/returns.css

    Code:
    div#returnAddressWrapper {border:1px solid #E9E9E9;background:#FFE573;text-align:center;}
    div#returnSuccess {font-size:1.2em;padding:5px;color:#606060;}
    div#returnAddressWrapper, div#returnRequired, div#returnPolicy, div#returnRMA, div#returnAddress, div#returnPhone {font-size:1.5em;font-weight:bold;padding:5px; }
    div#returnRequired, div#returnAddress {color:#FF0000;}
    That should be it, Enjoy!

  6. #6
    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 rbarbour View Post
    OK, so I put together code to display the success page.

    WHAT THE FOLLOWING DOES

    using the code from post#579

    1.) I add a RMA Request button on the MY ACCOUNT > HISTORY > ORDER INFO page
    2.) When clicked it sends that $orders_id to the returns page and populates the Order Number Field
    3.) Send the same $orders_id to the returns success page

    Now this code recreates and does away with the HTML from @xspresso post#581

    Screenshot:
    Attachment 12384

    First lets add the code to /includes/templates/YOUR_TEMPLATE_NAME/templates/tpl_returns_default.php

    find:
    PHP Code:
    <?php if (RETURN_STORE_NAME_ADDRESS == 'true') { ?>
    <address><?php echo nl2br(STORE_NAME_ADDRESS); ?></address>
    <?php ?>

    <?php
      
    if (isset($_GET['action']) && ($_GET['action'] == 'success')) {
    ?>

    <br class="clearBoth" />
    <div class="mainContent success"><?php echo TEXT_SUCCESS?></div>

    <?php
      
    } else {
    ?>
    Replace with:
    PHP Code:
    <?php if (RETURN_STORE_NAME_ADDRESS == 'true' && ($_GET['action'] == 'success')) { ?>
    <?php
    /**
    show nothing
     */
    } else if (RETURN_STORE_NAME_ADDRESS == 'true') { ?>
    <address><?php echo nl2br(STORE_NAME_ADDRESS); ?></address>
    <?php ?>

    <?php
      
    if (isset($_GET['action']) && ($_GET['action'] == 'success')) {
    ?>
    <br class="clearBoth" />

    <div class="mainContent success">
    <?php echo '<div id="returnSuccess">' TEXT_SUCCESS '</div>' '<div id="returnRequired">'TEXT_SUCCESS_RMA_REQUIRED '</div>' '<div id="returnPolicy">'TEXT_SUCCESS_RMA_POLICY_BOF '<a href="' zen_href_link(FILENAME_SHIPPING'''SSL') . '">' TEXT_SUCCESS_RMA_POLICY_LINK '</a>' TEXT_SUCCESS_RMA_POLICY_EOF '</div>' '<div id="returnAddressWrapper">' '<div id="returnRMA">' TEXT_SUCCESS_RMA_ID$order_number $_GET['order_id']; echo $order_number TEXT_SUCCESS_DASHsrand(5); echo(rand(110)); echo(rand(110)) . TEXT_SUCCESS_DASH date('mdY') . '</div>' '<div id="returnAddress">' TEXT_SUCCESS_RMA_RETURN_ADDRESS '</div>'; if (RETURN_STORE_NAME_ADDRESS == 'true') { echo '<address>' nl2br(STORE_NAME_ADDRESS) . '</address>'; } echo '<div id="returnPhone">' TEXT_SUCCESS_RMA_RETURN_PHONE '</div>' '</div>'?>

    <?php
      
    } else {
    ?>
    then open /includes/languages/english/YOUR_TEMPLATE_NAME/returns.php

    and add:
    PHP Code:
    define('TEXT_SUCCESS_RMA_REQUIRED''The below RMA# is required for all Returns');
    define('TEXT_SUCCESS_RMA_POLICY_BOF''You can view our ');
    define('TEXT_SUCCESS_RMA_POLICY_LINK''Returns Policy');
    define('TEXT_SUCCESS_RMA_POLICY_EOF'' here.');
    define('TEXT_SUCCESS_RMA_ID''Your RMA# is: ');
    define('TEXT_SUCCESS_DASH''-');
    define('TEXT_SUCCESS_RMA_RETURN_ADDRESS''Please ship all returns to this address:');
    define('TEXT_SUCCESS_RMA_RETURN_PHONE''Phone: 1.111.111.1111'); 
    and the CSS rules can be added to /includes/templates/YOUR_TEMPLATE_NAME/css/returns.css

    Code:
    div#returnAddressWrapper {border:1px solid #E9E9E9;background:#FFE573;text-align:center;}
    div#returnSuccess {font-size:1.2em;padding:5px;color:#606060;}
    div#returnAddressWrapper, div#returnRequired, div#returnPolicy, div#returnRMA, div#returnAddress, div#returnPhone {font-size:1.5em;font-weight:bold;padding:5px; }
    div#returnRequired, div#returnAddress {color:#FF0000;}
    That should be it, Enjoy!
    Fantastic! Now so I'm CLEAR.. this DOES NOT add the order number to the RMA success page if one accesses the RMA form directly correct?? If one accesses the RMA form directly they must enter the order number manually correct??
    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.

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

    Default Re: Return Authorization Module (RMA)

    correct

  8. #8
    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 rbarbour View Post
    correct
    Awesome.. Nice code.. I will incorporate your code into the core.. I think it SHOULD be included.. and then I'll submit the whole bloody thing to the RIGHT place..
    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. #9
    Join Date
    Sep 2008
    Posts
    22
    Plugin Contributions
    0

    Default Re: Return Authorization Module (RMA)

    Quote Originally Posted by rbarbour View Post
    OK, so I put together code to display the success page.

    WHAT THE FOLLOWING DOES

    using the code from post#579

    1.) I add a RMA Request button on the MY ACCOUNT > HISTORY > ORDER INFO page
    2.) When clicked it sends that $orders_id to the returns page and populates the Order Number Field
    3.) Send the same $orders_id to the returns success page

    Now this code recreates and does away with the HTML from @xspresso post#581

    Screenshot:
    Attachment 12384

    First lets add the code to /includes/templates/YOUR_TEMPLATE_NAME/templates/tpl_returns_default.php

    find:
    PHP Code:
    <?php if (RETURN_STORE_NAME_ADDRESS == 'true') { ?>
    <address><?php echo nl2br(STORE_NAME_ADDRESS); ?></address>
    <?php ?>

    <?php
      
    if (isset($_GET['action']) && ($_GET['action'] == 'success')) {
    ?>

    <br class="clearBoth" />
    <div class="mainContent success"><?php echo TEXT_SUCCESS?></div>

    <?php
      
    } else {
    ?>
    Replace with:
    PHP Code:
    <?php if (RETURN_STORE_NAME_ADDRESS == 'true' && ($_GET['action'] == 'success')) { ?>
    <?php
    /**
    show nothing
     */
    } else if (RETURN_STORE_NAME_ADDRESS == 'true') { ?>
    <address><?php echo nl2br(STORE_NAME_ADDRESS); ?></address>
    <?php ?>

    <?php
      
    if (isset($_GET['action']) && ($_GET['action'] == 'success')) {
    ?>
    <br class="clearBoth" />

    <div class="mainContent success">
    <?php echo '<div id="returnSuccess">' TEXT_SUCCESS '</div>' '<div id="returnRequired">'TEXT_SUCCESS_RMA_REQUIRED '</div>' '<div id="returnPolicy">'TEXT_SUCCESS_RMA_POLICY_BOF '<a href="' zen_href_link(FILENAME_SHIPPING'''SSL') . '">' TEXT_SUCCESS_RMA_POLICY_LINK '</a>' TEXT_SUCCESS_RMA_POLICY_EOF '</div>' '<div id="returnAddressWrapper">' '<div id="returnRMA">' TEXT_SUCCESS_RMA_ID$order_number $_GET['order_id']; echo $order_number TEXT_SUCCESS_DASHsrand(5); echo(rand(110)); echo(rand(110)) . TEXT_SUCCESS_DASH date('mdY') . '</div>' '<div id="returnAddress">' TEXT_SUCCESS_RMA_RETURN_ADDRESS '</div>'; if (RETURN_STORE_NAME_ADDRESS == 'true') { echo '<address>' nl2br(STORE_NAME_ADDRESS) . '</address>'; } echo '<div id="returnPhone">' TEXT_SUCCESS_RMA_RETURN_PHONE '</div>' '</div>'?>

    <?php
      
    } else {
    ?>
    then open /includes/languages/english/YOUR_TEMPLATE_NAME/returns.php

    and add:
    PHP Code:
    define('TEXT_SUCCESS_RMA_REQUIRED''The below RMA# is required for all Returns');
    define('TEXT_SUCCESS_RMA_POLICY_BOF''You can view our ');
    define('TEXT_SUCCESS_RMA_POLICY_LINK''Returns Policy');
    define('TEXT_SUCCESS_RMA_POLICY_EOF'' here.');
    define('TEXT_SUCCESS_RMA_ID''Your RMA# is: ');
    define('TEXT_SUCCESS_DASH''-');
    define('TEXT_SUCCESS_RMA_RETURN_ADDRESS''Please ship all returns to this address:');
    define('TEXT_SUCCESS_RMA_RETURN_PHONE''Phone: 1.111.111.1111'); 
    and the CSS rules can be added to /includes/templates/YOUR_TEMPLATE_NAME/css/returns.css

    Code:
    div#returnAddressWrapper {border:1px solid #E9E9E9;background:#FFE573;text-align:center;}
    div#returnSuccess {font-size:1.2em;padding:5px;color:#606060;}
    div#returnAddressWrapper, div#returnRequired, div#returnPolicy, div#returnRMA, div#returnAddress, div#returnPhone {font-size:1.5em;font-weight:bold;padding:5px; }
    div#returnRequired, div#returnAddress {color:#FF0000;}
    That should be it, Enjoy!
    That is very nice work. It is everything I have been trying to do for a week.

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

    Default Re: Return Authorization Module (RMA)

    Quote Originally Posted by xspresso View Post
    That is very nice work. It is everything I have been trying to do for a week.
    I'm glad we got it sorted and working

 

 
Page 1 of 2 12 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

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