Hi, I've added a Categories listing
and its great - it shows images that represent each category. When I select one of the categories I get the listing of products - also great over three columns..... but I have a problem. I need to add and ADD to cart. I cant find a way to do it in the menu... as its coming from the catgories listing... I supose I could add it to the view >>
<!-- ADD TO CART BUTTON -->
<?php
if($this->params->get('add_to_cart')){
?>
<form action="<?php echo hikashop_completeLink('product&task=updatecart'); ?>" method="post" name="hikashop_product_form_<?php echo $this->row->product_id.'_'.$this->params->get('main_div_name'); ?>"><?php
$this->ajax='';
if(!$this->config->get('ajax_add_to_cart',1)){
$this->ajax = 'return hikashopModifyQuantity(\''.$this->row->product_id.'\',field,1,\'hikashop_product_form_'.$this->row->product_id.'_'.$this->params->get('main_div_name').'\');';
}
$this->setLayout('quantity');
echo $this->loadTemplate();
?>
<input type="hidden" name="product_id" value="<?php echo $this->row->product_id; ?>" />
<input type="hidden" name="add" value="1"/>
<input type="hidden" name="ctrl" value="product"/>
<input type="hidden" name="task" value="updatecart"/>
</form><?php
}?>
<!-- EO ADD TO CART BUTTON -->
If I can find a way to get around >> if($this->params->get('add_to_cart')){ (As there is no way to set this ones params) - as far as i know or is there an easier way?