Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

RMA_return_2.2 on oscommerce-2.2ms2


Guest

Recommended Posts

I have the customer "My Account" area working properly - but not the customer side tracking via the Information box > "Track a Return".

 

In the admin area all works, but my admin menu headings for Returns are showing the define names E.G. BOX_RETURNS_HEADING

 

These are the fixes I used to get my RMA_return_2.2 working on oscommerce-2.2ms2 to the stage listed above. Please keep in

 

mind that my installation has not been done on a fresh oscommerce-2.2ms2 install. I had 12 extra modules installed before RMA.

 

I found it difficult trying to find solutions for my RMA install. I've spent hours searching the forum and fiddlin' with code.

 

I have listed these fixes together in the one post in the hope that someone will read it, put A & B together and maybe come up with a working solution.

 

ERROR (1) ==========================

 

TO FIX THE FOLLOWING ERROR:

Parse error: parse error in /PATH_TO_YOUR_HOME_DIRECTORY/includes/modules/returns_track.php on (line 76 in my file)

 

Open: /includes/modules/returns_track.php

 

Locate the following code:

 

<?php

 

// $ordered_product_query = tep_db_query("SELECT * FROM " . TABLE_ORDERS_PRODUCTS . " where order_id = '" . $HTTP_GET_VARS

 

 

echo ' <tr>' . "\n" .

' <td class="main" align="right" valign="top" width="30">' . $returned_products['products_quantity'] .

 

' x</td>' . "\n" .

' <td class="main" valign="top">' . $returned_products['products_name'];

 

 

echo '</td>' . "\n";

echo ' <td class="main" align="right" valign="top">' . $currencies->format(($returned_products['final_price']) *

 

($returned_products['products_quantity'])) . '</td>' . "\n" .

' </tr>' . "\n";

 

?>

 

Reformat the code so it looks like this:

 

 

<?php

echo ' <tr>' . "\n" .

' <td class="main" align="right" valign="top" width="30">' . $returned_products['products_quantity'] .

 

' x</td>' . "\n" .

' <td class="main" valign="top">' . $returned_products['products_name'];

' </td>' . "\n";

' <td class="main" align="right" valign="top">' . $currencies->format(($returned_products['final_price'])

 

* ($returned_products['products_quantity'])) . '</td>' . "\n" .

' </tr>' . "\n";

?>

 

ERROR (2) ============================

 

TO FIX THE FOLLOWING ERROR:

Fatal error: Call to undefined function: tep_array_merge() in /PATH_TO_YOUR_HOME_DIRECTORY/admin/returns.php in line 771

 

Open: /admin/returns.php

 

Locate the following code:

 

<?php echo HEADING_TITLE_STATUS . ' ' . tep_draw_pull_down_menu('status', tep_array_merge(array(array('id' => '', 'text' =>

 

'All returns')), $orders_statuses), '', 'onChange="this.form.submit();"'); ?>

 

Change it so it looks like this:

 

<?php echo HEADING_TITLE_STATUS . ' ' . tep_draw_pull_down_menu('status', array_merge(array(array('id' => '', 'text' => 'All

 

returns')), $orders_statuses), '', 'onChange="this.form.submit();"'); ?>

 

NOTE: effectively all you have done is removed the tep_ from "tep_array_merge" call.

 

ERROR (3) ============================

 

ALSO IN THE SAME FILE: /admin/returns.php

 

The following did not make any difference to how my RMA performed, but it is an error in the code.

 

 

Locate the following code: in my file it's on line 828

 

<td class="dataTableContent" align="right"><?php if ( (is_object($oInfo)) && ($orders['returtns_id'] ==

 

$oInfo->returns_id) ) { echo tep_image(DIR_WS_IMAGES . 'icon_arrow_right.gif', ''); } else { echo '<a href="' .

 

tep_href_link(FILENAME_RETURNS, tep_get_all_get_params(array('oID')) . 'oID=' . $orders['returns_id']) . '">' .

 

tep_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . '</a>'; } ?> </td>

 

and find ['returtns_id']

replace it with ['returns_id']

 

 

ERROR (4) ============================

 

I stumbled across this one by mistake - A forum member had posted the following fix for someone. It's actually a statement from the installation documentation. Thing is, when I checked my code, the closing ?> at the bottom of the file was missing - worth a check!

 

Open catalog/includes/functions/general.php

at the end of the file just before the closing ?> add the following line

include('includes/functions/refund_functions.php');

 

=====================================

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...