News:

Support the VirtueMart project and become a member

Main Menu

more than 1 image per manufacturer

Started by mblokdijk, August 26, 2016, 15:48:01 PM

Previous topic - Next topic

mblokdijk

When adding a manufacturer, i can ad more than 1 image, say 5 images to 1 manufacturer, but how do i display these images? i mean per manufacturer more than 1 image, not all images of all manufacturers.

i have this working for the first image, but if i upload more than 1 i cannot see them on the manufacturers detail page.

<? echo $this->manufacturerImage; ?>

yes, i could do it in the description field, but i want it working in the virtuemart way, to not confuse my client too much! ;-)

thank you!
Passionate Joomla webdeveloper from the Netherlands, please checkout jmodules.com

jenkinhill

The manufacturer image should be their logo. Surely they only have one logo?
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

mblokdijk

it should be, but i am using vm in my instance for something else then a webshop. and manufactures are hotels in my case, so more than 1 image should be preferable.
Passionate Joomla webdeveloper from the Netherlands, please checkout jmodules.com

GJC Web Design

hmmm.. yes.. u can add more than one

but in the detauils view only the 1st one appears in $this->images

the media ids are there in 

$this->virtuemart_media_id=> Array
                (
                   
  • => 9
                        [1] => 29
                    )

    so I guess either hack the model or get the image thru its media id
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

jenkinhill

I'd probably use Categories instead of Manufacturers, as there would be no problem with extra images and subcats ets are easy to manage.

But unless you are selling products, why not use a directory comonent or even a purposebuilt accommodation extension.
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