Solved

Joomla - Virtuemart -       show recent products as images

Posted on 2011-09-04
2
775 Views
Last Modified: 2012-05-12
Hello,

I need to show the  recent product pictures insted of the recent product names on the product flypage.

I opened the flypage and changed

<?php echo $recent_products; ?>
to
<?php echo $recent_products[$product_thumb_image]; ?>

But it didn't work. What should I do? Thank you
0
Comment
Question by:starhu
2 Comments
 

Author Comment

by:starhu
ID: 36479785
Meanwhile I changed in recent.tpl.php the folowing:

<?php echo ps_product::image_tag( urldecode($recent["product_thumb_image"])); ?></a>&nbsp;(<?php echo $VM_LANG->_('PHPSHOP_CATEGORY') ?>:&nbsp;

However I would like to change the pictures smaller (now the size has the same as set in VM) and to be next to each other and not under each other.


link:
http://www.egyediszoftverek.hu/ideig/joomla_ideig/index.php?page=shop.product_details&product_id=769&category_id=4&flypage=flypage_sts2.tpl&option=com_virtuemart&Itemid=60
0
 
LVL 13

Accepted Solution

by:
StormITSolutions earned 500 total points
ID: 36481673
Het starhu

echo ps_product::image_tag(basename($product_full_image), 'class="browseProductImage" 
border="0" title="'.$product_name.'" 
alt="'.$product_name .'"',1,'product',250,300 )

Open in new window


Using this code you can set the width and height of the thumbnail on the fly. and in your browseProductImage CSS class you can set it to be in a line.

or alternatively add table coding to your flypage to allow it to create <td> </td> for each image and set it in a single <tr></tr>

Storm
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Can't get Plugin to align left 6 216
Problem in 2CO integration 1 154
Google map plug-in in Joomla not working anymore 4 279
How Change Position of Script in Joomla 7 85
Welcome Friends, This is the tutorial for how to create new simple module in joomla 1.5. In the module has two important files. One is XML file and another file is PHP controller file. First you need to create the XML file. (CODE) …
Have you ever wanted to use that sweet jQuery gallery plugin on your Joomla site but couldn't get it working due to jQuery conflicts or your lack of knowledge about what's under the Joomla hood? This article will step you through the process of impl…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now