public function couponCallback() { parent::couponCallback(); //since this is actually an API, exit exit; }
public function couponCallback() { //since there are a lot of plugins for wordpress, first make sure this plugin //is active if (!$this->isCartActive()) { throw new Exception(SyC::t('sdk', 'Shopping Cart is not active')); } parent::couponCallback(); //since this is actually an API, exit exit; }