Author Topic: Thumbnails in admin product lisitng as long as <21 items listed  (Read 1633 times)

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3506
  • VirtueMart Version: 3.8.9
Great new feature for backend admin as long as you have less than 21 items showing!

admin
com_virtuemart/views/product/tmpl/default
Code: [Select]
<td align="center">
<?php
// We show the images only when less than 21 products are displayeed -->
if($this->pagination->limit<21 or $total<21){
// Product list should be ordered
$this->model->addImages($product,1);
$img '<span >('.$product->mediaitems.')</span>'.$product->images[0]->displayMediaThumb('class="vm_mini_image"',false );
//echo JHTML::_('link', $link, $img,  array('title' => JText::_('COM_VIRTUEMART_MEDIA_MANAGER').' '.$product->product_name));
} else {
//echo JHTML::_('link', $link, '<span class="icon-nofloat vmicon vmicon-16-media"></span> ('.$product->mediaitems.')', array('title' => JText::_('COM_VIRTUEMART_MEDIA_MANAGER').' '.$product->product_name) );
$img '<span class="icon-nofloat vmicon vmicon-16-media"></span> ('.$product->mediaitems.')';
}
echo JHTML::_('link'$link$img,  array('title' => JText::_('COM_VIRTUEMART_MEDIA_MANAGER').' '.$product->product_name));
?>

</td>


Can we make this a config item ?

Setting mine to 500 - If I am in admin, I want to see the images, I am sure the server can take it!
Regards
A

Joomla 3.9.27
php 7.4

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10152
  • VM3.9 Eagle Owl
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
It is not a question of the server, more a question of your browser.

Yeh we add a VmConfig::Get(blub stuff there. Someone added the images. I wanted first remove them, because I know some people would say it is absolutly bullshit. So my short solution was to use the 21. The less products you have (due filter) the more likely they are very similar the more use of images. :-)
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3506
  • VirtueMart Version: 3.8.9
Well for one I vote a big YES to this great new feature!

It makes it so much easier to identify the items in the product admin.

How can there be "nay" sayers? (LOL)

For me it adds a much enriched backend view.  A big thumbs up.

Regards
A

Joomla 3.9.27
php 7.4

franzpeter

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 467
    • 2in1-online | Software, Mac, PC, Netzwerk, Drucker, Pad, Display
  • VirtueMart Version: Virtuemart 3.2.6
Hutson,
not everybody has an own powerful root server or something like that. I agree, that it would be a nice idea to make it configurable, but there should be a fixed default configuration and a warning in that configuration field which should say: Warning!

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3506
  • VirtueMart Version: 3.8.9
Franz

Agreed

Maybe a setting of 500 is stupid  :-[, possibly 100 for me then, as most views will be less than this

It would be good to have this as a configuration with a the warning that large number of items displayed will affect server response times.

For some site owners, they will currently be confused as to why they see the thumbs sometimes (<21) and not others especially if they have changed their items per list/pagination and we will get more questions on the forum.

But if the server is going to struggle with displaying thumbs for 100+ items, won't it struggle running a decent sized ecommerce site?

My aim for admin views is to reduce the number of pages I need to load and the number of mouse clicks, whilst still providing the essential information to allow me to make decisions.  Having the thumb shown will really speed up this. 

I edit the product list view to show stock available, I know the inventory report is available but that does not have the new nice thumb  :)

Regards
A

Joomla 3.9.27
php 7.4

jjk

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3738
  • using Matomo instead of Google Analytics
How can there be "nay" sayers? (LOL)

I'm one of the (probably very rare) species whose first question was "how can I turn it off again" - because it makes my product lists look a little bit cluttered and too long...   ;D
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3506
  • VirtueMart Version: 3.8.9
 ;D

I knew my "nay sayer" comment would draw someone out of the shadows - jjk no less !

Yes it would be nice to have an on off switch as well as a configuration for "max no" of items for thumbs posiibly combine wth 0 being off
Regards
A

Joomla 3.9.27
php 7.4

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3506
  • VirtueMart Version: 3.8.9
And delivered in 2.0.22a

Code: [Select]
<table class="admintable">
<?php echo VmHTML::row('input','COM_VIRTUEMART_LIST_MEDIA','mediaLimit',VmConfig::get('mediaLimit',20)); ?>

Great response TEAM VM

( Team VM  :) - don't start wearing capes!  Remember the story from "the incredibles" ;))
Regards
A

Joomla 3.9.27
php 7.4

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10152
  • VM3.9 Eagle Owl
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Heheh, yeeh, no caps!
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/