m0hamedessam Posted August 16, 2013 Report Posted August 16, 2013 problem when adding Payment Types payment type name set blank after added any fix ??
Paul Posted August 16, 2013 Report Posted August 16, 2013 Please see How to report a bug - http://www.blesta.com/forums/index.php?/topic/738-read-first-how-to-report-a-bug/
m0hamedessam Posted August 17, 2013 Author Report Posted August 17, 2013 problem only if you check Uses Language Definition check pic i think you must define it on language file
Michael Posted August 17, 2013 Report Posted August 17, 2013 I can't find the language php page to help you /languages/client_payment.php is the closest I've found for you. You'd need to make a variable, that way if they was using French you'd put the French word in and it will show instead of the English. I don't think it's needed much.
Paul Posted August 17, 2013 Report Posted August 17, 2013 i'm not sure this is a bug, Blesta is attempting to use the language define to display the language, which is the intended purpose except that a language define does not exist. Michael 1
Tyson Posted August 17, 2013 Report Posted August 17, 2013 This is not a bug. If you read the tooltip next to the language checkbox when adding/editing a payment type, it will say that you should only check that box if you added the name to the language file. The language file is /languages/en_us/_custom.php. The same goes for custom fields and contact types. You'll need to either add the name to the language file, or edit the payment type and uncheck that box. Michael 1
Michael Posted August 17, 2013 Report Posted August 17, 2013 This is not a bug. If you read the tooltip next to the language checkbox when adding/editing a payment type, it will say that you should only check that box if you added the name to the language file. The language file is /languages/en_us/_custom.php. The same goes for custom fields and contact types. You'll need to either add the name to the language file, or edit the payment type and uncheck that box. Ah I thought I saw a custom but then I couldn't find it again. So OP needs to go to: /language/en_us/_custom.php then put this in it. $lang['_PaymentTypes.payment_type'] = "Payment Type"; I tested this to ensure I can do it haha. I used: $lang['_PaymentTypes.bank_transfer'] = "Bank Transfer"; And I entered: Name: bank_transfer And I ticked the box. I got this result: The payment type "Bank Transfer" has been successfully created! ariq01 1
Tyson Posted August 17, 2013 Report Posted August 17, 2013 Thanks for stepping through and describing the process. Yes, that is how you would setup language-based payment types. Closing thread as not a bug.
Recommended Posts