Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
Ch1vpH Friend
Ch1vpH
- Join date:
- February 2016
- Posts:
- 299
- Downloads:
- 21
- Uploads:
- 128
- Thanks:
- 29
- Thanked:
- 1 times in 1 posts
May 31, 2017 at 10:50 pm #1038597Hi there – Can you tell me how to move the Search Module at the top of the Product Category pages on Brickstore to the bottom of the page instead?
See attached image for module location.
Thanks
One example page is: http://ch1vph.xyz/ri2k/index.php/handbags/all-handbags
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
June 2, 2017 at 1:42 am #1038898Hi,
You can customize category layout of Virtuemart a little bit: root/templates/ja_brickstore/html/com_virtuemart/category/default.php
At approx line 69, it’s snippet of code which renders the search box in category page, you can move this code to other position as you wish.
<?php if ($this->showsearch or !empty($this->keyword)) { //id taken in the view.html.php could be modified $category_id = vRequest::getInt ('virtuemart_category_id', 0); ?> <!--BEGIN Search Box --> <div class="virtuemart_search"> <form action="<?php echo JRoute::_ ('index.php?option=com_virtuemart&view=category&limitstart=0', FALSE); ?>" method="get"> <?php if(!empty($this->searchCustomList)) { ?> <div class="vm-search-custom-list"> <?php echo $this->searchCustomList ?> </div> <?php } ?> <?php if(!empty($this->searchCustomValues)) { ?> <div class="vm-search-custom-values"> <?php echo $this->searchCustomValues ?> </div> <?php } ?> <div class="vm-search-custom-search-input"> <input name="keyword" class="inputbox" type="text" size="40" value="<?php echo $this->keyword ?>"/> <input type="submit" value="<?php echo vmText::_ ('COM_VIRTUEMART_SEARCH') ?>" class="button" onclick="this.form.keyword.focus();"/> <?php //echo VmHtml::checkbox ('searchAllCats', (int)$this->searchAllCats, 1, 0, 'class="changeSendForm"'); ?> <span class="vm-search-descr"> <?php echo vmText::_('COM_VM_SEARCH_DESC') ?></span> </div> <!-- input type="hidden" name="showsearch" value="true"/ --> <input type="hidden" name="view" value="category"/> <input type="hidden" name="option" value="com_virtuemart"/> <input type="hidden" name="virtuemart_category_id" value="<?php echo $category_id; ?>"/> <input type="hidden" name="Itemid" value="<?php echo $this->Itemid; ?>"/> </form> </div> <!-- End Search Box --> <?php /*if(!empty($this->keyword)){ ?><h3><?php echo vmText::sprintf('COM_VM_SEARCH_KEYWORD_FOR', $this->keyword); ?></h3><?php }*/ $j = 'jQuery(document).ready(function() { jQuery(".changeSendForm") .off("change",Virtuemart.sendCurrForm) .on("change",Virtuemart.sendCurrForm); })'; vmJsApi::addJScript('sendFormChange',$j); } ?>
AuthorPostsViewing 2 posts - 1 through 2 (of 2 total)This topic contains 1 reply, has 2 voices, and was last updated by Saguaros 7 years, 5 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum