OK
I have found FIVE (5) lines with the text you gave me in the HIKASHOP
Do I change ALL of them from 0 to 1?
1st one...
$app = JFactory::getApplication();
$currencyClass = hikashop_get('class.currency');
$consume = null;
$discount = '';
$use_coupon = 1 - (int)$app->getUserState(HIKASHOP_COMPONENT.'.userpoints_no_virtual_coupon', 0);
2nd one...
function onAfterCheckoutStep($controllerName, &$go_back, $original_go_back, &$controller) {
if($controllerName == 'plg.shop.userpoints') {
$app = JFactory::getApplication();
$this->_readOptions();
if(empty($this->plugin_options)) {
$app->setUserState(HIKASHOP_COMPONENT.'.userpoints_no_virtual_coupon', 0);
return;
}
if(!empty($this->plugin_options)) {
$no_virtual_coupon = (int)$app->getUserState(HIKASHOP_COMPONENT.'.userpoints_no_virtual_coupon', 0);
$use_coupon_opt = JRequest::getString('userpoints_use_coupon', '');
if($use_coupon_opt !== '') {
$no_coupon = 1 - (int)$use_coupon_opt;
if($no_coupon != $no_virtual_coupon) {
$go_back = true;
$app->setUserState(HIKASHOP_COMPONENT.'.userpoints_no_virtual_coupon', $no_coupon);
}
}
} else {
$app->setUserState(HIKASHOP_COMPONENT.'.userpoints_no_virtual_coupon', 0);
IN THE OTHER FILE.... the one for HikashopPAYMENT > userpoints, I found TWO (2) lines:
Do I change ALL of them from 0 to 1?
The first one...
$app = JFactory::getApplication();
$currencyClass = hikashop_get('class.currency');
$consume = null;
$discount = '';
$use_coupon = 1 - (int)$app->getUserState(HIKASHOP_COMPONENT.'.userpoints_no_virtual_coupon', 0);
The 2nd one...
$app = JFactory::getApplication();
$no_virtual_coupon = (int)$app->getUserState(HIKASHOP_COMPONENT.'.userpoints_no_virtual_coupon', 0);
if(!empty($no_virtual_coupon)) {
$app = JFactory::getApplication();
$no_virtual_coupon = (int)$app->getUserState(HIKASHOP_COMPONENT.'.userpoints_no_virtual_coupon', 0);