News:

Looking for documentation? Take a look on our wiki

Main Menu

Picture's displayed name same as Product name

Started by kelecz, December 26, 2014, 21:10:59 PM

Previous topic - Next topic

kelecz


AH

Post your in the paid support boards to see if anyone wants to take a look.
Regards
A

Joomla 4.4.5
php 8.1

GJC Web Design

or just hide the label with css....

http://petproba.konji.rs/plugins/system/vmslider/css/fancybox/jquery.fancybox.css

.fancybox-title-float-wrap {
  bottom: 0;
  display: none;
  margin-bottom: -35px;
  position: absolute;
  right: 50%;
  text-align: center;
  z-index: 8050;
}
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

jjk

Note that the alt-text display for the lightbox is handled in the file mediahandler.php (line 570 in your version of mediahandler.php), if your template uses the standard VirtueMart lightbox.

if($lightbox){
            $image = JHTML::image($file_url, $file_alt, $imageArgs);
            if ($file_alt ) $file_alt = 'title="'.$file_alt.'"';

Personally I've changed my alt-text display for the lightbox images to this:

         if($lightbox){
            $image = JHTML::image($file_url, $file_alt, $imageArgs);
            if ($file_alt ) $file_alt = 'title="'.$withDesc.'"';

but I don't know how to get the product name into that (other than changing it in the database). In the long run, it will be easier and better for SEO to upload product images with product names when adding new products.  "dog-transport-box.jpg" certainly is a better filename than a meaningless "39342.jpg".
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

kelecz

THX GJC, you are really nice. Thank you for your time and effort.

Thanks JJK. Yes, that is reason why I start this post. I want product_name be as Ctr-alt or file_meta or name of the picture. SEO is big reason and of course it is looking more professional and you do not take care for one more data field.
That is the point.

THX

kelecz



As PRO said this is solution with CSVI but I have to try 100 times with a lot of problems. But works. This is result on pictures.
But I will try to found solution with product_name.

[attachment cleanup by admin]