VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: gerusalem on March 12, 2020, 09:41:23 AM

Title: Latest products category not showing all products IDs
Post by: gerusalem on March 12, 2020, 09:41:23 AM
Virtuemart 3.0.16
Joomla 3.6.2

I am having some problem with the latest products category display under: http://bit.ly/2wT4a6M

So the virtuemart category menu show all the products under "Nuovi Arrivi" category using the php file
templates->shaper_helix3->arrivi.php, in attachment.

However not all IDs are displayed, and I am not understanding why...
below is the code:

<!--<h1><?php echo vmText::_($this->category->category_name); ?></h1>-->

   <?php
   if (!empty($this->products)) {
   $products = array();
   $products[0] = $this->products;

   usort($products[0], function($a, $b)
   {
       return $b->virtuemart_product_id - $a->virtuemart_product_id;
       
   });
   
   array_splice($products[0],102);
   
   echo shopFunctionsF::renderVmSubLayout($this->productsLayout,array('products'=>$products,'currency'=>$this->currency,'products_per_row'=>$this->perRow,'showRating'=>$this->showRating));
   
   ?>


Some products are skipped...

Does anybody have a look and let me know if you can fix it?

Thanks!

Title: Re: Latest products category not showing all products IDs
Post by: jenkinhill on March 12, 2020, 13:08:03 PM
Quote from: gerusalem on March 12, 2020, 09:41:23 AM
Virtuemart 3.0.16
Joomla 3.6.2

These versions are 4 years old and insecure!  http://forum.virtuemart.net/index.php?topic=118683.0


I see the "missing" products, using Firefox 73.0.1   Clear your cache?

(https://i.ibb.co/XtcJgmV/newprods.png) (https://ibb.co/kXNcfYM)
Title: Re: Latest products category not showing all products IDs
Post by: gerusalem on March 16, 2020, 16:26:57 PM
Thanks for your reply. I am aware of the security issue. I tried locally to update Joomla and Virtuemart version, also not automatically, but it fails :( and the website crash...

I uploaded new products and I still have problem with displaying all SKUs.
this time around 14091-14092-14093

Do you think you can help me?
Title: Re: Latest products category not showing all products IDs
Post by: GJC Web Design on March 16, 2020, 16:59:13 PM
Are you manually clearing your caches each time after alterations?

I always install cache cleaner on my sites and set to auto cache clean on all changes
Title: Re: Latest products category not showing all products IDs
Post by: Studio 42 on March 16, 2020, 17:57:28 PM
Quote from: gerusalem on March 16, 2020, 16:26:57 PM
Thanks for your reply. I am aware of the security issue. I tried locally to update Joomla and Virtuemart version, also not automatically, but it fails :( and the website crash...

I uploaded new products and I still have problem with displaying all SKUs.
this time around 14091-14092-14093

Do you think you can help me?

Update the template if your site crash.
Perhaps the crahs need only a little changes.
Eg in admin some modules need to be update
Best is to hire someone, if you dont know how to solve the issues. Most time in 1 or 2 hour you can fix all problems, if you know VM and Joomla coding
Title: Re: Latest products category not showing all products IDs
Post by: gerusalem on March 18, 2020, 10:06:04 AM
Quote from: GJC Web Design on March 16, 2020, 16:59:13 PM
Are you manually clearing your caches each time after alterations?

I always install cache cleaner on my sites and set to auto cache clean on all changes

Yes! I clean cache from Joomla backend admin as well as from the browser.
This time it appears that everytime a product is edited in the backend it disappears from the frontend. Do not know how to fix :(