On Zen Cart, how do I modify the “look” of the PayFast option on the Payment Information page?

On Zen Cart, how do I modify the “look” of the PayFast option on the Payment Information page?

On the Payment Information page (step 2 of the checkout process), the PayFast option is depicted by a small PayFast logo.

To modify the look of the option, do the following:

  • Open the following file in your installation:/includes/languages/english/modules/payment/payfast.php
    • To add text after the logo, modify the MODULE_PAYMENT_PAYFAST_ACCEPTANCE_MARK_TEXT define.
    • To change the option entirely, modify the MODULE_PAYMENT_PAYFAST_TEXT_CATALOG_LOGO define.
  • Save the file

Please note: If you upgrade to a new version of the PayFast module at a later stage, your changes will be overridden. So remember to save your changes before doing so.


    • Related Articles

    • How do I integrate PayFast with Zen Cart?

      In order to use PayFast with Zen Cart, you will need to install the PayFast payment module for Zen Cart which is provided by PayFast. Installation requirements A working Zen Cart installation Installation and testing To install the PayFast payment ...
    • In Zen Cart I’m using a non-standard currency code. Can I change your module to use it?

      While we don’t recommend this at all, you can do this as follows: Open this file in your Zen Cart installation: /includes/modules/payment/payfast.php Find the text: $currency = 'ZAR'; Change ZAR to the currency code for your non-standard currency ...
    • Where is my "base Zen Cart folder"?

      This is the root of your Zen Cart installation. Where this is, depends on what system you are using and where you are hosting. The easiest way to find this though would be to look for the Zen Cart directory structure. The base (or root) Zen Cart ...
    • On Zen Cart, my customers are getting the error “amount is required”.

      Getting the error as detailed below, is most likely due to your currency configuration which is incorrect and the amount is therefore coming through as 0.00. Our module requires that you use ZAR as your primary currency and that it is configured with ...
    • How do I integrate PayFast with CS-Cart?

      You’ll need a working installation of CS-Cart before you can integrate with PayFast. Kindly see their website for more information. Installation and testing V4 To install the PayFast payment module, do the following: Download the payment module. ...