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

Hello there,

as my post title say: when customer click on picture to see it biger, how can we have it as product title(name). I need that as hack, I know how to make it VM config.
But if you have 10000 or more is complicated, and I have problems with CSVI method. Is it possible just to take it from product name? And if there is 5 or 3 pictures for one product?
VM 2.6.10
Joomla 2.5.28

[attachment cleanup by admin]


GJC Web Design

isn't it
if($description) $postText = $this->file_description;

in administrator\components\com_virtuemart\helpers\image.php ~ line 71   ?
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

kelecz

Thanks for answer.

Maybe it is. But what to do.  :D Beginner, sorry.

Quote}
         $postText = false;
         if($description) $postText = $this->file_description;
         return $this->displayIt($file_url, $file_alt, $imageArgs,$lightbox,$effect,$postText);
      } else {
         //Media which should be sold, show them only as thumb (works as preview)
         return $this->displayMediaThumb('id="vm_display_image"',false);
      }

This is how it looks.

If you can help I'll be grateful.

Regards,

GJC Web Design

if($description) $postText = $this->file_title;   ?
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

kelecz

THX for answer.

Nope. I'd tried product_name, product_title,....

Maybe live view of site: http://petproba.konji.rs/petshop/psi/zvezde-9cm-detail

If you open orange star you'll see 8866_a.jpg, that is Image Alt-Text in VM Config or file_meta in CSVI csv file (for example).

But I am sure that you are 100% close.

PRO

I use CSV improved media import/export to change the names in the database

http://www.csvimproved.com/en/



kelecz

Yes, me either.

But if it is option that databases mismatches, and  always is, that will be great option.

But thanks for answer and you time.


GJC Web Design

Your not using a standard template!!!!!!

who knows what they have coded to use as the image title... it appears to be the file name..

on a STANDARD VM install it is $file_alt in the image helper  - which is where the confusion came from -- std VM shows the $file_alt = $this->file_meta;

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

kelecz

This is my image helper file.



[attachment cleanup by admin]

GJC Web Design

of course it will be completely std. unless u have altered it - thats not the point -- it is what your template does with the rendering that matters..
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

kelecz

How can I found that? Just to investigate.... Hm

Ok, thank you very much. You are so kind. If I found some solution I'll notice you.

Regards,

GJC Web Design

you need to find the code rendering your lightbox layout - but that is way past what advice can be given via the forum
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

kelecz

Dear GJC Web Design,
I think that I found write file. Can you just take a look please.

THX

[attachment cleanup by admin]

GJC Web Design

IMHO it has nothing to do with any core VM files - it is in your template somewhere you need to change

Have you tested with Beez etc?
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