Zen Cart Logo
Forums / Addon Sideboxes / Returns Authorization contrib - prob with form fields

Returns Authorization contrib - prob with form fields

Locked

Views: 11,342

Results 1 to 20 of 45
This thread is locked. New replies are disabled.
10 May 2006, 7:04 AM
#1
heavenlynights avatar

heavenlynights

Zen Follower

Join Date:
Jan 2006
Location:
Australia
Posts:
303
Plugin Contributions:
0

Returns Authorization contrib - prob with form fields

Hi There

I have installed the return contrib into an upgraded version of 1.3.1 and have a small problem. When I download the returns page for some reason something has automatically inserted the digit 15 into the "reason for return". It is only a small problem I know, but an annoying one.

also there a is a problem with the breadcrumb trailing links. If I have this turned on, then I get 2 lots of trailing links, on this page, one underneath the other. If I turn off, then I only get one lot of trailing links, which is fine but I want trailing on all my pages, if this option is turned off then I don't get trailing links on any page except returns page.

Hope someone can help

TIA

heavenlynights

10 May 2006, 6:15 PM
#2
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Returns Authorization contrib - prob with form fields

In your tpl_returns_default.php

near the top of the file find and delete the following lines of code:

<tr> <td class="breadCrumb" colspan="2"><?php echo $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR); ?></td> </tr>

This will take care of your breadcrumb issue.

In the same file, find the following line of code; near the bottom.

<td class="main"><?php echo zen_draw_textarea_field('reason', 'soft', 40, 15); ?></td> and change it as follows: <td class="main"><?php echo zen_draw_textarea_field('reason', 'soft', 'cols="40" rows="15"'); ?></td>

That should take care of the stray 15.

Let me know if everything works.

PS. I re-wrote the entire template file so it would work better with v1.3.0.1

10 May 2006, 7:55 PM
#3
rxalex avatar

rxalex

Totally Zenned

Join Date:
Feb 2006
Posts:
588
Plugin Contributions:
0

Re: Returns Authorization contrib - prob with form fields

Clyde you have a copy of that?

10 May 2006, 8:53 PM
#4
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Returns Authorization contrib - prob with form fields

Sure, just remove the txt extension and it should be ready to go.
[Attachment no longer available]

10 May 2006, 9:11 PM
#5
rxalex avatar

rxalex

Totally Zenned

Join Date:
Feb 2006
Posts:
588
Plugin Contributions:
0

Re: Returns Authorization contrib - prob with form fields

Thanks Clyde, is it possible to make this form in a link such as under the return policy? and how would I go about doing this?

10 May 2006, 9:20 PM
#6
rxalex avatar

rxalex

Totally Zenned

Join Date:
Feb 2006
Posts:
588
Plugin Contributions:
0

Re: Returns Authorization contrib - prob with form fields

Thanks clyde.. I inserted the file in sidebox and nothing happened I think it may not be the correct place .where do I insert the file? and how do I make it like yours in the information sidebox an option for returns?

10 May 2006, 9:56 PM
#7
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Returns Authorization contrib - prob with form fields

That file goes in your template directory:
includes -> templates -> your_custom_template -> templates

Add this:
$information[] = '<a href="' . zen_href_link(FILENAME_RETURNS, '', 'SSL') . '">' . BOX_INFORMATION_RETURNS . '</a>';

in your includes -> modules -> sideboxes -> your_custom_template -> information.php file.

If you have everything else installed from the mod everything should work.

Let me know

10 May 2006, 10:08 PM
#8
rxalex avatar

rxalex

Totally Zenned

Join Date:
Feb 2006
Posts:
588
Plugin Contributions:
0

Re: Returns Authorization contrib - prob with form fields

Did as you said above no luck :( ... says Box_information_ret .. missing something

clydejones:

That file goes in your template directory:
includes -> templates -> your_custom_template -> templates

Add this:
$information[] = '<a href="' . zen_href_link(FILENAME_RETURNS, '', 'SSL') . '">' . BOX_INFORMATION_RETURNS . '</a>';

in your includes -> modules -> sideboxes -> your_custom_template -> information.php file.

If you have everything else installed from the mod everything should work.

Let me know

10 May 2006, 10:11 PM
#9
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Returns Authorization contrib - prob with form fields

create a new file named extra_language_defines.php

put

<?php
define('BOX_INFORMATION_RETURNS', 'Return Information');
?>

save to
includes/languages/english/extra_definitions/

10 May 2006, 10:20 PM
#10
rxalex avatar

rxalex

Totally Zenned

Join Date:
Feb 2006
Posts:
588
Plugin Contributions:
0

Re: Returns Authorization contrib - prob with form fields

Thanks Merlin
Parse error: parse error, unexpected '}' in /home/c1800s/public_html/new/includes/modules/sideboxes/newest/information.php on line 20

when there is no if statement in information.php with an if statement it loops back to main page.. somethings missing but return authorization link shows..

10 May 2006, 10:27 PM
#11
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Returns Authorization contrib - prob with form fields

Just make sure your not placing that line of code inside an if statement:

like this:

if (DEFINE_PRIVACY_STATUS <= 1) {
$information[] = '<a href="' . zen_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a>';
}
if (DEFINE_CONDITIONS_STATUS <= 1) {
$information[] = '<a href="' . zen_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a>';
}
if (DEFINE_SHIPPINGINFO_STATUS <= 1) {
$information[] = '<a href="' . zen_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a>';
}
if (DEFINE_CONTACT_US_STATUS <= 1) {
$information[] = '<a href="' . zen_href_link(FILENAME_CONTACT_US, '', 'SSL') . '">' . BOX_INFORMATION_CONTACT . '</a>';
}

$information[] = '<a href="' . zen_href_link(FILENAME_RETURNS, '', 'SSL') . '">' . BOX_INFORMATION_RETURNS . '</a>';

hope it works now

10 May 2006, 10:34 PM
#12
rxalex avatar

rxalex

Totally Zenned

Join Date:
Feb 2006
Posts:
588
Plugin Contributions:
0

Re: Returns Authorization contrib - prob with form fields

Clyde we're getting closer for some reason when clicking on return authorization it reverts back to main page..

10 May 2006, 10:48 PM
#13
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Returns Authorization contrib - prob with form fields

I just checked on your site:

clicked the returns link and was taken directly to the return authorization page.

10 May 2006, 10:55 PM
#14
rxalex avatar

rxalex

Totally Zenned

Join Date:
Feb 2006
Posts:
588
Plugin Contributions:
0

Re: Returns Authorization contrib - prob with form fields

Hmmm... Thanks Clyde I appreciate it.. but I get reverted to main page again in both FF and IE even deleted the cookies.. weird, I appreciate your help

10 May 2006, 11:12 PM
#15
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Returns Authorization contrib - prob with form fields

I used the the website from your forum profile. is that the correct one?

11 May 2006, 12:23 AM
#16
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Returns Authorization contrib - prob with form fields

Just one other thought:

In the file Merlin told you to create add these two defines:

define('FILENAME_RETURNS', 'returns');
define('FILENAME_DEFINE_RETURNS', 'define_returns');

and see if that helps

11 May 2006, 12:36 AM
#17
blessisaacola avatar

blessisaacola

Totally Zenned

Join Date:
Feb 2004
Location:
Georgia, USA
Posts:
1,875
Plugin Contributions:
1

Re: Returns Authorization contrib - prob with form fields

Is this mod still available for download for 1.3.0.1?

11 May 2006, 12:57 AM
#18
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Returns Authorization contrib - prob with form fields

I don't know, we'll have to wait until the download section is migrated.

If not you can try this one

[Attachment no longer available]

11 May 2006, 1:45 AM
#19
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Returns Authorization contrib - prob with form fields

It might be ugly, it was for 1.2 and it dosnt meet 1.3 standards,
If it works at all.

11 May 2006, 1:50 AM
#20
rxalex avatar

rxalex

Totally Zenned

Join Date:
Feb 2006
Posts:
588
Plugin Contributions:
0

Re: Returns Authorization contrib - prob with form fields

Thank you guys for your help .. Clyde I downloaded the file you attached got this error.. I appologize for this pain in the butt...

Fatal error: main() [function.require]: Failed opening required '' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/c1800s/public_html/new/includes/templates/newest/templates/tpl_returns_default.php on line 30