How to change text

only1yoni

New Member
Whats up guys,

I want to change some of the text in the app for example:

1. I want to change "select your gateway" to select your payment method, in the drop down menu change "stripe" to "Credit card"

Thank you in advance.
 

twisted1919

Administrator
Staff member
We can guide you where to do that but on the next update your changes will go away because currently we don't have hooks for these areas.
 

laurentiu

Active Member
Staff member Support Staff
I want to change "select your gateway" to select your payment method,
You need to modify line 86 form file web/apps/customer/views/price_plans/list.php
PHP:
<?php echo CHtml::label(Yii::t('price_plans', 'Payment gateway selection'), 'payment_gateway');?>
Change "Payment gateway selection" with desired text.

in the drop down menu change "stripe" to "Credit card"
You need to modify line 161 from file web/apps/extensions/payment-gateway-stripe/PaymentGatewayStripeExt.php
PHP:
$paymentMethods['stripe'] = Yii::t('ext_payment_gateway_stripe', 'Stripe');
Change "Stripe" with desired text.
 

laurentiu

Active Member
Staff member Support Staff
@only1yoni - You need to modify line 54 from file web/apps/extensions/payment-gateway-stripe-subscriptions/customer/StripeSubscriptionsCustomerHandler.php
PHP:
$paymentMethods['stripe-subscriptions'] = $extension->t('Stripe Subscriptions');
 
Top