Zen Cart Logo
Forums / All Other Contributions/Addons / Flexible Return Authorization (RMA) for ZC v1.5.x [Support Thread]

Flexible Return Authorization (RMA) for ZC v1.5.x [Support Thread]

Views: 29,201

Results 161 to 168 of 168
18 Aug 2019, 7:12 AM
#161
donw avatar

donw

New Zenner

Join Date:
May 2018
Location:
Melbourne, Australia
Posts:
29
Plugin Contributions:
0

Flexible Return Authorization (RMA) for ZC v1.5.x [Support Thread]

Someone had this problem in an earlier post:

"TEXT_ACCOUNT_INFO_RETURNS_TEXT_LINK_HEADER
If you wish to return any of the above items to us, please do not send any items before obtaining a Return Authorization Number. TEXT_DEFINE_BUTTON_LINK2TEXT_DEFINE_BUTTON_LINK3"

I have exactly the same problem, and have checked that all the files are in the correct places. The problem happens explicitly on the Checkout Success page, but works correctly in the Account History page.

The problem can't be related to the defines, as it operates correctly on the Accounts history page, but not on checkout success.

Any help would be appreciated.

18 Aug 2019, 12:29 PM
#163
tmccaff avatar

tmccaff

Zen Follower

Join Date:
Jan 2018
Posts:
157
Plugin Contributions:
0

Re: Flexible Return Authorization (RMA) for ZC v1.5.x [Support Thread]

I uploaded a new version that fixes this but not approved yet I guess. However, here is the github repo that fixes this issue.

https://github.com/tmccaff/Zencart-Return-Authorization

18 Aug 2019, 12:34 PM
#164
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,710
Plugin Contributions:
56

Re: Flexible Return Authorization (RMA) for ZC v1.5.x [Support Thread]

Thanks for doing this. It has been approved.

19 Aug 2019, 3:49 AM
#165
donw avatar

donw

New Zenner

Join Date:
May 2018
Location:
Melbourne, Australia
Posts:
29
Plugin Contributions:
0

Re: Flexible Return Authorization (RMA) for ZC v1.5.x [Support Thread]

Thanks for that, it fixed the problem. Was going to ask why it hadn't been fixed , until I saw the posts below.

23 Aug 2019, 11:02 PM
#166
tmccaff avatar

tmccaff

Zen Follower

Join Date:
Jan 2018
Posts:
157
Plugin Contributions:
0

Re: Flexible Return Authorization (RMA) for ZC v1.5.x [Support Thread]

New version uploaded which corrected the following

  1. Corrected PHP Notice account-history-info (virtual) YOUR_TEMPLATE/tpl_account_history_info.php
  2. Removed double heading from checkout-success page YOUR_TEMPLATE/tpl_account_history_info.php

New Version 1.6a, once it's approved or get it at github repo.

https://www.zen-cart.com/downloads.php?do=file&id=1692

31 Mar 2021, 2:35 PM
#167
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Flexible Return Authorization (RMA) for ZC v1.5.x [Support Thread]

I have the later version - and still have the problems with the defines. No matter what I've tried this problem persists - even pulled those defines into the core language files. Someone else said these fixes were the solution. The ZC version is 1.5.7b.

11 Apr 2021, 7:56 PM
#168
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Flexible Return Authorization (RMA) for ZC v1.5.x [Support Thread]

He had put quotes around the problem text defines in returns_request. Remove them and it works. PHP 7 niggling bits continue to provide joy!
This at the end of the file:

<?php if (DEFINE_BUTTON_LINK == '0') { ?> <div class="rmaRequestButton"><h4><?php echo 'TEXT_ACCOUNT_INFO_RETURNS_BUTTON_HEADER'; ?></h4><?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_IMAGE_SUBMIT, BUTTON_SUBMIT_ALT) . '</a>'; ?></div> <?php } else { ?> <div class="rmaRequestButton"><h4><?php echo 'TEXT_ACCOUNT_INFO_RETURNS_TEXT_LINK_HEADER'; ?></h4><?php echo 'TEXT_DEFINE_BUTTON_LINK'; ?>  <?php echo '<a href="' . zen_href_link(FILENAME_RETURNS,
(isset($_GET['page']) ? 'page=' . $_GET['page'] . '&' : '') . 'order_id=' .
$_GET['order_id'], 'SSL') . '">' . 'TEXT_DEFINE_BUTTON_LINK2' . '</a>'; ?><?php echo 'TEXT_DEFINE_BUTTON_LINK3'; ?></div> <?php } ?>

Change to this: ```php

<?php if (DEFINE_BUTTON_LINK == '0') { ?> <div class="rmaRequestButton"><h4><?php echo TEXT_ACCOUNT_INFO_RETURNS_BUTTON_HEADER; ?></h4><?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_IMAGE_SUBMIT, BUTTON_SUBMIT_ALT) . '</a>'; ?></div> <?php } else { ?> <div class="rmaRequestButton"><h4><?php echo 'TEXT_ACCOUNT_INFO_RETURNS_TEXT_LINK_HEADER'; ?></h4><?php echo TEXT_DEFINE_BUTTON_LINK; ?>  <?php echo '<a href="' . zen_href_link(FILENAME_RETURNS, (isset($_GET['page']) ? 'page=' . $_GET['page'] . '&' : '') . 'order_id=' . $_GET['order_id'], 'SSL') . '">' . TEXT_DEFINE_BUTTON_LINK2 . '</a>'; ?><?php echo TEXT_DEFINE_BUTTON_LINK3; ?></div> <?php } ?>


Also if you end up with a grey screen over the returns success? It's a css issue if you don't upload the css files.