VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: JCSL on June 01, 2018, 21:28:39 PM

Title: Problem with menu Virtuemart category Page
Post by: JCSL on June 01, 2018, 21:28:39 PM
I am trying to make the category page display only featured products and NOT all Products.
In Virtuemart--> COnfiguration --> Templates --> I have Show Featured ( Yes) Rows(1) Omit( Yes). In the category I have Show Featured ( Yes) and same with the corresponding menu. Still all products show in category page and not one row of the featured products as I have indicated in configuration in menu and category. Please see screenshots
-->Joomla! 3.8.3 Stable [ Amani ] 12-December-2017 15:00 GMT
-->VirtueMart 3.2.12
-->PHP Version   7.1.17

The category page I am trying to configure like that is http://miele.pilacouris.com/miele/refrigeration .

Can you please help with this problem ?
Title: Re: Problem with menu Virtuemart category Page
Post by: jjk on June 04, 2018, 22:07:56 PM
In the category menu settings choose 'Show products of the selected category' = No and 'Show featured' = Yes. Should work.
Title: Re: Problem with menu Virtuemart category Page
Post by: JCSL on June 05, 2018, 11:11:39 AM
jjk Thank you for your response ( much appreciated). I did that but unfortunately still not working  :( . 

See screenshot of category settings  and also screenshot of category page when visited . I made sure that in the category there are more than 3 featured products.

Title: Re: Problem with menu Virtuemart category Page
Post by: jjk on June 05, 2018, 14:13:52 PM
Actually I don't see a 'featured products' module being loaded at ...pilacouris.com/miele/refrigeration. I suppose you need to find out why.
Title: Re: Problem with menu Virtuemart category Page
Post by: JCSL on June 05, 2018, 14:18:54 PM
Thanx again jjK. I did not know that I need to publish a module for that. Anyway if I do that I loose the description of the category which I need to have it shown. If I choose to display no products and apply featured products to show the description of the category is gone. So in order to show featured products in category page below category description what do I have to do? Publish a module at a position below the body of the category ? But even if I do so i loose the description of the category.

Thanx again for your support.
Title: Re: Problem with menu Virtuemart category Page
Post by: jjk on June 05, 2018, 15:20:44 PM
The only possible solution that currently comes into my mind is to place a custom text module holding the category description above the featured products module and choose to display not products.
Title: Re: Problem with menu Virtuemart category Page
Post by: JCSL on June 05, 2018, 15:29:04 PM
I got it. Many thanx again. Is there any possible way to display no products in category page and still have the description shown ?
Title: Re: Problem with menu Virtuemart category Page
Post by: jenkinhill on June 05, 2018, 16:28:34 PM
In the Joomla VM menu category view settings configuration tab,   set "Show products of the selected category" to no
Title: Re: Problem with menu Virtuemart category Page
Post by: JCSL on June 05, 2018, 21:22:29 PM
 Thank you  jenkinhill for your response. "Show products of the selected category" to no disables the category description which I want to avoid. Is there a possible way to show category description while showing no products or showing only featured products. Like jjk suggested in order to show featured products I have to select "Show products of the selected category" to no" which again disable the category description.  :-\
Title: Re: Problem with menu Virtuemart category Page
Post by: GJC Web Design on June 10, 2018, 17:24:16 PM
check your category default.php over ride if there is one

the cat desc shouldn't be dependent on the show products setting

std code is:

if (!empty($this->showcategory_desc) and empty($this->keyword)){
   if(!empty($this->category)) {
   ?>
<div class="category_description">
   <?php echo $this->category->category_description; ?>
</div>
<?php }
   if(!empty($this->manu_descr)) {
      ?>
        <div class="manufacturer-description">
         <?php echo $this->manu_descr; ?>
        </div>
   <?php }
}