Documentation
Installation instructions
You can install extension using Extension Installer or manually. In the latter case unpack and upload all folders from "upload" directory to the root of your store. If there's install.xml file in the package, rename it to extension_name.ocmod.xml, replacing "extension_name" with extension's name (or any other name), and upload it to "system" folder. When upgrading from previous version simply rewrite all existing files. Refresh modifications cache from Extensions -> Modifications page (not needed if install.xml file is not included in the package).
Note for OpenCart 3 users
If you see "The directory is not allowed to be written to" error message, download OpenCart 3.0 Extension Installer Fix from this page and install it. Then install the main extension.
Note for OpenCart 2.0.X users
Sometimes OCMod inserts modification in multiple files, which are separated by "|" character in XML-file. On earlier OpenCart 2 versions a comma was used instead. To quickly fix this, open XML file (usually, install.xml) and replace all occurrences of "|" character with "," for "path" attribute in every applicable <file> element. Search for "<file path=" to quickly find and highlight all elements.
If after installation you have "Permission denied" issue when accessing Modules, Shipping, Payments, Order Totals (or any other) section of Extensions menu, remove "module", "shipping", "payment", "total" (or any other) folder from "admin/controller/extension" directory. Same for "admin/language/en-gb/extension" directory. For example ("module" should be removed from both paths):
admin/controller/extension/module
admin/language/en-gb/extension/module
Permissions
In some cases it is required to manually set permissions for installed extension. To do this go to System -> User Groups, find your group and select access/modify permissions for desired extension. You can find extension in permissions list by folder/filename pair (for example, marketing/acoupon).
Extension Setup
Go to Extensions -> Order Totals, find Payment Fee or Discount and setup accordingly.
How to use
You can add any number of fees or discounts for each payment method. Just click Add Item button in Fees or Discounts section, select payment method, choose customer group (or none, if you want to apply to all customer groups) and set Value as percent or fixed (e.g.: 5%, 11 etc).
Additionally you can set Order Subtotal value as a single value (100) or range (100-200) to limit fee or discount usage. For example, you can set a Fee to be charged only if cart subtotal is over 100 and below 200 in your main currency (100-200).
To remove previously set fee or discount click Remove Item button and save.
Important information:
- Proper setup of totals' ordering is a MUST for this extension to work as described. Do not set Sort Order value higher, than Total's, and lower, than Sub-Total's.
- If you want fee or discount to be applied to total amount, including shipping, voucher and all other possible fees and discounts, set Sort Order value one digit less than Total's.
- Be careful with "Round by" feature. Setting it to wrong number will cause improper counting of fees and discounts. Set it to zero to disable rounding.