Author Topic: Latest products category not showing all products IDs  (Read 355 times)

gerusalem

  • Beginner
  • *
  • Posts: 6
Latest products category not showing all products IDs
« 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!


jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27674
  • Always on vacation
    • Jenkin Hill Internet
Re: Latest products category not showing all products IDs
« Reply #1 on: March 12, 2020, 13:08:03 pm »
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?

Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.6.11 10292 on Joomla 3.9.16 PHP 7.0.33

gerusalem

  • Beginner
  • *
  • Posts: 6
Re: Latest products category not showing all products IDs
« Reply #2 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?

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9496
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Latest products category not showing all products IDs
« Reply #3 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
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4246
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Latest products category not showing all products IDs
« Reply #4 on: March 16, 2020, 17:57:28 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

gerusalem

  • Beginner
  • *
  • Posts: 6
Re: Latest products category not showing all products IDs
« Reply #5 on: March 18, 2020, 10:06:04 am »
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 :(