-- url of the page with the problem -- :
vazprep.edu.jm/registration.html
-- HikaShop version -- : 2.2
-- Joomla version -- : 2.5
I am trying to have a conditional field in the checkout Form. But having some issues. I tried your forum and found this link:
www.hikashop.com/forum/4-how-to/42933-co...required-fields.html
We tried to replicate, but it did not work for us. Could you say what we may have done wrong?
<
>
This is the modified code for the multiple registrant ..for our site
<
>
<?php
$cartClass = hikashop_get('class.cart');
$cart = $cartClass->loadFullCart(true);
$this->rows =& $cart->products;
$multipleregistrant = false;
foreach($this->rows as $row){
$productClass = hikashop_get('class.product');
$product = $productClass->get($row->product_id);
if($product->multipleregistrant == "TRUE" ) $multipleregistrant = true;
}
if(!$multipleregistrant ){
$doc =& JFactory::getDocument();
$js="hikashop = Array();";
$doc->addScriptDeclaration( "<!--\n".$js."\n//-->\n" );
return;
}
?>
<?php if(hikashop_level(2) && !empty($this->extraFields) && $multipleregistrant == true){
?>
<div id="hikashop_checkout_additional_info" class="hikashop_checkout_additional_info">
<fieldset class="input">
<legend><?php echo JText::_('ADDITIONAL_INFORMATION');?></legend>
<table cellpadding="0" cellspacing="0" border="0" class="hikashop_contentpane">
<?php
if(!empty($this->extraFields)){
JRequest::setVar('hikashop_check_order',1);
$this->setLayout('custom_fields');
$this->type = 'order';
echo $this->loadTemplate();
}
?>
</table>
</fieldset>
</div>
<div style="clear:both"></div>
<?php } ?>