Jump to content

constantly checking if a variable has been changed


envexlabs

Recommended Posts

Hey,

 

I have a cart that displays the total of all items in the cart.

 

The items are added/removed from the cart via ajax, and i want to be able to update the total when an item is added/removed from the cart.

 

How would i go about creating a loop or something that is constantly checking to see if $total has been changed?

 

Thanks,

 

envex.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.