Solved

Joomla - Virtuemart -       show recent products as images

Posted on 2011-09-04
2
770 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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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) …
This is our step by step to setting up and configuring a Joomla Install on a Windows 2003 Server. This is the perfect solution for an Intranet Website using Joomla. What you need (only use the following versions) : A fresh copy of Joomla http…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

743 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

16 Experts available now in Live!

Get 1:1 Help Now