Jump to content

Recommended Posts

Posted (edited)

I have a contribution for Phoenix.
RMA Request Module

tested on OSCOMMERCE PHOENIX V1.0.5.0 (in my own shop)


This module allows a customer easily to submit a RMA request to the webshop manager and shows all the orders made in the last 15 days.
If you will show orders older, you need to change a value in a string (see below)
You must be a customer to submit the form or you must login

******************************************************************************************************
*  For use with Recaptcha V3 you need to install    catalog/includes/hooks/shop/rma/Recaptcha3  *
*  If you don't use Recaptcha V3 you don't need to install the hooks module                                           *
******************************************************************************************************

Instructions for regular use:


Add the files in the folders:
-catalog/rma.php      rma.php
-catalog/includes/hooks/shop/rma/Recaptcha3   Recaptcha3.php     (only if you have Recaptcha3)
-catalog/includes/languages/dutch/rma.php   rma.php
-catalog/includes/languages/english/rma.php   rma.php
-catalog/includes/languages/french/rma.php   rma.php

Search in the file catalog/includes/languages/ [your languages] /shipping.php 
for    define('TEXT_CONTAINER_BLOK',' xxxxxxxxxxxx '); 
and add the text below


Catalog/includes/languages/dutch/shipping.php

add or replace:


define('TEXT_CONTAINER_BLOK', '
<p>
<strong><i>Retourlabel: </i> </strong> Vraag  <a href="rma.php" target="_parent"><i><b>hier</b></i></a>  uw retourlabel aan.
</p>');

--------------------------------------------------------

Catalog/includes/languages/english/shipping.php

add or replace:

define('TEXT_CONTAINER_BLOK', '
<p>
<strong><i>Retourlabel: </i> </strong> Ask your retourlabel  <a href="rma.php" target="_parent"><i><b>here</b></i></a>
</p>');

---------------------------------------------------------

Catalog/includes/languages/french/shipping.php

add or replace:

define('TEXT_CONTAINER_BLOK', '
<p>
<strong> <i> &Eacute;tiquette de retour: </i> </strong> Demandez votre &eacute;tiquette de retour <a href="rma.php" target="_parent"> <i> <b> ici </b> </ i> </a>
</p>');

----------------------------------------------------------


ORDERS MADE IN THE LAST xx DAYS

//catalog/rma.php

search:    $next_due_date = strtotime ( '15 day' , strtotime ( $date ) ) ;
change 15 in another value

exemple:
orders made in the last 30 days will be:  $next_due_date = strtotime ( '30 day' , strtotime ( $date ) ) ;

 

-----------------------------------------------------------

If you add  "0Cancelled" in  your shop's administrator / localisation / orderstatus  =>  all cancelled orders will be shown as marked "order cancelled" otherwise they are highlighted as green

If it's the last day to ask for a RMA for an order, that order will be highlited in red, all other orders are highlighted in green.

 

Succes folks !


 

Edited by grouppda

Share this post


Link to post
Share on other sites

BUG:  I forgot to delete  a critical line  in  catalog/rma.php

In my shop's mail there is a logo placed at the top, this will not work in your shop, so you need to delete just one line at 43:

$email_text.= "<img src='https://xtreme-iceskateshop.be/images/icons/logo.jpg'/>";

If you want a logo you should modify this line: 

$email_text.= "<img src='https:// [your shop] /images/icons/logo.jpg'/>";

and add a picture named logo.jpg in the folder:  catalog/images/icons

 

Here's the file without the link to the logo: rma.php

 

 

 

 

Share this post


Link to post
Share on other sites

As I said before, make it a straight drop in.

47 minutes ago, grouppda said:

$next_due_date = strtotime ( '15 day' , strtotime ( $date ) ) ;

Make this ^ configurable from admin.

 

6 minutes ago, grouppda said:

$email_text.= "<img src='https:// [your shop] /images/icons/logo.jpg'/>";

Make this ^ so it picks up the store logo by default.

And bundle it all up properly and I suspect people will use it.

Share this post


Link to post
Share on other sites
1 minute ago, LeeFoster said:

As I said before, make it a straight drop in.

Make this ^ configurable from admin.

 

Make this ^ so it picks up the store logo by default.

And bundle it all up properly and I suspect people will use it.

That's the problem, I don't know how I can do this, I am not a programmer, I try just with the "Try and Error"-Method :) 
Maybe one of the guys can fix this or send me the script for it.

 

Share this post


Link to post
Share on other sites

Change -

Quote

$email_text.= "<img src='https:// [your shop] /images/icons/logo.jpg'/>";

To something like -

Quote

$email_text.= "' . STORE_LOGO . '";

 

Share this post


Link to post
Share on other sites

I believe it would be beneficial to save the RMA request in the Database so that both you and customer can track the status etc.   
Much like how an order is kept track of.

What you have made is the "acorn" of a good idea that someone should run with.


Help shape the future of Phoenix; join the Phoenix Club

Share this post


Link to post
Share on other sites
1 minute ago, burt said:

I believe it would be beneficial to save the RMA request in the Database so that both you and customer can track the status etc.   
Much like how an order is kept track of.

What you have made is the "acorn" of a good idea that someone should run with.

Never thought it didn't do that.

Share this post


Link to post
Share on other sites
34 minutes ago, LeeFoster said:

Change -

To something like -

 

And if we use a different logo on our mails ?

For exemple, in our shop we have a logo with a black background 1280px x 115px  and on our mails we have a smaller logo with a white background 140px x50px
Maybe an idea to chose between different logo's...

Share this post


Link to post
Share on other sites
1 minute ago, grouppda said:

And if we use a different logo on our mails ?

For exemple, in our shop we have a logo with a black background 1280px x 115px  and on our mails we have a smaller logo with a white background 140px x50px
Maybe an idea to chose between different logo's...

Again this is something that could be configurable in admin.

 

Share this post


Link to post
Share on other sites
29 minutes ago, burt said:

I believe it would be beneficial to save the RMA request in the Database so that both you and customer can track the status etc.   
Much like how an order is kept track of.

What you have made is the "acorn" of a good idea that someone should run with.

let's rock & roll :) 

Share this post


Link to post
Share on other sites
Just now, LeeFoster said:

Again this is something that could be configurable in admin.

 

Again, I'm not a programmer, I just try...  I came from Oscommerce V2.0  and I upgraded last month to Phoenix... 
Maybe there is a guy who can fix this.

Share this post


Link to post
Share on other sites
Just now, grouppda said:

Again, I'm not a programmer, I just try...  I came from Oscommerce V2.0  and I upgraded last month to Phoenix... 
Maybe there is a guy who can fix this.

No I understand that, it goes back to what @burt said.

Share this post


Link to post
Share on other sites
Just now, LeeFoster said:

No I understand that, it goes back to what @burt said.

I know...

Share this post


Link to post
Share on other sites

I have another good idea,  a contribution to extract product information from the database into an excel file... Maybe this exists allready ? 

Share this post


Link to post
Share on other sites
2 minutes ago, grouppda said:

I have another good idea,  a contribution to extract product information from the database into an excel file... Maybe this exists allready ? 

For what purpose?

Share this post


Link to post
Share on other sites

Did you have a look on this:

RMA Returns System for osC2.3.4BS

why reinvent the wheel. Maybe just update this to Phoenix.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×