Try this and see if it helps.
Just unzip the file and upload the entire includes folder to your server.
Attachment 3342
Try this and see if it helps.
Just unzip the file and upload the entire includes folder to your server.
Attachment 3342
Last edited by clydejones; 31 Dec 2009 at 02:31 AM.
trying to restrict order numbers to numeric I have modified this line as follows:
and added this:Code:if ($zc_validate_email and !empty($reason) and ($order_number !='' && $order_number == numeric)) { $send_to_email = RMA_EMAIL; $send_to_name = STORE_NAME;
It checks for numbers only fine, but when I enter numbers only, it does not send the form, but displays the filled in form again. What am I doing wrong?Code:if(ereg('^[\s0-9]*$', $order_number) === false){ $error = true; $messageStack->add('returns', 'Order Number: Enter only numbers (must correspond to your order number).'); }
Thanks
Ah, now this works.. (for now anyway..)
if ($zc_validate_email and !empty($reason) and !empty($order_number) and is_numeric($order_number))
Hey Clydejones,
I've recently installed the 2.2 version but never tried it;(busy,busy); and noticed that you had a newer version. I did the Upgrade per instructions and tested it but this is what I get when I click on the Return link.
Home :: NAVBAR_TITLE
Warning: require(includes/templates/template_default/templates/tpl_returns_default.php) [function.require]: failed to open stream: No such file or directory in /home/marine76/public_html/store/includes/templates/silverfish/common/tpl_main_page.php on line 126
Fatal error: require() [function.require]: Failed opening required 'includes/templates/template_default/templates/tpl_returns_default.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/marine76/public_html/store/includes/templates/silverfish/common/tpl_main_page.php on line 126
make sure you have the following files on your server.
includes/extra_datafiles/returns_filenames.php
includes/languages/english/extra_definitions/YOUR_TEMPLATE/returns_defines.php
includes/languages/english/YOUR_TEMPLATE/returns.php
includes/languages/english/html_includes/define_returns.php
includes/languages/english/html_includes/YOUR_TEMPLATE/define_returns.php
includes/modules/pages/returns
includes/templates/YOUR_TEMPLATE/templates/tpl_returns_default.php
includes/templates/YOUR_TEMPLATE/css/returns.css
Thanks a lot Clyde!I was missing:
Tested it and in my Inbox I got this.includes/templates/YOUR_TEMPLATE/templates/tpl_returns_default.php
This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed:
[email protected]
Unrouteable address
------ This is a copy of the message, including all the headers. ------
Return-path: <[email protected]>
Received: from marine76 by d1.zz60.net with local (Exim 4.68)
(envelope-from <[email protected]>)
id 1JKNg7-00019r-Dp
for [email protected]; Wed, 30 Jan 2008 19:53:19 -0500
To: [email protected]
Subject: Return Authorization Request
Date: Wed, 30 Jan 2008 19:53:19 -0500
From: Frank Spata <[email protected]>
Reply-to: Gifts4All <[email protected]>
Message-ID: <[email protected]>
X-Priority: 3
X-Mailer: PHPMailer [version 1.73] via Zen Cart
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset="iso-8859-1"
From: Frank Spata
Email: [email protected]
Phone Number: 859
Address: 123 test
City: Lancaster
Post Code: 40444
State: KY
Order Number: 123
Total Value:
Item Number:
Item Name:
Action Requested: Refund
------------------------------------------------------
Reason: test test test
------------------------------------------------------
Office Use Only:
From: Frank Spata
Email: [email protected]
Telephone: 859
IP Address: 75.117.212.86 - 75.117.212.86
Host Address: 75.117.212.86
Date and Time: Wed Jan 30 2008 19:53:19 EST
Disregard, I checked back in the thread and found the fix. I'll try it to see if it works.
Thanks again Clyde, great mod.![]()
Bookmarks