Zen Cart Logo
Forums / All Other Contributions/Addons / Return Authorization Module (RMA)

Return Authorization Module (RMA)

Views: 109,995

Results 381 to 400 of 644
4 Jan 2010, 1:27 AM
#381
clydejones avatar

clydejones

Deceased

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

Return Authorization Module (RMA)

booghaboobaby:

Kevy & Clyde, I had the same problem and just installed your kevyfix and it populated my columns and pictures again but when I click on the link nothing happens. I've read and re-read but I can not figure out where /how to make the form show up. Here is my link https://www.dittanybaby.com/test/index.php?main_page=FILENAME_RETURNS

Can u help clyde?
Shannon

Make sure you have uploaded ALL the files necessary for this mod to function properly:

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

4 Jan 2010, 1:45 AM
#382
booghaboobaby avatar

booghaboobaby

New Zenner

Join Date:
Nov 2006
Posts:
51
Plugin Contributions:
0

Re: Return Authorization Module (RMA)

Yes I confirmed that all of those files are there. I did miss renaming one of the YOUR_TEMPLATE but even fixing that I still am having the same issue. https://www.dittanybaby.com/test/index.php?main_page=FILENAME_RETURNS
Is there someplace else I should look?

4 Jan 2010, 2:22 AM
#383
clydejones avatar

clydejones

Deceased

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

Re: Return Authorization Module (RMA)

booghaboobaby:

Yes I confirmed that all of those files are there. I did miss renaming one of the YOUR_TEMPLATE but even fixing that I still am having the same issue. https://www.dittanybaby.com/test/index.php?main_page=FILENAME_RETURNS
Is there someplace else I should look?

download and install the debug error logging utility

4 Jan 2010, 2:55 AM
#384
booghaboobaby avatar

booghaboobaby

New Zenner

Join Date:
Nov 2006
Posts:
51
Plugin Contributions:
0

Re: Return Authorization Module (RMA)

thanks I will as soon as i rebuild it! I crashed it loading the customer rewards module and am having to re-install it now. I'll let you know.
thanks again!

21 Jan 2010, 10:56 PM
#385
lankeeyankee avatar

lankeeyankee

Totally Zenned

Join Date:
Jan 2007
Posts:
1,514
Plugin Contributions:
1

Re: Return Authorization Module (RMA)

Hi Clyde,

Thanks for all of your great mods, we use several of them! I have been using this mod for a while now, v2.2, and have always meant to figure out how to change the action requested:0 in the email to read action requested:Return or whatever the value is in the admin configuration. Could you please tell me how to fix that?

Thanks!

22 Jan 2010, 12:05 AM
#386
clydejones avatar

clydejones

Deceased

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

Re: Return Authorization Module (RMA)

lankeeyankee:

Hi Clyde,

Thanks for all of your great mods, we use several of them! I have been using this mod for a while now, v2.2, and have always meant to figure out how to change the action requested:0 in the email to read action requested:Return or whatever the value is in the admin configuration. Could you please tell me how to fix that?

Thanks!

Not sure what you mean:

This is what you should get:

Order Number: T00000
Total Value:
Item Number:
Item Name:
Action Requested: Replacement

Reason: Test of return authorization mod

What are the settings you have in the admin configuration settings?

22 Jan 2010, 12:49 AM
#387
lankeeyankee avatar

lankeeyankee

Totally Zenned

Join Date:
Jan 2007
Posts:
1,514
Plugin Contributions:
1

Re: Return Authorization Module (RMA)

Order Number: 74770
Total Value:
Item Number:
Item Name:
Action Requested: 0

I haven't changed anything from the stock module, I have the setting set to:

Phone Number true
Total Value false
Item Number true
Only registered customers may submit a return request false
Set "Return Action" Dropdown List Refund, Replacement

When searching through this thread for "Action Requested" I see where other people have posted their emails that they have the array number instead of the value, too, but others have the value. Search the thread if you want to see what I mean.

22 Jan 2010, 1:06 AM
#388
clydejones avatar

clydejones

Deceased

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

Re: Return Authorization Module (RMA)

lankeeyankee:

Order Number: 74770
Total Value:
Item Number:
Item Name:
Action Requested: 0

I haven't changed anything from the stock module, I have the setting set to:

Phone Number true
Total Value false
Item Number true
Only registered customers may submit a return request false
Set "Return Action" Dropdown List Refund, Replacement

When searching through this thread for "Action Requested" I see where other people have posted their emails that they have the array number instead of the value, too, but others have the value. Search the thread if you want to see what I mean.

can you post the code from tpl_returns_default.php

from about line(s) 123 to 137

BTW - the most recent version in the downloads section is 2.3.0

22 Jan 2010, 1:30 AM
#389
lankeeyankee avatar

lankeeyankee

Totally Zenned

Join Date:
Jan 2007
Posts:
1,514
Plugin Contributions:
1

Re: Return Authorization Module (RMA)

<?php
if (RETURN_ACTION_LIST !=''){

  foreach(explode(",", RETURN_ACTION_LIST) as $k => $v) {
    $entry_action_array[] = array('id' => $k, 'text' => preg_replace('/\<[^*]*/', '', $v));
  }
?>  
<label class="inputLabel" for="entry-action"><?php echo ENTRY_ACTION; ?></label>
<?php echo zen_draw_pull_down_menu('action', $entry_action_array, 'id="entry-action"');?>

<?php
} else {
$default_action = ENTRY_ACTION_DEFAULT;
?>

<label class="inputLabel" for="entry-action"><?php echo ENTRY_ACTION; ?></label>
<?php echo zen_draw_input_field('action', $default_action, 'size="20" id="entry-action"') ; ?>

<?php
}    
?>

Is that what you are looking for? I guess I should look at the update module!:blush:

22 Jan 2010, 2:10 AM
#390
clydejones avatar

clydejones

Deceased

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

Re: Return Authorization Module (RMA)

lankeeyankee:

<?php if (RETURN_ACTION_LIST !=''){ foreach(explode(",", RETURN_ACTION_LIST) as $k => $v) { $entry_action_array[] = array('id' => $k, 'text' => preg_replace('/\<[^*]*/', '', $v)); } ?>

<label class="inputLabel" for="entry-action"><?php echo ENTRY_ACTION; ?></label>

<?php echo zen_draw_pull_down_menu('action', $entry_action_array, 'id="entry-action"');?> <?php } else { $default_action = ENTRY_ACTION_DEFAULT; ?>

<label class="inputLabel" for="entry-action"><?php echo ENTRY_ACTION; ?></label>

<?php echo zen_draw_input_field('action', $default_action, 'size="20" id="entry-action"') ; ?> <?php } ?>
> 
> Is that what you are looking for? I guess I should look at the update module!:blush:

Try changing this line:

    $entry_action_array[] = array('id' => $k, 'text' => preg_replace('/\<[^*]*/', '', $v));

TO this


    $entry_action_array[] = array('id' => $v, 'text' => preg_replace('/\<[^*]*/', '', $v));
13 Feb 2010, 10:11 PM
#391
steveyork136 avatar

steveyork136

New Zenner

Join Date:
Nov 2005
Posts:
84
Plugin Contributions:
0

Re: Return Authorization Module (RMA)

can anyone help me with this, I've altered this mod and just need a little help to finish it off.

What I've done is provide a return request link from a customers account page, this passes the order id to the Return request page, which fills in the order id for the customer.
I've also added the code below to pull in the items from the order so the customer can select via checkbox which item they want to return.

The problem I am having is looping through the checkboxes when its posted and then adding them to the e-mail sent to the site admin.

Its probably quite simple but my brain is now fried.

Once I've got this sorted I'll post my tweaks as someone may find them useful.

This section get the order id

 <?php if  ($_GET['order_id'] !=  '') {$order_number = $_GET['order_id'];} ?>
  <?php if  ($_POST['order_id'] !=  '') {$order_number = $_POST['order_id'];} ?>
<? $orderidnumber = $order_number;?>

This section gets the items from the order

<li>
<label for="item_name"><?php echo ENTRY_ITEM_NAME . zen_image($template->get_template_dir(RETURN_OPTIONAL_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . RETURN_OPTIONAL_IMAGE, RETURN_OPTIONAL_IMAGE_ALT, RETURN_OPTIONAL_IMAGE_WIDTH, RETURN_OPTIONAL_IMAGE_HEIGHT); ?></label>
<? global $db;?>

<? $rmaproduct = $db->Execute("SELECT * from " . TABLE_ORDERS_PRODUCTS . " WHERE orders_id = $orderidnumber" );
while (!$rmaproduct ->EOF) {
echo '<input name="item_name" checked="checked"  type="checkbox" value="'. $rmaproduct->fields['products_name'] . ' model='. $rmaproduct->fields['products_model'] . '" />'. $rmaproduct->fields['products_name'] . '<br />';
$rmaproduct->MoveNext();
}?>
</li>
13 Feb 2010, 11:03 PM
#392
clydejones avatar

clydejones

Deceased

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

Re: Return Authorization Module (RMA)

If I have multiple orders how do you select which order number to use?

steveyork136:

can anyone help me with this, I've altered this mod and just need a little help to finish it off.

What I've done is provide a return request link from a customers account page, this passes the order id to the Return request page, which fills in the order id for the customer.
I've also added the code below to pull in the items from the order so the customer can select via checkbox which item they want to return.

The problem I am having is looping through the checkboxes when its posted and then adding them to the e-mail sent to the site admin.

Its probably quite simple but my brain is now fried.

Once I've got this sorted I'll post my tweaks as someone may find them useful.

This section get the order id

<?php if ($_GET['order_id'] != '') {$order_number = $_GET['order_id'];} ?> <?php if ($_POST['order_id'] != '') {$order_number = $_POST['order_id'];} ?> <? $orderidnumber = $order_number;?>
> 
> 
> This section gets the items from the order
> 
> ```
<li>
<label for="item_name"><?php echo ENTRY_ITEM_NAME . zen_image($template->get_template_dir(RETURN_OPTIONAL_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . RETURN_OPTIONAL_IMAGE, RETURN_OPTIONAL_IMAGE_ALT, RETURN_OPTIONAL_IMAGE_WIDTH, RETURN_OPTIONAL_IMAGE_HEIGHT); ?></label>
<? global $db;?>

<? $rmaproduct = $db->Execute("SELECT * from " . TABLE_ORDERS_PRODUCTS . " WHERE orders_id = $orderidnumber" );
while (!$rmaproduct ->EOF) {
echo '<input name="item_name" checked="checked"  type="checkbox" value="'. $rmaproduct->fields['products_name'] . ' model='. $rmaproduct->fields['products_model'] . '" />'. $rmaproduct->fields['products_name'] . '<br />';
$rmaproduct->MoveNext();
}?>
</li>
14 Feb 2010, 7:23 AM
#393
steveyork136 avatar

steveyork136

New Zenner

Join Date:
Nov 2005
Posts:
84
Plugin Contributions:
0

Re: Return Authorization Module (RMA)

Hi clydejones

I add a link from the customers account page, so on page tpl_account_default.php where a customer can view their orders, next to the view button there is a "return request button", clicking this button sends the customer (with the order_id in the url) to the return request page.

This is the code for the tpl_account_default.php page

The extra code is <th scope="col"><?php echo TABLE_HEADING_RMA; ?></th> which adds the column header

and

<td width="120px"><?php echo '<a href="' . zen_href_link(FILENAME_RETURNS, 'order_id=' . $orders['orders_id'], 'SSL') . '"> ' . zen_image_button(BUTTON_IMAGE_RMA_SMALL, BUTTON_RMA_SMALL_ALT) . '</a>'; ?></td>

which builds the link using the zen button scheme

<table width="100%" border="0" cellpadding="0" cellspacing="0" id="prevOrders">
<caption><h2><?php echo OVERVIEW_PREVIOUS_ORDERS; ?></h2></caption>
    <tr class="tableHeading">
    <th scope="col"><?php echo TABLE_HEADING_DATE; ?></th>
    <th scope="col"><?php echo TABLE_HEADING_ORDER_NUMBER; ?></th>
    <th scope="col"><?php echo TABLE_HEADING_SHIPPED_TO; ?></th>
    <th scope="col"><?php echo TABLE_HEADING_STATUS; ?></th>
    <th scope="col"><?php echo TABLE_HEADING_TOTAL; ?></th>
    <th scope="col"><?php echo TABLE_HEADING_VIEW; ?></th>
    <th scope="col"><?php echo TABLE_HEADING_RMA; ?></th>
  </tr>
<?php
  foreach($ordersArray as $orders) {
?>
  <tr>
    <td width="80px"><?php echo zen_date_short($orders['date_purchased']); ?></td>
    <td width="40px"><?php echo TEXT_NUMBER_SYMBOL . $orders['orders_id']; ?></td>
    <td  align="center"><address><?php echo zen_output_string_protected($orders['order_name']) . '<br />' . $orders['order_country']; ?></address></td>
    <td width="80px"><?php echo $orders['orders_status_name']; ?></td>
    <td width="80px" align="right"><?php echo $orders['order_total']; ?></td>
    <td align="center"><?php echo '<a href="' . zen_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $orders['orders_id'], 'SSL') . '"> ' . zen_image_button(BUTTON_IMAGE_VIEW_SMALL, BUTTON_VIEW_SMALL_ALT) . '</a>'; ?></td>
    <td width="120px"><?php echo '<a href="' . zen_href_link(FILENAME_RETURNS, 'order_id=' . $orders['orders_id'], 'SSL') . '"> ' . zen_image_button(BUTTON_IMAGE_RMA_SMALL, BUTTON_RMA_SMALL_ALT) . '</a>'; ?></td>
  </tr>
<?php
  }
?>
</table>
12 Mar 2010, 9:08 AM
#394
sonjamichelle avatar

sonjamichelle

New Zenner

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

Re: Return Authorization Module (RMA)

Using Zen-Cart ver 1.3.8a

Also using RMA Version: v2.3.2
Last Updated: Jan 29 2010

The form is showing up fine, I can fill everything out, however when you hit submit, the customer receives an email however I don't receive an email containing the customer's information.

12 Mar 2010, 2:59 PM
#395
clydejones avatar

clydejones

Deceased

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

Re: Return Authorization Module (RMA)

sonjamichelle:

Using Zen-Cart ver 1.3.8a

Also using RMA Version: v2.3.2
Last Updated: Jan 29 2010

The form is showing up fine, I can fill everything out, however when you hit submit, the customer receives an email however I don't receive an email containing the customer's information.

Check your email settings admin -> configuration -> e-mail options

Also check the spam filter settings on your e-mail accounts

12 Mar 2010, 8:04 PM
#396
sonjamichelle avatar

sonjamichelle

New Zenner

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

Re: Return Authorization Module (RMA)

Turned out to be issues on the server side. Have it all sorted out now.

However, when I do get the RMA request in my inbox it's not formatted very well.

All the fields are jumbled together.

From: Sonja ThomasEmail: [email protected]
Number: xxx-xxx-xxxAddress: xxxx N Georgetown City: Round RockPost
Code: 78664Country: United StatesState: TXOrder Number: 2077Total
Value: Item Number: AR004M-2-XItem Name: M15A4 RIS (Crane Stock Model)Action
Requested: Refund------------------------------------------------------Reason: php
wrapper test------------------------------------------------------Office Use
Only:
From:

What file would I hunt down in order to clean this up?

12 Mar 2010, 8:12 PM
#397
clydejones avatar

clydejones

Deceased

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

Re: Return Authorization Module (RMA)

sonjamichelle:

Turned out to be issues on the server side. Have it all sorted out now.

However, when I do get the RMA request in my inbox it's not formatted very well.

All the fields are jumbled together.

What file would I hunt down in order to clean this up?

Do a search through this thread. This has been discussed several times.

Also check your settings in admin -> configuration -> e-mail options

E-Mail Transport Method sendmail
E-Mail Linefeeds LF

13 Mar 2010, 6:03 AM
#398
kgmmusic avatar

kgmmusic

New Zenner

Join Date:
Nov 2005
Posts:
76
Plugin Contributions:
0

Re: Return Authorization Module (RMA)

clydejones:

Do a search through this thread. This has been discussed several times.

Also check your settings in admin -> configuration -> e-mail options

E-Mail Transport Method sendmail
E-Mail Linefeeds LF
I am having the same formatting problem and searched this thread but could not locate a definitive fix, and none of the things I have tried have worked so far.

13 Mar 2010, 7:21 AM
#399
clydejones avatar

clydejones

Deceased

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

Re: Return Authorization Module (RMA)

sonjamichelle:

Turned out to be issues on the server side. Have it all sorted out now.

However, when I do get the RMA request in my inbox it's not formatted very well.

All the fields are jumbled together.

What file would I hunt down in order to clean this up?

kgmmusic:

I am having the same formatting problem and searched this thread but could not locate a definitive fix, and none of the things I have tried have worked so far.

are you receiving these at plain text or in html format?

15 Mar 2010, 7:13 AM
#400
kgmmusic avatar

kgmmusic

New Zenner

Join Date:
Nov 2005
Posts:
76
Plugin Contributions:
0

Re: Return Authorization Module (RMA)

I set it to HTML in the ADMIN but they are coming in as PLAIN TEXT and the formatting is like this:

From: Kevin McGurkEmail: [email protected]
Number: 615-262-7018Address: 1009 Preston DriveCity: NashvillePost
Code: 37206Country: United StatesState: TNOrder Number: 999Total
Value: 354.65Item Number: 411789Item Name: Toilet BowlAction
Requested: Refund------------------------------------------------------Reason: wrong
size------------------------------------------------------Office Use Only:
From: Kevin McGurk
Email: [email protected]
Telephone: 615-262-7018
IP Address: 98.240.57.43 - 98.240.57.43
Host Address: c-98-240-57-43.hsd1.tn.comcast.net
Date and Time: Sat Mar 13 2010 0:00:47 CST