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.
and so it's perfectly clear, when I say delete any previous version files Imean you need to delete ALL the files and ALL the database entries too (running the uninstall SQL MAY do the trick)
ETA:
Nevermind.. let me just give you the correct uninstall SQL to run BEFORE you install the version I posted:
Code:SELECT @t4:=configuration_group_id FROM configuration_group WHERE configuration_group_title= 'Return Authorization'; DELETE FROM configuration WHERE configuration_group_id = @t4; DELETE FROM configuration_group WHERE configuration_group_id = @t4; DELETE FROM configuration WHERE configuration_group_id = @configuration_group_id; DELETE FROM configuration_group WHERE configuration_group_id = @configuration_group_id; DELETE FROM configuration WHERE configuration_key = 'DEFINE_RETURNS_STATUS';
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.
Thank you so much DivaVocals I was on the edge of taking out my old cgi RMA script and incorporating that.
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.
Fast and so easy is how it worked!
While I have your attention.....
The success page after submission, is there a way to do something like this?
<?php if (RETURN_STORE_NAME_ADDRESS == 'true') { ?>
<h1>$order_number - $item_number</h1>
<h1>Thank you for completing the RMA <BR> Your RMA number is above. Follow these directions.............etc</h1>
<address><?php echo nl2br(STORE_NAME_ADDRESS); ?></address>
<?php } ?>
(on my form I changed Item number to Number of Items)
This way the rma would be the invoice number xxxxx a dash - and the total number of items being returned ie: 42545-2.
All the instructions would be on the success page and no further need to email customer.
I separated the submit rma page from the success page.
I added a generated RMA number.
I would really like the invoice number included in that rma generation.
When the customer is logged in, they can click a button next to their "view" order button
in "View Account".
This should immediately forward you to the rma form with all your personal info fields populated.
Including your invoice order number.
It does carry in the url:
/index.php?main_page=returns&order_id=105308
But does not fill the order number field.
I will post all my upgrades once this is solved. Can anyone help solve this?
![]()
1. look at the returns page header_php.php file to see how it auto generates name, email, phone, ect.
2. look at the code for account > history info
just a suggestion and may lead you in the right direction
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:
1.b) upload your buttonPHP 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)
/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>
3.) /includes/modules/pages/returns/header_php.phpPHP 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>
find:
right below that add:PHP Code:
if (REGISTERED_RETURN == 'true'){
if (!$_SESSION['customer_id']) {
$_SESSION['navigation']->set_snapshot();
zen_redirect(zen_href_link(FILENAME_LOGIN, '', 'SSL'));
}
}
towards the bottom find:PHP Code:
if (!isset($_GET['order_id']) || (isset($_GET['order_id']) && !is_numeric($_GET['order_id']))) {
zen_redirect(zen_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL'));
}
right below that add:PHP Code:
$city = $check_customer->fields['entry_city'];
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 pagePHP 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'];
Enjoy!
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
Bookmarks