Hi,
Is there a way to make it so that a coupon can be redeemed for X value for services, and Y value for products?
Thank you!
Is there a way to make it so that a coupon can be redeemed for X value for services, and Y value for products?
Thank you!
<?php
$coupon_row->params = !empty($coupon_row->params) ? ( is_string($coupon_row->params) ? json_decode($coupon_row->params) : $coupon_row->params ) : new stdclass;
?>
<?php
$user = JFactory::getUser();
$coupon_row->customer = new stdClass();
$coupon_row->customer->user_id = (int)$user->id;
?>
else {
$coupon_row->params = !empty($coupon_row->params) ? ( is_string($coupon_row->params) ? json_decode($coupon_row->params) : $coupon_row->params ) : new stdclass;
$test = $this->couponvalidate_numuses($coupon_row);
if(!empty($test)) {
$this->return_false($test);
continue;
}
<?php
$user = JFactory::getUser();
$coupon_row->customer = new stdClass();
$coupon_row->customer->user_id = (int)$user->id;
?>