Welcome, Guest
Username: Password: Remember me

TOPIC: How to change virtuemart results layout?

How to change virtuemart results layout? 1 year 8 months ago #7986

  • tarabas
  • tarabas's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 0
Hello,
I wish know how to change virtuemart search layout in results page.
I would like to assign the module search to the class custom_search such as the right-corner search module and to remove VirtueMart Category View (test) as you can see in the attached image
This image is hidden for guests. Please log in or register to see it.

Thanks
The administrator has disabled public write access.

How to change virtuemart results layout? 1 year 8 months ago #7987

  • tarabas
  • tarabas's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 0
I solved the first issue (about "Virtuemart Category View") reading a similar issue on this board.
So, I still have the problem of search module show in results page:
In /template/html/com_virtuemart/category/default.php I have
	<form action="<?php echo JRoute::_ ('index.php?option=com_virtuemart&view=category&limitstart=0&virtuemart_category_id=' . $this->category->virtuemart_category_id); ?>" method="get">
		<!--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 -->

but in the html code of my VM search page I have
    		<form action="/index.php?option=com_virtuemart&amp;view=category&amp;limitstart=0&amp;virtuemart_category_id=0" method="get">
		<!--BEGIN Search Box -->
		<div class="virtuemart_search">
						<br/>
						<input name="keyword" class="inputbox" type="text" size="20" value="test"/>
			<input type="submit" value="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 -->

I tried to manually change the search div class in cuustom_search instead of virtuemat_search but the result is the same.
Must I set a particular css class in others site parts?
Thanks
Last Edit: 1 year 8 months ago by tarabas.
The administrator has disabled public write access.
Time to create page: 0.153 seconds