- Posts: 12
- Thank you received: 0
Remove "Choose product type" from search results
-
michay
Inactive member - Topic Author
- New Member
Less
More
12 years 1 month ago - 12 years 1 month ago #23080
by michay
Remove "Choose product type" from search results was created by michay
Hi
Iam looking for solution how to remove "Choose product type" form serch results
www.muscleandhealth.ie/index.php/product...acturer_id=&cat_str=
I found solution to "comment" one line in file \components\com_virtuemart\views\category\tmpl\default.php
in section below:
and its working with default template.
with Hot cosmetics tempate i have to edit file /templates/hot_cosmetics/html/com_virtuemart/category/default.php
but i cant find this line in section and whole section is different.
Maybe there is a easy way how to turn it off. Please Advice
Thanks
Mike
Iam looking for solution how to remove "Choose product type" form serch results
www.muscleandhealth.ie/index.php/product...acturer_id=&cat_str=
I found solution to "comment" one line in file \components\com_virtuemart\views\category\tmpl\default.php
Code:
<?php echo $this->searchcustom ?>
to
<?php //echo $this->searchcustom ?>
in section below:
Code:
<!--BEGIN Search Box -->
<div class="virtuemart_search">
<?php echo $this->searchcustom ?>
<br/>
<?php echo $this->searchcustomvalues ?>
<input name="keyword" class="inputbox" type="text" size="20" value="<?php echo $this->keyword ?>"/>
<input type="submit" value="<?php echo JText::_ ('COM_VIRTUEMART_SEARCH') ?>" class="button" onclick="this.form.keyword.focus();"/>
</div>
<input type="hidden" name="search" value="true"/>
<input type="hidden" name="view" value="category"/>
</form>
<!-- End Search Box -->
and its working with default template.
with Hot cosmetics tempate i have to edit file /templates/hot_cosmetics/html/com_virtuemart/category/default.php
but i cant find this line in section and whole section is different.
Code:
/*<!--BEGIN Search Box -->
<form action="<?php echo JRoute::_('index.php?option=com_virtuemart&view=category&search=true&limitstart=0&virtuemart_category_id='.$this->category->virtuemart_category_id ); ?>" method="post">
<div class="virtuemart_search">
<?php
$option = array('virtuemart_custom_id' =>null, 'custom_title' => JText::_('COM_VIRTUEMART_LIST_EMPTY_OPTION'));
$options = array_merge(array($option), $this->searchcustom->selectList);
echo JText::_('COM_VIRTUEMART_SET_PRODUCT_TYPE').' '.JHTML::_('select.genericlist', $options, 'custom_parent_id', 'class="inputbox"', 'virtuemart_custom_id', 'custom_title', $this->searchcustom->custom_parent_id); ?>
<br />
<?php if ($this->searchcustom->custom_parent_id) {
foreach ($this->searchcustom->selected as $key =>$custom){
$option = array('custom_value' =>null, 'title' => JText::_('COM_VIRTUEMART_LIST_EMPTY_OPTION'));
$options = array_merge(array($option), $custom->fields[$custom->virtuemart_custom_id]);
//echo JText::_('COM_VIRTUEMART_SET_PRODUCT_TYPE').' '.JHTML::_('select.genericlist', $options, 'customfields['.$custom->virtuemart_custom_id.']', 'class="inputbox"', 'custom_value', 'title', 0);
}
} ?>
<input style="height:16px;vertical-align :middle;" name="keyword" class="inputbox" type="text" size="30" value="<?php echo $this->keyword ?>" />
<input type="submit" value="<?php echo JText::_('COM_VIRTUEMART_SEARCH') ?>" class="button" onclick="this.form.keyword.focus();"/>
</div>
<input type="hidden" name="search" value="true" />
<input type="hidden" name="category" value="0" />
</form>
<!-- End Search Box -->
Maybe there is a easy way how to turn it off. Please Advice
Thanks
Mike
Last edit: 12 years 1 month ago by michay.
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 1 month ago #23090
by ivan.milic
Replied by ivan.milic on topic Remove "Choose product type" from search results
You can hide select box using this css:
.virtuemart_search SELECT#custom_parent_id{
display:none;
}
place it anywhere in you css files that load.
Words "Choose product type" just remove from label translation, it should be in language/en-GB/en-GB.com_virtuemart.ini
.virtuemart_search SELECT#custom_parent_id{
display:none;
}
place it anywhere in you css files that load.
Words "Choose product type" just remove from label translation, it should be in language/en-GB/en-GB.com_virtuemart.ini
The following user(s) said Thank You: michay
Please Log in to join the conversation.
-
michay
Inactive member - Topic Author
- New Member
Less
More
- Posts: 12
- Thank you received: 0
Time to create page: 0.148 seconds