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

How to get product neighbours image in product page?

Started by AnthonyWang, October 09, 2014, 20:43:19 PM

Previous topic - Next topic

AnthonyWang

is there somebody know how get product neighbours(next and previous)product's image in product page?

i try copy and change the line in productdetail/default.php

echo JHtml::_('link', $next_link, $this->product->neighbours ['next'][0] ['product_name'], array('rel'=>'next','class' => 'next-page','data-dynamic-update' => '1'));
to
echo JHtml::_('link', $next_link, $this->product->neighbours ['next'][0] ['product_images'], array('rel'=>'next','class' => 'next-page','data-dynamic-update' => '1'));
bit it's not working,
and tried
echo $next_link->displayMediaThumb("", false);
still not work,

Joomla 3.3
Virtuemart 2.9.9e


any help is appreciated  :)
Currently using :
Joomla 3.6.5 / Virtuemart 3.2.1 / PHP 5.5.9-1ubuntu4.17

AnthonyWang

Currently using :
Joomla 3.6.5 / Virtuemart 3.2.1 / PHP 5.5.9-1ubuntu4.17

jenkinhill

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

AnthonyWang

Hello jenkinhill,

Thanks for your mention,
but can you help me?i really need this solution,
i'm also virtuemart chinese translators on transifex,
Currently using :
Joomla 3.6.5 / Virtuemart 3.2.1 / PHP 5.5.9-1ubuntu4.17

jenkinhill

I would normally move this to the development forum, as 2.9.9e is not a stable release, and internally we are now testing 2.9.9f. As these are "pre-release"  testing versions I doubt if anyone has yet looked at overriding the templates, apart from minor cosmetic adjustments.

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