X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   General questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=66)
-   -   Using a method in another class (https://forum.x-cart.com/showthread.php?t=77377)

k1r1l 11-26-2019 02:01 AM

Using a method in another class
 
Good day, colleagues.
I turn to the point, there is a class (A) with a method of zeroing the delivery price. There is a second class (B), in which the logic of obtaining discounts on products occurs. The question itself, at a certain point in the logic of class (B), I need to call the method of class (A).
I did not find another solution, how can I set a free shipping price.
P.S. when I create a class object and call it I call the method I need, I get an error (Too few arguments to function XLite \ Logic \ Order \ Modifier \ AModifier :: __ construct (),) I don’t understand how I can override the constructor.
__________________


All times are GMT -8. The time now is 06:02 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.