Zen Cart Logo
Forums / All Other Contributions/Addons / Flexible Return Authorization (RMA) for ZC v1.5.x [Support Thread]

Flexible Return Authorization (RMA) for ZC v1.5.x [Support Thread]

Views: 29,201

Results 101 to 120 of 168
2 Mar 2014, 3:23 AM
#101
chenlmbd avatar

chenlmbd

New Zenner

Join Date:
Jul 2012
Posts:
9
Plugin Contributions:
0

Flexible Return Authorization (RMA) for ZC v1.5.x [Support Thread]

Hi Guys, I really need your help on this one. I have already installed the RMA mod. However, for some reason I installed “Return Authorization 3.0.0” mod. As soon as I realized that I’ve installed duplicated module, I uninstalled Return Authorization 3.0.0. However, now I couldn’t find RMA in my configuration tab. Please let me know if any of you know how to fix this problem. Thank you so much!

2 Mar 2014, 3:45 AM
#102
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Flexible Return Authorization (RMA) for ZC v1.5.x [Support Thread]

chenlmbd:

Hi Guys, I really need your help on this one. I have already installed the RMA mod. However, for some reason I installed “Return Authorization 3.0.0” mod. As soon as I realized that I’ve installed duplicated module, I uninstalled Return Authorization 3.0.0. However, now I couldn’t find RMA in my configuration tab. Please let me know if any of you know how to fix this problem. Thank you so much!

re-install THIS module again..

2 Mar 2014, 10:26 PM
#103
chenlmbd avatar

chenlmbd

New Zenner

Join Date:
Jul 2012
Posts:
9
Plugin Contributions:
0

Re: Flexible Return Authorization (RMA) for ZC v1.5.x [Support Thread]

DivaVocals:

re-install THIS module again..

Thank you so much for the reply! I have re-installed this module, but it didn't work. The return tab is still not showing under the configuration tab. I remember that I had to install some kind of patch for the other module. would that have anything to do with the problem? Thanks again!

3 Mar 2014, 12:00 AM
#104
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Flexible Return Authorization (RMA) for ZC v1.5.x [Support Thread]

chenlmbd:

Thank you so much for the reply! I have re-installed this module, but it didn't work. The return tab is still not showing under the configuration tab. I remember that I had to install some kind of patch for the other module. would that have anything to do with the problem? Thanks again!

Uninstall EVERYTHING you did.. then reinstall this module.. We can't help you PATCH two bad installs.. So start over..

16 Mar 2014, 11:59 PM
#105
chenlmbd avatar

chenlmbd

New Zenner

Join Date:
Jul 2012
Posts:
9
Plugin Contributions:
0

Re: Flexible Return Authorization (RMA) for ZC v1.5.x [Support Thread]

DivaVocals:

Uninstall EVERYTHING you did.. then reinstall this module.. We can't help you PATCH two bad installs.. So start over..

I have uninstalled everything, but the "Return Authorization" tab still doesn't show up under Configuration in my admin:no:, although the module seems work fine in the store site. Please help. Thank you so much for your time!

19 Jun 2014, 3:20 AM
#106
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
949
Plugin Contributions:
3

Re: Flexible Return Authorization (RMA) for ZC v1.5.x [Support Thread]

chenlmbd:

I have uninstalled everything, but the "Return Authorization" tab still doesn't show up under Configuration in my admin:no:, although the module seems work fine in the store site. Please help. Thank you so much for your time!

Have you tried to manually add it in via the "Admin Page Registration" link in the admin?

19 Jun 2014, 3:20 AM
#107
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
949
Plugin Contributions:
3

Re: Flexible Return Authorization (RMA) for ZC v1.5.x [Support Thread]

Is there a way to make this so that it doesn't automatically approve all RMA requests?

1 Aug 2014, 12:18 PM
#108
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

Re: Flexible Return Authorization (RMA) for ZC v1.5.x [Support Thread]

if the reason text includes a ```
'


Is there a fix?
2 Aug 2014, 10:36 AM
#109
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

Re: Flexible Return Authorization (RMA) for ZC v1.5.x [Support Thread]

retched:

Is there a way to make this so that it doesn't automatically approve all RMA requests?

Yes, I have done that for my store, I can't remember all the files I edited, but basically you need to make sure the RMA number isn't shown to the customer on the page, the print out popup or in the email they receive.

An admin flag to choose this option would be the best solution though.

4 Aug 2014, 2:18 PM
#110
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

Re: Flexible Return Authorization (RMA) for ZC v1.5.x [Support Thread]

DigitalShadow:

if the reason text includes a ```
'

> 
> Is there a fix?

Is this a bug? Or is it an error I have introduced?
8 Aug 2014, 2:41 AM
#111
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
949
Plugin Contributions:
3

Re: Flexible Return Authorization (RMA) for ZC v1.5.x [Support Thread]

DigitalShadow:

if the reason text includes a ```
'

> 
> Is there a fix?

No bug or error. This is because this is how PHP works. The define files are probably like this:

```php
define('SOME_CONSTANT_DEFINED', 'The text that is going to be used to act as the definition.');

When you put in a ' in that second part (after the comma), you're breaking the define and PHP does not know how to handle it. The easiest way to fix this, is to remember that whenever you're working with single quotes or double quotes, that you should use a backslash () immediately before. To that end, if you plan on using the backslash itself, you need to use a double backslash instead (\). The single backslash tells php that the character following the slash is a "special" character. This include "\n" which causes a newline break in plain text (or preformatted <PRE> text) or "\t" which inserts a tab in the same sense. ' indicates to PHP that it should output a single quote and " should output a double quote.

Leaving that off, you get something like this.

define('SOME_CONSTANT_DEFINED', 'You can't just insert a single quote.');

Notice how part of the text that is supposed to be defining the constant is red and the other part is blue. The part that is red (without the quote) will be defined into the constant, but the part in blue will generate an error since this is not correct syntax. Since the ' are being used to delimit the definition, PHP is expecting a ' to delimit the text. Without escaping it, PHP will interpret the first ' as the end of the string to define while PHP tosses its hand up figuratively since it doesn't know how to handle the blue.

NOTE: If the string is being delimited with a double quote, you can safely use the single quote inside a set of double quotes safely. As well as vice versa. Example:

define('SAMPLE_CONSTANT_2', "This string is being delimited with double quotes, so I can use ' without using a backslash safely.");
define('SAMPLE_CONSTANT_3', 'This string is being delimited with single quotes, so I can use " without using a backslash safely.');
8 Aug 2014, 9:02 AM
#112
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Flexible Return Authorization (RMA) for ZC v1.5.x [Support Thread]

When entering the reason text add a backslash to words with Apostrophe or Single Quotes

example:
WRONG
I didn't want it.

RIGHT
I didn't want it.

Will still show in the reasons drop-down select as I didn't want it.

DigitalShadow:

if the reason text includes a ```
'

> 
> Is there a fix?
11 Aug 2014, 1:32 PM
#113
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

Re: Flexible Return Authorization (RMA) for ZC v1.5.x [Support Thread]

No, the error is in the box the customer writes in, i'm aware of the php issue, which is why I couldn't believe this add-on would have a bug like this in it.

If the customer uses an apostrophe it breaks the rma submission.

11 Aug 2014, 3:18 PM
#114
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

Re: Flexible Return Authorization (RMA) for ZC v1.5.x [Support Thread]

just to clarify my above comment, i assume I have created the bug, somehow by changing something, but I wanted someone else to confirm if they could replicate the issue.

if you submit an rma request and in the text box, enter a sentence with an apostrophe does the rma submit correctly?

5 Sep 2014, 8:37 PM
#115
mvstudio avatar

mvstudio

Zen Follower

Join Date:
Apr 2008
Posts:
447
Plugin Contributions:
1

Re: Flexible Return Authorization (RMA) for ZC v1.5.x [Support Thread]

I don't know if this has been reported before, I checked the thread but couldn't find any mention of it. I found an error on the code on tpl_returns_default.php at around line 264

This is the code that appears on the file

<?php
switch (RETURN_ACTION_LIST) {
    case 0:
        echo '<li><h4><?php echo ENTRY_ACTION_INFO; ?></h4><label class="inputLabel">' . ENTRY_ACTION . RETURN_OPTIONAL_IMAGE . '</label>' . zen_draw_pull_down_menu('action', $entry_action_array) . '</li>';
        break;
    case 1:
        echo '<li><h4><?php echo ENTRY_ACTION_INFO; ?></h4><label class="inputLabel">' . ENTRY_ACTION . RETURN_REQUIRED_IMAGE . '</label>' . zen_draw_pull_down_menu('action', $entry_action_array) . '</li>';
        break;
}
?>
<?php
  }
?>

It should be changed to this for the tag H4 for display

<?php
switch (RETURN_ACTION_LIST) {
    case 0:
        echo '<li><h4>' . ENTRY_ACTION_INFO . '</h4><label class="inputLabel">' . ENTRY_ACTION . RETURN_OPTIONAL_IMAGE . '</label>' . zen_draw_pull_down_menu('action', $entry_action_array) . '</li>';
        break;
    case 1:
        echo '<li><h4>' . ENTRY_ACTION_INFO . '</h4><label class="inputLabel">' . ENTRY_ACTION . RETURN_REQUIRED_IMAGE . '</label>' . zen_draw_pull_down_menu('action', $entry_action_array) . '</li>';
        break;
}
?>
<?php
  }
?>
12 Sep 2014, 10:11 PM
#116
heathenmagic avatar

heathenmagic

Totally Zenned

Join Date:
May 2005
Location:
England
Posts:
733
Plugin Contributions:
0

Re: Flexible Return Authorization (RMA) for ZC v1.5.x [Support Thread]

WARNING: An Error occurred, please refresh the page and try again.

I am getting the above error when I reload the admin after uploading the modules files. I tried the fix from a page or so back, it still does the same thing after using uninstall sql. I also checked the phpmyadmin, I can't find any old traces of this module (I have been using the module since it first came out). Just the last version seemed to cause this issue.

Is there just a plain sql file version available at all, instead of the conig and autoloader for install please?

Thanks in advance

13 Sep 2014, 1:58 AM
#117
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Flexible Return Authorization (RMA) for ZC v1.5.x [Support Thread]

I haven't revisited this in a while and the original sql file no longer exists on my end.

try post #95, that should fix the issue.

HeathenMagic:

I am getting the above error when I reload the admin after uploading the modules files. I tried the fix from a page or so back, it still does the same thing after using uninstall sql. I also checked the phpmyadmin, I can't find any old traces of this module (I have been using the module since it first came out). Just the last version seemed to cause this issue.

Is there just a plain sql file version available at all, instead of the conig and autoloader for install please?

Thanks in advance

13 Sep 2014, 8:04 AM
#118
heathenmagic avatar

heathenmagic

Totally Zenned

Join Date:
May 2005
Location:
England
Posts:
733
Plugin Contributions:
0

Re: Flexible Return Authorization (RMA) for ZC v1.5.x [Support Thread]

Hi there

Thanks so much for your reply! I did try that, and uploaded the file again. But what I might do is see if any of the other tables have been appended with an extra field in the same way. I will go through it thoroughly, it must simply be that there is a small fragment left somewhere blocking the upgrade script.

Thanks again!

James :-)

17 Sep 2014, 1:47 PM
#119
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

Re: Flexible Return Authorization (RMA) for ZC v1.5.x [Support Thread]

I would rather the number generated for the RMA was random instead of generated by ordernumber and date and customer number, the number is tooooooooo long.

What file generates the rma number?

1 Dec 2014, 9:44 PM
#120
richardtuttle avatar

richardtuttle

New Zenner

Join Date:
Dec 2011
Location:
Boise, ID
Posts:
28
Plugin Contributions:
0

Re: Flexible Return Authorization (RMA) for ZC v1.5.x [Support Thread]

Any updates on this plugin working with ZC 1.5.3? I have installed it following the instructions and am also getting the "WARNING: An error occurred, please refresh the page and try again." issue.

HeathenMagic:

I am getting the above error when I reload the admin after uploading the modules files. I tried the fix from a page or so back, it still does the same thing after using uninstall sql. I also checked the phpmyadmin, I can't find any old traces of this module (I have been using the module since it first came out). Just the last version seemed to cause this issue.

Is there just a plain sql file version available at all, instead of the conig and autoloader for install please?

Thanks in advance