News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Latest products category not showing all products IDs

Started by gerusalem, March 12, 2020, 09:41:23 AM

Previous topic - Next topic

gerusalem

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

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?

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

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

gerusalem

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

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 https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 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
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Studio 42

#4
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

gerusalem

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 :(