Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Using a method in another class

 
Reply
   X-Cart forums > X-Cart 5 > General questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 11-26-2019, 02:01 AM
 
k1r1l k1r1l is offline
 

Newbie
  
Join Date: Nov 2019
Posts: 5
 

Post 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.
__________________
__________________
5.4.0.5
Modules
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > General questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:34 AM.

   

 
X-Cart forums © 2001-2020