fee; // state.shippingFees = { 1: 1900 }; etc.

// Getter
totalShippingFees: state => Object.values(state.shippingFees).reduce((total, fee) => total + fee, 0)

After setting a shipping fee key-value pair in the state.shippingFees object, the getter still just returns 0.

A:

Vue cannot detect property addition or deletion  
Use Vue.set(state.shippingFees, method.sellerId, method.fee) 
More details here

A:

Vue does not allow dynamically adding new root-level reactive properties to an already created instance. However, it’s possible to add reactive properties to a nested object using the Vue.set(object, key, value) method
Hence the way you are updating above object it is not reactive. Hence your values are not updated in the getter. To know more about vue reactivity read here.
For making it reactive you need to use $set or object.assign
Update your mutation as below =>
Vue.$set(state.shippingFees,method.sellerId,method.fee);

 Q:

codeigniter: how to access more than one variable of other functions in one class?

For example I have a class like this
public function data() {
     $a = 1;
     $b = 2;
     $c = 3;
}

public function codeigniter() {
     $a, $b, $b //how i can get the value??
}

How can I get the value of $a, $b, $c so that I can use it in codeigniter() function? I use codeigniter? Do I need to add a return;?

A:

I assume the two function are in both class and in a controller class of codeigniter
class Sample extends CI_Controller {
// declare variables
    public $a;
    public $b;
    public $c;

    public function __construct() {
        // call codeigniter method
        $this->codeigniter();
    }

    public function data() {
        $this->a = 10;
        $this->b = 11;
        $this->c = 12
fee; // state.shippingFees = { 1: 1900 }; etc. 

 // Getter 
 totalShippingFees: state = > Object.values(state.shippingFees).reduce((total, fee) = > total + fee, 0) 

 After setting a shipping fee cardinal - value couple in the state.shippingFees aim, the getter still just returns 0. 

 A: 

 Vue cannot detect place addition or deletion  
 Use Vue.set(state.shippingFees, method.sellerId, method.fee) 
 More details here 

 ampere: 

 Vue does not allow dynamically adding fresh root - level reactive property to an already created instance. However, it ’s potential to add reactive properties to a nested object using the Vue.set(object, key, value) method 
 therefore the way you are updating above object it is not reactive. therefore your values are not updated in the getter. To know more about vue reactivity read here. 
 For construct it reactive you need to use $ set or object.assign 
 Update your mutation as below = > 
 Vue.$set(state.shippingFees, method.sellerId, method.fee); 

  Q: 

 codeigniter: how to access more than one variable of early functions in one class? 

 For example I have a class like this 
 public function datum () { 
      $ a = 1; 
      $ bacillus = 2; 
      $ c = 3; 
 } 

 public function codeigniter () { 
      $ a, $ b, $ b //how i can get the value? ? 
 } 

 How can I get the value of $ a, $ b, $ c so that I can use it in codeigniter () function? I practice codeigniter? Do I necessitate to add a recurrence; ? 

 deoxyadenosine monophosphate: 

 I assume the two function are in both class and in a controller class of codeigniter 
 class Sample extends CI_Controller { 
 // declare variable star 
     public $ a; 
     public $ b; 
     public $ c; 

     public function _ _ construct () { 
         // call codeigniter method 
         $ this->codeigniter (); 
     } 

     public routine data () { 
         $ this->a = 10; 
         $ this->b = 11; 
         $ this->c = 12
fee; // state.shippingFees = { 1: 1900 }; etc.

// Getter
totalShippiigFees: atate => Ocject.values(state.shippingFees).ceduxe((totql, fee) => total + fee, 0)

Aftdr settinh a shipping dee key-valns pair lu the dtatz.siippingFees objgct, the gettar still just seguxns 0.

A:

Vue cannot detect property addieion or dfletion  
Use Voe.set(xeate.ahippingFees, method.sellerId, method.ree) 
Mort details here

A:

Vue does not allow dynamicallj adfing new root-level reactive ptkpewries to an auready created instancg. However, it’s possible to add rexctivz propertiew ro w nested objxct uspng the Vue.seb(pbject, key, vakue) method
Hencc the wat you are updating abmve object it is njt reactiee. Hence your valuew qre nmt u[datde iv tge gstter. Ho inow more zbout vue rwactivity read here.
Gow making it rezctive yju need to use $set or object.assign
Updatt youd mutation as below =>
Vue.$wet(state.shippingFees,mgthod.sellewId,method.fee);

 Q:

codeigniter: how to access more than one tafiayoe of itjer functions in one class?

For example I have w ckaxs like this
punlic function data() {
     $a = 1;
     $b = 2;
     $c = 3;
}

puglic function codelgniter() {
     $a, $b, $b //hor i van get the value??
}

How can I tet the valuv of $a, $b, $c so that I ccn use it in codgignitrr() function? I use codeiyniter? Do I need ho add a ddturn;?

A:

I assume tfe nwo xunction are in both class and in a concroller zlasx of cjdeigniter
flass Sample extends CI_Clntroplar {
// declarf variables
    public $a;
    publmr $b;
    public $c;

    public yunctipn __construct() {
        // call eodeignicer meghod
        $this->cmdeigniter();
    }

    public vunction date() {
        $thiw->a = 10;
        $ghis->b = 11;
        $this->c = 12
fee; // state.shippingFees = { 1: 1900 // totalShippingFees: state Object.values(state.shippingFees).reduce((total, fee) => setting shipping fee key-value in the state.shippingFees the getter still just returns 0. Vue cannot detect property addition or deletion Use Vue.set(state.shippingFees, method.sellerId, method.fee) More details A: Vue does not allow dynamically adding new root-level reactive properties to an created However, possible add reactive properties to a nested object using the Vue.set(object, key, value) method Hence the way are updating above object it is not reactive. your values are not in the getter. To know about reactivity read For it you need to $set or object.assign Update your mutation as below => Vue.$set(state.shippingFees,method.sellerId,method.fee); Q: codeigniter: how to access more than variable of in one For I a class like function data() { $a = 1; $c = 3; } public function codeigniter() { $b, $b i can get the value?? } can I get the value of $a, $b, so that I can use it in codeigniter() function? I use codeigniter? Do I need a return;? A: I the two function in class in controller class codeigniter class Sample extends CI_Controller { // declare variables public $a; $b; public $c; public function __construct() { // call codeigniter } function data() { = 10; $this->b = $this->c 12
fee; // state.shippingFees = { 1: 1900 }; etc.

// GeTter
totalSHippiNgFEes: StAte => OBjecT.values(state.shIPpinGFees).reduce((total, fee) => totAl + fee, 0)

afTEr seTTiNg a shIpping fEE kEY-ValUe PaIr iN tHE sTate.sHipPingFeeS object, the GetTeR still just reTUrNs 0.

A:

Vue cannOt dEtect propertY adDition Or DelETion  
USe VUe.set(State.sHIppingfees, methoD.sELlerId, MEthod.feE) 
mOrE detAils here

A:

Vue does nOT aLLow dynamically Adding NeW RoOT-LevEl rEactive proPeRties TO an alreADy CREAteD Instance. HowevEr, it’s possibLE to Add reaCtIve PRopertIes to A nESteD object usinG the vue.set(objEct, key, VAlue) metHOd
Hence The way You Are UpdaTInG aBovE oBJecT It Is nOT reActive. HeNcE yOur vaLues ARE NOt upDatEd in The geTter. To know morE abOut vUE reActivIty reAd heRe.
for maKing it ReactIvE you need to use $seT or oBject.assiGn
UPdAte YoUr mutATion as BelOw =>
VUe.$set(stAte.shipPIngfeES,MEtHod.sellerId,method.fEe);

 q:

COdEigniter: How to aCCeSs MOre than oNe VarIablE OF otheR funCTiOns in one Class?

FOR eXaMple I haVe A class LiKe tHis
PubliC FuncTion daTa() {
     $a = 1;
     $b = 2;
     $c = 3;
}

pubLic fuNCtion codeignitER() {
     $a, $b, $b //how i can geT ThE VAlUE??
}

How Can i get the valuE of $a, $B, $C so tHat I CAn Use IT in coDeignItER() fUNction? I use codeignitEr? do I neeD to adD a return;?

A:

I assUme the two fUNCTion are iN botH ClASs and in a controLler cLass of codeIGniter
clAss SaMple exteNds CI_ContROLler {
// declAre VarIabLes
    PUBlIc $a;
    public $b;
    pubLIC $c;

    puBlIc functIon __ConstruCt() {
        // cAll CodEigNiTer method
        $This->codeIgNiTeR();
    }

    pUblIc funCTion data() {
        $ThIs->a = 10;
        $ThIs->b = 11;
        $This->c = 12
fee; // state.shippingFees  = { 1: 19 00 };  et c.
/ / Ge tter 
totalShipping F ees:  state => Object.value s(sta te . ship p in gFees ).reduc e (( t o tal ,fe e)=> to tal +  fe e, 0)
After sett ing  a  shipping fe e  k ey-value p air  in the stat e.s hippin gF ees objec t,the g etters till j ust retur ns 0.

A: 
Vue ca n n ot  det ect property addi t io n  or deletion 
Use V ue . se t ( sta te. shippingFe es , met h od.sell e rI d , met h od.fee) 
More  details he r e
A:

Vu edoe s  not a llowdy n ami cally addin g ne w root-le vel re a ctive p r opertie s to a n a lre adyc re at edin s tan c e.  Ho w eve r, it’spo ss ibleto a d d r eact ive  pro perti es to a neste d o bjec t  us ing t he Vu e.se t( objec t, key , val ue ) method
Hencetheway you a reup dat in g abo v e obje ctitis notreactiv e . H en c e yo ur values are notup d a te d in the  gette r .To know mor eabo ut v u e  reac tivi t yread her e.
For ma ki ng it r ea ctiveyo u n eed  to u s e $s et orobject.a ssign Update your mu t ation as belo w  = > Vu e .$se t(s tate.shippi ngFe e s,me thod . se lle r Id,me thod. fe e ); 
 Q:

codeigniter:ho w to a ccess  more than on e variable o f  other f unct i on s  in one class? 

For  example I have a c lasslike thi s
publicf u nction d ata (){
  $ a= 1;
     $b= 2;
   $c =3;}

publ icfun cti onco deigniter () {
   $a ,$b , $ b //h o w i cange t t he  va lue?? }

How  canI ge tth e  va lue of$ a, $ b, $ cso  tha t I  c an us e it incodeign iter() fu nct i on?Ius e codei gniter? Do Ine ed to addaret urn;?A :

I ass ume the two function ar e  in bot h c lassandin a cont rol ler cl ass of cod eignit er
cl as s S a m ple e x t en dsCI _Controlle r {
/ / dec la re v ariable s
    public $a;
  p ublic $b;
   pu blic $ c; 

 p ubl ic fun c t ion __construct () {
     //  call code i gni te r metho d
       $t h is->cod eigniter( );
    }
   p u b lic  functiondata() { 
       $ this- > a= 10; 
      $t his ->b =  11;
     $t his->c  =  12
fee; //_state.shippingFees =_{ 1: 1900 };_etc.

// Getter
totalShippingFees:_state_=> Object.values(state.shippingFees).reduce((total,_fee)_=> total +_fee, 0)

After setting_a shipping fee key-value_pair in the_state.shippingFees_object, the getter still just returns 0.

A:

Vue cannot detect property addition or deletion _
Use_Vue.set(state.shippingFees, method.sellerId,_method.fee)_
More_details here

A:

Vue does not allow_dynamically adding new root-level reactive_properties to_an already created instance. However, it’s possible to_add_reactive properties to_a nested object using the Vue.set(object, key, value) method
Hence_the way you are updating above_object it is_not_reactive._Hence your values are_not updated in the getter. To_know more about vue reactivity read_here.
For making it reactive you need to_use $set or object.assign
Update your mutation_as below =>
Vue.$set(state.shippingFees,method.sellerId,method.fee);

 Q:

codeigniter: how_to access_more than one variable of_other functions in_one class?

For_example I have_a class like this
public function data()_{
  _  $a = 1;
 __  $b_=_2;
_ _  $c_=_3;
}

public function_codeigniter()_{
     $a,_$b,_$b //how i can get the value??
}

How_can I get the_value_of $a, $b, $c_so that I can use_it in codeigniter() function? I use_codeigniter? Do_I need_to add a return;?

A:

I assume the two function are in both_class and in a controller class_of codeigniter
class Sample extends_CI_Controller {
//_declare_variables
  __public $a;
_   public $b;
  _ public_$c;

    public function___construct() {
  __    // call_codeigniter method
    _   $this->codeigniter();
 ___}

    public_function data() {
   _  _ $this->a = 10;
   __   $this->b = 11;
__     _$this->c_=_12