In Zen Cart I’m using a non-standard currency code. Can I change your module to use it?

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:

  1. Open this file in your Zen Cart installation:
    /includes/modules/payment/payfast.php
  2. Find the text:
    $currency = 'ZAR';
  3. Change ZAR to the currency code for your non-standard currency (eg. ZA)
  4. Save the file

This will set the module to use your non-standard currency code.

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 ...
    • 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 ...
    • 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, 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 ...
    • How do I change the default currency in OpenCart?

      To change the default currency in OpenCart, do the following: In the admin backend, navigate to System > Settings and click Edit. Navigate to Local, change currency from USD to ZAR and click Save. The list of currencies is generated for the ...