| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Correct way to modify a Payment .php file in XC5 | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
Correct way to modify a Payment .php file in XC5
I want to comment out a couple of lines in the SagePayForm.php file in XC5, can you advise the correct method.
Can I just overwrite this file with the commented out lines? Or do I need some other method.
__________________
Richard Ultimate 5.4 testing |
|||||||||
#2
|
|||||||||
|
|||||||||
Re: Correct way to modify a Payment .php file in XC5
It is better to use decoration in order to apply such changes:
http://kb.x-cart.com/display/XDD/Step+3+-+applying+logic+changes because it will allow your changes to live through upgrades. Richard, could you please let me know what lines exactly you would like to comment out? Tony Quote:
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
#3
|
|||||||||
|
|||||||||
Re: Correct way to modify a Payment .php file in XC5
Quote:
I had this commented out also in XC4, the reason for me, is that I do not need to receive Sagepay Success/Failure e-mails, and also the customer does not need this. I prefer just my order confirmation e-mails. Could you please let me know the completed way to implement this.
__________________
Richard Ultimate 5.4 testing |
|||||||||
#4
|
|||||||||
|
|||||||||
Re: Correct way to modify a Payment .php file in XC5
The good way to achieve it is to decorate this class and define the new version of the getCrypt() method as follows there:
PHP Code:
Please, let me know if it helps. Tony
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
#5
|
|||||||||
|
|||||||||
Re: Correct way to modify a Payment .php file in XC5
Which file should this go in? In a new module Main.php ?
__________________
Richard Ultimate 5.4 testing |
|||||||||
|
|||
X-Cart forums © 2001-2020
|