I'll check on it and post back ASAP
Printable View
This should fix the problem.
As always just un-zip the file and upload the entire includes directory to your server.
Attachment 1885
Thanks for the quick answer, but it didn't work.
Now, even if the user is logged in, it doesn't fill any field.
I'm using PHP 5.1.2 and mySQL 5.0.27
I tried with the last version (without my fix), deleting the user #1. With just one user in the system, the script didn't filled that fields. Only the first ones (Full name, email and phone).
try this and see if it helps
Attachment 1890
Nope. With this fix nothing is filled. All fields remains blank.
I just uploaded both the new install and the upgrade and everything seems to be fine, however when I go to Admin/config/ there is not a return authorization? I changed all of My Template to apple_zen, before uploading them. Also I have a second question, is there anyway to add this to a drop down menu? I searched through this thread and didn't see an answer, unless I missed it? Thanks for your help. :smile:
If there's a question: www.mommyandbabyessentials.com
First did you run the sql script included with the contribution. If not.
copy the following and paste into admin -> tools -> install sql patches click the send button.
Code:#Return Authorization SQL Install
# For Zen-Cart 1.3.7
# Last Updated: 28/02/2007
SET @configuration_group_id=0;
SELECT @configuration_group_id:=configuration_group_id
FROM configuration_group
WHERE configuration_group_title= 'Return Authorization'
LIMIT 1;
DELETE FROM configuration WHERE configuration_group_id = @configuration_group_id;
DELETE FROM configuration WHERE configuration_key = 'DEFINE_RETURNS_STATUS';
DELETE FROM configuration_group WHERE configuration_group_id = @configuration_group_id;
INSERT INTO configuration_group VALUES (NULL, 'Return Authorization', 'Return Authorization Display Settings', '1', '1');
SET @configuration_group_id=last_insert_id();
UPDATE configuration_group SET sort_order = @configuration_group_id WHERE configuration_group_id = @configuration_group_id;
INSERT INTO `configuration` VALUES (NULL, 'Phone Number', 'RETURN_PHONE', 'true', 'Display phone number field', @configuration_group_id, 1, NULL, now(), NULL, 'zen_cfg_select_option(array(''true'', ''false''), ');
INSERT INTO `configuration` VALUES (NULL, 'Total Value', 'RETURN_VALUE', 'true', 'Display Total Value', @configuration_group_id, 2, NULL, now(), NULL, 'zen_cfg_select_option(array(''true'', ''false''), ');
INSERT INTO `configuration` VALUES (NULL, 'Item Number', 'RETURN_ITEM_NUMBER', 'true', 'Display Item Number field', @configuration_group_id, 3, NULL, now(), NULL, 'zen_cfg_select_option(array(''true'', ''false''), ');
INSERT INTO `configuration` VALUES (NULL, 'Only registered customers may submit a return request', 'REGISTERED_RETURN', 'false', 'Only registered customers may submit a return request', @configuration_group_id, 4, NULL, now(), NULL, 'zen_cfg_select_option(array(''true'', ''false''),');
INSERT INTO `configuration` VALUES (NULL, 'Set "Return Action" Dropdown List', 'RETURN_ACTION_LIST', 'Refund, Replacement, Repair', 'On the "Return Authorization" Page, set the list of actions , in this format: Action 1, Action 2', @configuration_group_id, 5, NULL, now(), NULL, 'zen_cfg_textarea(');
INSERT INTO `configuration` VALUES (NULL, 'Define Return Authorization', 'DEFINE_RETURNS_STATUS', '1', 'Enable the Defined Return Authorization Link/Text?<br />0= Link ON, Define Text OFF<br />1= Link ON, Define Text ON<br />2= Link OFF, Define Text ON<br />3= Link OFF, Define Text OFF', 25, 999, NULL, now(), NULL, 'zen_cfg_select_option(array(''0'', ''1'', ''2'', ''3''),');
Second:
Yes you should be able to add it to the dropdown menu.
You'll have to add a new define statement to
includes/laguages/english/extra_definitions/YOUR_TEMPLATE/headermenu.php
and then a menu item to
includes/templates/YOUR_TEMPLATE/common/tpl_drop_menu.php
Worked great!! Thanks a million!