Re: Flexible Return Authorization (RMA) 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.
Re: Flexible Return Authorization (RMA) Support Thread
Re: Flexible Return Authorization (RMA) 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
Re: Flexible Return Authorization (RMA) Support Thread
Thanks for doing this. It has been approved.
Re: Flexible Return Authorization (RMA) 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.
Re: Flexible Return Authorization (RMA) 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
Re: Flexible Return Authorization (RMA) 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.
Re: Flexible Return Authorization (RMA) 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 Code:
<?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 Code:
<?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.