More payment options based on check and money order
We currently offer check and money order payment method on our website using zencart 188.8.131.52. This has been renamed and configured for the following methods of payment in one
postal order/ bacs / Telephone order
however we would like to have these options split ie create new modules from the check and money order files:-
I have looked through the forum and cant see how i could do this by cloning the money order payment option or by other means.
So i looked here:-
did not find a solution here
Then I looked in the zencart book (e-start your web store with zencart) i could see the payment options available pages 140-152 but no information on creating another option from the check and money order payment option.
I would like to know if i copy
The payment class is stored in
while all text is stored in the appropriate language file
includes/languages/<current language>/modules/payment/<module name>.php
and rename them for what i want and configure the different options like the text shown displayed is that going to provide what i want or will i cause problems with the programming?
if you want to see what i mean here is the website http://www.beeunique.co.uk/
Re: More payment options based on check and money order
As well as copying the payment class, you need to carry out a few slight changes.
IMPORTANT - The filename controls everything and can only be made up of alpha-numeric characters - no spaces, symbols or underscores.
1 - change the CLASS NAME, within the class file. This needs to be EXACTLY the same as the filename.
2 - change the CLASS FUNCTION name, which needs to be same as the filename.
3 - change the CLASS CODE variable, which is defined with $this->code = 'xxxxxx'; and is located in the first function. This CLASS CODE variable, again, MUST be the same as the filename.
4 - All constants must be changed, where they are inserted into the database. For instance, if you are copying the cc.php file, you would find a constant in the configuration table called MODULE_PAYMENT_CC_STATUS. If you are going to copy this module, you MUST change the constants throughout, so this one for example could be replaced with MODULE_PAYMENT_YOUR_MODULE_NAME_STATUS.
This is vital, as if you leave these in, and they exist in another module, all payment modules using the same constants may become unstable, and stop functioning.
By Billyboy in forum General Questions
Last Post: 10 Apr 2009, 04:44 PM
By ducksigns in forum Templates, Stylesheets, Page Layout
Last Post: 28 Oct 2007, 03:28 PM
By DogTags in forum Addon Payment Modules
Last Post: 31 May 2006, 05:06 PM
Content and Graphics Copyright (c) 2003 - 2013 Zen Ventures, LLC - all rights reserved
Zen Cart® is a Registered Trademark of Zen Ventures, LLC