PDA

View Full Version : Mini Mods - Add Phrases to Subscription Payment Types


ChurchMedia
10-30-2006, 10:00 PM
This hack will add phrases for your payment types. For instance, if you use Authorize.net you can change the lable on the payment button. "Order Using Authorize.net" won't make sense to most people, but "Order Using Major Credit Card" is easy to understand and won't spook away visitors.

All phrases can be changed to whatever you like using the Phrase Manager in your admin cp.

See the screenshot for an example. The "Order Using Major Credit Card" is actually Authorize.net!

Also works in 3.5.x

--------------------------------
Product to Install: 1
New Phrases: 7
New Templates: 0
Files to Modify: 1
--------------------------------

Instructions:

1) Install product-payment-phrases.xml

2) Open payments.php from /forums root

3) Find this code around line 286:

// These phrases are constant since they are the name of a service
$tmp = array(
'paypal' => 'PayPal',
'nochex' => 'NOCHEX',
'worldpay' => 'WorldPay',
'2checkout' => '2Checkout',
'moneybookers' => 'MoneyBookers',
'authorizenet' => 'Authorize.net',
'ccbill' => 'CCBill',
);

4) REPLACE that code with:

// ChurchMedia Payment Phrase Hack
$tmp = array(
'paypal' => construct_phrase($vbphrase['payment_paypal']),
'nochex' => construct_phrase($vbphrase['payment_nochex']),
'worldpay' => construct_phrase($vbphrase['payment_worldpay']),
'2checkout' => construct_phrase($vbphrase['payment_2checkout']),
'moneybookers' => construct_phrase($vbphrase['payment_moneybookers']),
'authorizenet' => construct_phrase($vbphrase['payment_authorizenet']),
'ccbill' => construct_phrase($vbphrase['payment_ccbill']),
);
// END Payment Phrase Hack


5) Upload payments.php

6) Modify payment phrases as needed

Enjoy!

ChurchMedia
10-31-2006, 07:13 PM
~~~~~~~~~~~~~~~~~
Reserved
~~~~~~~~~~~~~~~~~

ChavMagnet
10-31-2006, 07:39 PM
Dont know what it does or if i need it but first post Woot!

aky
10-31-2006, 07:44 PM
2nd post

ChurchMedia
10-31-2006, 08:21 PM
Dont know what it does or if i need it but first post Woot!

The text on the payment buttons for subscriptions is not phrased. This phrases them.

Click install :)

ringleader
03-07-2008, 12:57 PM
Excellent stuff. Works on 3.6.8 PL2 btw. Thanks for this.