VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: AnthonyWang on October 09, 2014, 20:43:19 PM

Title: How to get product neighbours image in product page?
Post by: AnthonyWang on October 09, 2014, 20:43:19 PM
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  :)
Title: Re: How to get next and previous product image in product page?
Post by: AnthonyWang on October 11, 2014, 11:55:40 AM
Anyone?
Title: Re: How to get next and previous product image in product page?
Post by: jenkinhill on October 11, 2014, 14:47:46 PM
http://forum.virtuemart.net/index.php?topic=104795
Title: Re: How to get product neighbours image in product page?
Post by: AnthonyWang on October 11, 2014, 15:08:42 PM
Hello jenkinhill,

Thanks for your mention,
but can you help me?i really need this solution,
i'm also virtuemart chinese translators on transifex,
Title: Re: How to get product neighbours image in product page?
Post by: jenkinhill on October 11, 2014, 16:03:49 PM
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.