Note: This solution is a legacy article for versions 2.00 to 3.0.5. Versions 3.0.6 and newer should be translated normally using Loco Translate or the standard PO/MO translation files.
If you're using the MM_Form_Message type='error' SmartTag on your checkout page, this SmartTag™ is responsible for outputting any error messages that come from MemberMouse. The exact error message that should be displayed is passed to the checkout page via the URL query string in the ‘message' parameter:
Since the error message is passed through the query string, it's stored in the PHP ‘$_GET' array and can be accessed in PHP as follows: ‘$_GET[‘message']'.
If you are technically inclined, you can write code to detect particular messages coming from MemberMouse. If you'd like to change them, you can set the new message in the ‘$_GET' array.
$_GET['message'] = "This is my custom error message";
You'll just need to make sure you do this early enough in the page execution such that it happens before the MemberMouse MM_Form_Message type='error' SmartTag attempts to display the message on the screen.
In order to get a head start on this process, we have included this Sample Script for you as mentioned above.
Below is a list of some of the possible error messages MemberMouse may present.
Note: This is only a partial list as an example of messages your users may see:
Type | Messages |
message | Invalid username or password. |
message | Your card number is incorrect. |
message | This product can only be purchased once. To gain the same access, please purchase the alternate product shown below. |
message | Invalid captcha entry |
message | You don't have permission to place an order for another user |
message | Cannot complete order. Membership level ID is not valid. |
message | Cannot complete order. Membership level is not active. |
message | Payment Service is not configured for this site. |
message | No onsite or off site payment methods are configured for this site |
message | You must be logged into your account in order to succesfully checkout |
message | You don't have sufficient permissions to place an order for another user. |
message | An account with that email already exists. |
message | Cannot complete order. Product is not available. |
message | You must be logged in to purchase a gift. |
message | Error creating free account. |
message | Payment for order number was successful but there was an error granting access to your content |