-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.6.0
-- PHP version -- : 7.0.8
Hello,
Is there any way to disable billing address for free products only? I have tried like this:
components\com_hikashop\views\user\tmpl\registration.php
$cartClass = hikashop_get('class.cart');
$cart = $cartClass->loadFullCart();
if($cart->full_total->prices[0]->price_value == 0){
$this->config->set('address_on_registration',0);
}
That code removing billing address parts from checkout page but when I am trying to get register it's showing this error:
Error
Please complete the Title field
Please complete the First name field
Please complete the Last name field
Please complete the Address field
Please complete the City field
Please complete the Telephone field
Looks like I haven't implement it correctly. Any suggestion please?
Thanks